protocol

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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