session

package
v0.0.0-...-f40b9db Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session holds the groups and tags of a player Groups are sorted based on permission level

func Accept

func Accept(p *player.Player, groups ...*dfperms.Group) (*Session, error)

Accept assigns a session to a player and applies default groups.

func FromPlayer

func FromPlayer(p *player.Player) (*Session, bool)

Search for a session from a player

func FromUUID

func FromUUID(uuid uuid.UUID) (*Session, bool)

Search for a session from player uuid

Jump to

Keyboard shortcuts

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