wire

package
v0.0.0-...-93c743e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// login
	CommandLoginSignIn  = "login.signin"
	CommandLoginSignOut = "login.signout"

	// chat
	CommandChatUserTalk  = "chat.user.talk"
	CommandChatGroupTalk = "chat.group.talk"
	CommandChatTalkAck   = "chat.talk.ack"

	// 离线
	CommandOfflineIndex   = "chat.offline.index"
	CommandOfflineContent = "chat.offline.content"

	// 群管理
	CommandGroupCreate  = "chat.group.create"
	CommandGroupJoin    = "chat.group.join"
	CommandGroupQuit    = "chat.group.quit"
	CommandGroupMembers = "chat.group.members"
	CommandGroupDetail  = "chat.group.detail"
)

Command a defined data type between client and logicServer

View Source
const (
	MetaDestServer   = "dest.server"
	MetaDestChannels = "dest.channels"
)

Meta Key of a packet

View Source
const (
	SNWGateway = "wgateway"
	SNTGateway = "tgateway"
	SNLogin    = "login"   //login
	SNChat     = "chat"    //chat
	SNService  = "service" //rpc service
)

Service Name 定义统一的服务名

View Source
const (
	OfflineMessageExpiresIn = time.Hour * 24 * 30
	OfflineSyncIndexCount   = 3000
	OfflineMessageStoreDays = 30 //days
)
View Source
const (
	// AlgorithmHashSlots algorithm in routing
	AlgorithmHashSlots = "hashslots"
)

Variables

View Source
var (
	MagicLogicPkt = Magic{0xc3, 0x11, 0xa3, 0x65}
	MagicBasicPkt = Magic{0xc3, 0x15, 0xa7, 0x65}
)
View Source
var Seq = sequence{/* contains filtered or unexported fields */}

Seq Seq

Functions

This section is empty.

Types

type Magic

type Magic [4]byte

type MessageType

type MessageType uint
const (
	MessageTypeText MessageType = iota + 1
	MessageTypeImage
	MessageTypeVoice
	MessageTypeVideo
)

type Protocol

type Protocol string

Protocol Protocol

const (
	ProtocolTCP       Protocol = "tcp"
	ProtocolWebsocket Protocol = "websocket"
)

Protocol

type ServiceID

type ServiceID string

ServiceID Service ID

type SessionID

type SessionID string

SessionID Session ID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL