Esempio n. 1
0
// Attempt to process the queue.
func deliver(client *rpc.Client) (*rpc.Reply, error) {
	return client.Deliver()
}
Esempio n. 2
0
// Fetches queue info.
func queue(client *rpc.Client) (*rpc.Reply, error) {
	return client.QueueInfo()
}
Esempio n. 3
0
// 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))
}
Esempio n. 4
0
// 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))
}
Esempio n. 5
0
// Fetches the servers mem stats.
func mem(client *rpc.Client) (*rpc.Reply, error) {
	return client.MemStats()
}