user

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxLoginLen     = 256
	MaxPublicKeyLen = 4096

	DefaultUserFilterLimit = 50
	MaxUserFilterLimit     = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatePlayer added in v0.2.7

type AssociatePlayer struct {
	PlayerID asset.PlayerID
}

AssociatePlayer holds information to assocuate a player to a user.

type Change

type Change struct {
	Login     string
	PublicKey []byte
}

Change holds information to change an user.

type Create

type Create struct {
	Change
}

Create is used to create a user.

type Filter

type Filter struct {
	// Offset is used to restrict to a subset of the results,
	// indicating the initial offset into the set of results.
	Offset uint

	// Limit is used to restrict to a subset of the results,
	// indicating the maximum number of results to return.
	Limit uint
}

Filter is used to filter results from a list of all users.

type ID

type ID uuid.UUID

UserID is the unique identifier of an user.

func (*ID) Scan

func (i *ID) Scan(src any) error

func (ID) String

func (i ID) String() string

func (ID) Value

func (i ID) Value() (driver.Value, error)

type Update

type Update struct {
	Change
}

Update is used to update an user.

type User

type User struct {
	ID        ID
	Login     string
	PublicKey []byte
	PlayerID  asset.PlayerID
	Created   arcade.Timestamp
	Updated   arcade.Timestamp
}

User is the internal representation of an user.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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