tcp

package
v0.0.0-...-31a32bb Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 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 SessionId

type SessionId struct {
	UserId  uint64 `json:"user_id"`  // 唯一ID,一般使用用户ID
	UserKey string `json:"user_key"` // ID维度下,作进一步的划分(比如:某个终端下的用户ID)
}

SessionId 唯一地标识一条TCP连接

func (*SessionId) ToString

func (t *SessionId) ToString() string

Jump to

Keyboard shortcuts

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