Documentation ¶
Index ¶
Constants ¶
View Source
const (
Ticker = 5 // 定时器间隔时间 / s
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶ added in v1.2.1
func (*Api) CmdIdInitRouter ¶ added in v1.2.1
func (*Api) HandleDefault ¶ added in v1.2.1
func (*Api) InitRouter ¶ added in v1.2.1
func (a *Api) InitRouter()
type MuipServer ¶ added in v1.2.1
type MuipServer struct { AppId uint32 ApiAddr string Store *db.Store Config *config.Config Api *Api Ticker *time.Ticker Stop chan struct{} // contains filtered or unexported fields }
func (*MuipServer) Close ¶ added in v1.2.1
func (s *MuipServer) Close()
func (*MuipServer) GlobalRotationEvent ¶ added in v1.2.1
func (s *MuipServer) GlobalRotationEvent()
type NodeService ¶ added in v1.2.1
type NodeService struct {
// contains filtered or unexported fields
}
func (*NodeService) MuipToNodePingReq ¶ added in v1.2.1
func (n *NodeService) MuipToNodePingReq()
func (*NodeService) MuipToNodePingRsp ¶ added in v1.2.1
func (n *NodeService) MuipToNodePingRsp(serviceMsg pb.Message)
func (*NodeService) ServiceConnectionReq ¶ added in v1.2.1
func (n *NodeService) ServiceConnectionReq()
向node注册
func (*NodeService) ServiceConnectionRsp ¶ added in v1.2.1
func (n *NodeService) ServiceConnectionRsp(serviceMsg pb.Message)
Click to show internal directories.
Click to hide internal directories.