コード例 #1
0
ファイル: prevseasonrank.go プロジェクト: chogaths/robin
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{}
	})
}