Documentation ¶
Overview ¶
Package agent is a generated protocol buffer package.
It is generated from these files:
agent.proto
It has these top-level messages:
Agent Agents
Index ¶
- Constants
- Variables
- func EnforceKickOffline(sessionId string) *tp.Rerror
- func GetSocketHooks() types.SocketHooks
- func Init(redisWithLargeMemory *redis.Client, redisWithPublishCmd *redis.Client, ...) error
- func Subscribe() <-chan *AgentNews
- type Agent
- func (*Agent) Descriptor() ([]byte, []int)
- func (m *Agent) GetInnerGw() string
- func (m *Agent) GetIsOffline() bool
- func (m *Agent) GetOnlineAt() int64
- func (m *Agent) GetSalt() uint64
- func (m *Agent) GetSessionId() string
- func (m *Agent) Marshal() (dAtA []byte, err error)
- func (m *Agent) MarshalTo(dAtA []byte) (int, error)
- func (*Agent) ProtoMessage()
- func (m *Agent) Reset()
- func (m *Agent) Size() (n int)
- func (m *Agent) String() string
- func (m *Agent) Unmarshal(dAtA []byte) error
- type AgentNews
- type Agents
- func (*Agents) Descriptor() ([]byte, []int)
- func (m *Agents) GetAgents() []*Agent
- func (m *Agents) Marshal() (dAtA []byte, err error)
- func (m *Agents) MarshalTo(dAtA []byte) (int, error)
- func (*Agents) ProtoMessage()
- func (m *Agents) Reset()
- func (m *Agents) Size() (n int)
- func (m *Agents) String() string
- func (m *Agents) Unmarshal(dAtA []byte) error
Constants ¶
View Source
const ( // EVENT_ONLINE agent online event EVENT_ONLINE = "ONLINE" // EVENT_OFFLINE agent offline event EVENT_OFFLINE = "OFFLINE" )
Variables ¶
Functions ¶
func EnforceKickOffline ¶
EnforceKickOffline enforches kick the user offline.
func GetSocketHooks ¶
func GetSocketHooks() types.SocketHooks
GetSocketHooks returns the custom agent types.SocketHooks interface.
Types ¶
type Agent ¶
type Agent struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` InnerGw string `protobuf:"bytes,2,opt,name=inner_gw,json=innerGw,proto3" json:"inner_gw,omitempty"` OnlineAt int64 `protobuf:"varint,3,opt,name=online_at,json=onlineAt,proto3" json:"online_at,omitempty"` IsOffline bool `protobuf:"varint,4,opt,name=is_offline,json=isOffline,proto3" json:"is_offline,omitempty"` Salt uint64 `protobuf:"varint,5,opt,name=salt,proto3" json:"salt,omitempty"` }
func GetAgent ¶
GetAgent returns agent information.
type AgentNews ¶
AgentNews agent online/offline message
func (*AgentNews) IsOffline ¶
IsOffline returns whether it is an offline message.
Click to show internal directories.
Click to hide internal directories.