예제 #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())
}