Documentation ¶
Index ¶
- Constants
- func EnforceKickOffline(sessionId string) *tp.Status
- func GetAgent(sessionId string) (*aproto.Agent, *tp.Status)
- func GetSocketHooks() types.SocketHooks
- func Init(redisWithLargeMemory *redis.Client, redisWithPublishCmd *redis.Client, ...) error
- func QueryAgent(sessionIds []string) (*aproto.Agents, *tp.Status)
- func Subscribe() <-chan *AgentNews
- type AgentNews
Constants ¶
View Source
const ( // EVENT_ONLINE agent online event EVENT_ONLINE = "ONLINE" // EVENT_OFFLINE agent offline event EVENT_OFFLINE = "OFFLINE" )
Variables ¶
This section is empty.
Functions ¶
func EnforceKickOffline ¶
EnforceKickOffline enforches kick the user offline.
func GetSocketHooks ¶
func GetSocketHooks() types.SocketHooks
GetSocketHooks returns the custom agent types.SocketHooks interface.
func Init ¶
func Init(redisWithLargeMemory *redis.Client, redisWithPublishCmd *redis.Client, namespace ...string) error
Init initializes agent packet.
func QueryAgent ¶
QueryAgent queries agent information in batches.
Types ¶
Click to show internal directories.
Click to hide internal directories.