user

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 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 Change

type Change struct {
	Login     string
	PublicKey []byte
	PlayerID  asset.PlayerID
}

UserChange 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
server
Package server provides primitives to interact with the openapi HTTP API.
Package server provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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