user

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User added in v0.3.0

type User struct {
	Bio      string
	ID       int
	Pfp      []byte
	Username string
}

Data of a user

type UserBind added in v0.3.0

type UserBind struct {
	Pfp      binding.Bytes
	Username binding.String
}

Bindings to data of a user

type UserCache added in v0.3.0

type UserCache struct {
	// The bio of this client's user
	ThisBio string
	// The profile picture of this client's user
	ThisPfp []byte
	// The user ID of this client's user
	ThisUserID int
	// The username of this client's user
	ThisUsername string
	// Cache of other users' data
	//  Key (int) - User ID
	//  Val (User) - User data
	Users map[int]User
	// Binding to cache of other users' data
	UsersBind map[int]UserBind
}

Data about the client's user and other user data received from the server

Jump to

Keyboard shortcuts

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