protocol

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExistsMembersResponse

type ExistsMembersResponse struct {
	Members string `json:"members"`
}

ExistsMembersResponse 存在的角色响应

type Int64

type Int64 struct {
	Value int64 `json:"value"`
}

type LoginRequest

type LoginRequest struct {
	Nickname string `json:"nickname"`
}

LoginRequest 登录请求

type LoginResponse

type LoginResponse struct {
	Code int `json:"code"`
}

LoginResponse 登录响应

type NewUserBroadcast

type NewUserBroadcast struct {
	Content string `json:"content"`
}

NewUserBroadcast 新用户广播

type SyncMessage

type SyncMessage struct {
	Name       string `json:"name"`
	Content    string `json:"content"`
	PacketTime int64  `json:"packetTime"`
}

SyncMessage 同步聊天消息

func (*SyncMessage) PacketSpendTime

func (p *SyncMessage) PacketSpendTime() int64

PacketSpendTime 从打包到当前时间,花费了多少时间(纳秒)

type UserBalanceResponse

type UserBalanceResponse struct {
	CurrentBalance int64 `json:"currentBalance"`
}

UserBalanceResponse 用户聊天次数响应

type WriteResponse

type WriteResponse struct {
	Result bool
}

Jump to

Keyboard shortcuts

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