예제 #1
0
func init() {

	netfw.RegisterComponent("seasonrank", func(p netfw.IPeer) netfw.IComponent {
		return &oprPrevSeasonRankCom{}
	})

}
예제 #2
0
파일: userdata.go 프로젝트: chogaths/robin
func init() {

	netfw.RegisterComponent("userdata", func(p netfw.IPeer) netfw.IComponent {
		return &oprUserDataCom{}
	})

}
예제 #3
0
파일: icloud.go 프로젝트: chogaths/robin
func init() {

	netfw.RegisterComponent("icloud", func(p netfw.IPeer) netfw.IComponent {
		return &oprIcloudCom{}
	})

}
예제 #4
0
파일: relay.go 프로젝트: chogaths/robin
func init() {

	netfw.RegisterComponent(componentName, func(p netfw.IPeer) netfw.IComponent {
		return &relayComponent{
			peerImplementor: p,
		}
	})
}
예제 #5
0
파일: rpc.go 프로젝트: chogaths/robin
func init() {
	// 取得消息对应的消息ID

	netfw.RegisterComponent(componentName, func(p netfw.IPeer) netfw.IComponent {
		c := &rpcComponent{
			callDataMap:     make(map[int64]*Call),
			rpcIDacc:        1,
			peerImplementor: p,
		}

		c.SetTimeout(3000)
		return c
	})
}
예제 #6
0
파일: login.go 프로젝트: chogaths/robin
func init() {

	netfw.RegisterComponent("login", func(p netfw.IPeer) netfw.IComponent {
		return &oprloginComponent{}
	})
}