示例#1
0
文件: client.go 项目: ushis/viscum
// Attempt to process the queue.
func deliver(client *rpc.Client) (*rpc.Reply, error) {
	return client.Deliver()
}
示例#2
0
文件: client.go 项目: ushis/viscum
// Fetches queue info.
func queue(client *rpc.Client) (*rpc.Reply, error) {
	return client.QueueInfo()
}
示例#3
0
文件: client.go 项目: ushis/viscum
// Unsubscribes an email from a feed.
func unsubscribe(client *rpc.Client) (*rpc.Reply, error) {
	if flag.NArg() < 3 {
		usage()
	}
	return client.Unsubscribe(flag.Arg(1), flag.Arg(2))
}
示例#4
0
文件: client.go 项目: ushis/viscum
// Lists all subscription filtered by email.
func subscriptions(client *rpc.Client) (*rpc.Reply, error) {
	if flag.NArg() < 2 {
		usage()
	}
	return client.ListSubscriptions(flag.Arg(1))
}
示例#5
0
文件: client.go 项目: ushis/viscum
// Fetches the servers mem stats.
func mem(client *rpc.Client) (*rpc.Reply, error) {
	return client.MemStats()
}