Documentation ¶
Index ¶
- Variables
- type Kick
- func (*Kick) Descriptor() ([]byte, []int)
- func (m *Kick) GetClose() bool
- func (m *Kick) GetData() []byte
- func (m *Kick) GetUid() int64
- func (*Kick) ProtoMessage()
- func (m *Kick) Reset()
- func (m *Kick) String() string
- func (m *Kick) XXX_DiscardUnknown()
- func (m *Kick) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Kick) XXX_Merge(src proto.Message)
- func (m *Kick) XXX_Size() int
- func (m *Kick) XXX_Unmarshal(b []byte) error
- type Member
- func (*Member) Descriptor() ([]byte, []int)
- func (m *Member) GetAddress() string
- func (m *Member) GetNodeId() string
- func (m *Member) GetNodeType() string
- func (m *Member) GetSettings() map[string]string
- func (*Member) ProtoMessage()
- func (m *Member) Reset()
- func (m *Member) String() string
- func (m *Member) XXX_DiscardUnknown()
- func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Member) XXX_Merge(src proto.Message)
- func (m *Member) XXX_Size() int
- func (m *Member) XXX_Unmarshal(b []byte) error
- type MemberList
- func (*MemberList) Descriptor() ([]byte, []int)
- func (m *MemberList) GetList() []*Member
- func (*MemberList) ProtoMessage()
- func (m *MemberList) Reset()
- func (m *MemberList) String() string
- func (m *MemberList) XXX_DiscardUnknown()
- func (m *MemberList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MemberList) XXX_Merge(src proto.Message)
- func (m *MemberList) XXX_Size() int
- func (m *MemberList) XXX_Unmarshal(b []byte) error
- type Push
- func (*Push) Descriptor() ([]byte, []int)
- func (m *Push) GetData() []byte
- func (m *Push) GetRoute() string
- func (m *Push) GetUid() int64
- func (*Push) ProtoMessage()
- func (m *Push) Reset()
- func (m *Push) String() string
- func (m *Push) XXX_DiscardUnknown()
- func (m *Push) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Push) XXX_Merge(src proto.Message)
- func (m *Push) XXX_Size() int
- func (m *Push) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetData() []byte
- func (m *Request) GetFrontendId() string
- func (m *Request) GetIp() string
- func (m *Request) GetIsError() bool
- func (m *Request) GetMsgId() uint32
- func (m *Request) GetMsgType() int32
- func (m *Request) GetReply() string
- func (m *Request) GetRoute() string
- func (m *Request) GetSetting() map[string]string
- func (m *Request) GetSid() string
- func (m *Request) GetUid() int64
- func (*Request) ProtoMessage()
- func (x *Request) Recycle()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetCode() int32
- func (m *Response) GetData() []byte
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StartTimeKey = "1"
)
Functions ¶
This section is empty.
Types ¶
type Kick ¶ added in v1.1.29
type Kick struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Close bool `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
踢人
func (*Kick) Descriptor ¶ added in v1.1.29
func (*Kick) ProtoMessage ¶ added in v1.1.29
func (*Kick) ProtoMessage()
func (*Kick) XXX_DiscardUnknown ¶ added in v1.1.31
func (m *Kick) XXX_DiscardUnknown()
func (*Kick) XXX_Marshal ¶ added in v1.1.31
func (*Kick) XXX_Unmarshal ¶ added in v1.1.31
type Member ¶
type Member struct { NodeId string `protobuf:"bytes,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"` NodeType string `protobuf:"bytes,2,opt,name=nodeType,proto3" json:"nodeType,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Settings map[string]string `` /* 157-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
成员结构
func (*Member) Descriptor ¶
func (*Member) GetAddress ¶
func (*Member) GetNodeType ¶
func (*Member) GetSettings ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) XXX_DiscardUnknown ¶ added in v1.1.31
func (m *Member) XXX_DiscardUnknown()
func (*Member) XXX_Marshal ¶ added in v1.1.31
func (*Member) XXX_Unmarshal ¶ added in v1.1.31
type MemberList ¶
type MemberList struct { List []*Member `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
成员列表结构
func (*MemberList) Descriptor ¶
func (*MemberList) Descriptor() ([]byte, []int)
func (*MemberList) GetList ¶
func (m *MemberList) GetList() []*Member
func (*MemberList) ProtoMessage ¶
func (*MemberList) ProtoMessage()
func (*MemberList) Reset ¶
func (m *MemberList) Reset()
func (*MemberList) String ¶
func (m *MemberList) String() string
func (*MemberList) XXX_DiscardUnknown ¶ added in v1.1.31
func (m *MemberList) XXX_DiscardUnknown()
func (*MemberList) XXX_Marshal ¶ added in v1.1.31
func (m *MemberList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MemberList) XXX_Merge ¶ added in v1.1.31
func (m *MemberList) XXX_Merge(src proto.Message)
func (*MemberList) XXX_Size ¶ added in v1.1.31
func (m *MemberList) XXX_Size() int
func (*MemberList) XXX_Unmarshal ¶ added in v1.1.31
func (m *MemberList) XXX_Unmarshal(b []byte) error
type Push ¶ added in v1.1.29
type Push struct { Route string `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
推送
func (*Push) Descriptor ¶ added in v1.1.29
func (*Push) ProtoMessage ¶ added in v1.1.29
func (*Push) ProtoMessage()
func (*Push) XXX_DiscardUnknown ¶ added in v1.1.31
func (m *Push) XXX_DiscardUnknown()
func (*Push) XXX_Marshal ¶ added in v1.1.31
func (*Push) XXX_Unmarshal ¶ added in v1.1.31
type Request ¶ added in v1.1.29
type Request struct { Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` FrontendId string `protobuf:"bytes,3,opt,name=frontendId,proto3" json:"frontendId,omitempty"` Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` Setting map[string]string `` /* 155-byte string literal not displayed */ MsgType int32 `protobuf:"varint,6,opt,name=msgType,proto3" json:"msgType,omitempty"` MsgId uint32 `protobuf:"varint,7,opt,name=msgId,proto3" json:"msgId,omitempty"` Route string `protobuf:"bytes,8,opt,name=route,proto3" json:"route,omitempty"` Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` IsError bool `protobuf:"varint,10,opt,name=isError,proto3" json:"isError,omitempty"` Reply string `protobuf:"bytes,11,opt,name=reply,proto3" json:"reply,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
请求消息结构
func GetRequest ¶ added in v1.1.29
func GetRequest() *Request
func (*Request) Descriptor ¶ added in v1.1.29
func (*Request) GetFrontendId ¶ added in v1.1.29
func (*Request) GetIsError ¶ added in v1.1.29
func (*Request) GetMsgType ¶ added in v1.1.29
func (*Request) GetSetting ¶ added in v1.1.29
func (*Request) ProtoMessage ¶ added in v1.1.29
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶ added in v1.1.31
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶ added in v1.1.31
func (*Request) XXX_Unmarshal ¶ added in v1.1.31
type Response ¶
type Response struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
响应消息结构
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶ added in v1.1.31
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶ added in v1.1.31
func (*Response) XXX_Unmarshal ¶ added in v1.1.31
Click to show internal directories.
Click to hide internal directories.