コード例 #1
0
ファイル: example.go プロジェクト: funkygao/pastry
func (this *app) OnForward(msg *pastry.Message, nextId pastry.NodeID) bool {
	debug.Debugf("forward to %s for %s", nextId.String(), msg.String())
	return true
}
コード例 #2
0
ファイル: example.go プロジェクト: funkygao/pastry
func (this *app) OnDeliver(msg pastry.Message) {
	// msg sent out to cluster
	debug.Debugf("%s", msg.String())
}