Documentation
¶
Index ¶
- func NewStageStorage(u *User) *cache.Cache
- type State
- func (s *State) CreateUser(id int, username string) (*User, error)
- func (s *State) GetUserByID(id int) (*User, error)
- func (s *State) GetUserByUsername(username string) (*User, error)
- func (s *State) IsNotFound(err error) bool
- func (s *State) ListUsers() ([]User, error)
- func (s *State) SetStage(id int, stage string) error
- type User
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStageStorage ¶
NewStageStorage creates a state storage interface that supports creating a new one, or using an already existing one
Types ¶
type State ¶
State is the interface to the state object
func (*State) CreateUser ¶
CreateUser creates a user.
func (*State) GetUserByID ¶
GetUserByID gets a user by their ID
func (*State) GetUserByUsername ¶
GetUserByUsername gets a user by their Username. DEPRECATED.
func (*State) IsNotFound ¶
IsNotFound checks if the error type is a "not found" error type.
Click to show internal directories.
Click to hide internal directories.