sessions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyUserdata = `userdata`
	KeyModtime  = `modtime`
)

Variables

This section is empty.

Functions

func DestroyID

func DestroyID(id int64) (e error)

func PlatformID

func PlatformID(platform string, id int64) (string, error)

func Platforms

func Platforms() []string

Types

type Userdata

type Userdata struct {
	ID            int64
	Name          string
	Nickname      string
	Authorization []int32
}

func (*Userdata) AuthAny

func (d *Userdata) AuthAny(vals ...int32) bool

AuthAny if has any authorization return true

func (*Userdata) AuthNone

func (d *Userdata) AuthNone(vals ...int32) bool

AuthNone if not has any authorization return true

func (*Userdata) AuthTest

func (d *Userdata) AuthTest(vals ...int32) bool

Test if has all authorization return true

func (*Userdata) Who

func (d *Userdata) Who() string

Jump to

Keyboard shortcuts

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