users

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 9 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
}

func NewSession

func NewSession(user *User) *Session

func (*Session) Dispose

func (c *Session) Dispose()

func (*Session) Id

func (c *Session) Id() string

type User

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

func NewUser

func NewUser(userName string, password string) *User

func (*User) CloseSession

func (c *User) CloseSession(sessionId string) error

func (*User) Dispose

func (c *User) Dispose()

func (*User) OpenSession

func (c *User) OpenSession(password string) (*Session, error)

type Users

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

func NewUsers

func NewUsers() *Users

func (*Users) AddUser

func (c *Users) AddUser(userName string, password string) (*User, error)

func (*Users) CheckUser

func (c *Users) CheckUser(userName string, password string) error

func (*Users) CloseSession

func (c *Users) CloseSession(sessionId string) error

func (*Users) OpenSession

func (c *Users) OpenSession(userName string, password string) (*Session, error)

func (*Users) RemoveUser

func (c *Users) RemoveUser(userName string) error

func (*Users) Session

func (c *Users) Session(sessionId string) (*Session, error)

func (*Users) State

func (c *Users) State() *state.Users

Jump to

Keyboard shortcuts

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