store

package
v0.0.0-...-026e0f2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Username     string
	Activated    bool
	PasswordHash []byte
	Permissions  []string
	SteamID      string
}

type UserStore

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

func NewUserStore

func NewUserStore(db *bolt.DB) *UserStore

func (*UserStore) Add

func (s *UserStore) Add(usr User) error

func (*UserStore) GetBySteamID

func (s *UserStore) GetBySteamID(steamID string) (User, bool)

func (*UserStore) GetByUsername

func (s *UserStore) GetByUsername(username string) (User, bool)

func (*UserStore) Users

func (s *UserStore) Users() ([]User, error)

Jump to

Keyboard shortcuts

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