user_manager

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemoryUserStore

func NewInMemoryUserStore() om.UserManager

func NewUserManager

func NewUserManager(userStore om.UserManager) (userManager om.UserManager, err error)

Types

type DbUserStore

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

func NewDbUserStore

func NewDbUserStore(host string, port int, username string, password string) (store *DbUserStore, err error)

func (*DbUserStore) Login

func (s *DbUserStore) Login(username string, authToken string) (session string, err error)

func (*DbUserStore) Logout

func (s *DbUserStore) Logout(username string, session string) (err error)

func (*DbUserStore) Register

func (s *DbUserStore) Register(user om.User) (err error)

type InMemoryUserStore

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

func (*InMemoryUserStore) Login

func (m *InMemoryUserStore) Login(username string, authToken string) (session string, err error)

func (*InMemoryUserStore) Logout

func (m *InMemoryUserStore) Logout(username string, session string) (err error)

func (*InMemoryUserStore) Register

func (m *InMemoryUserStore) Register(user om.User) (err error)

type UserManager

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

func (*UserManager) Login

func (m *UserManager) Login(username string, authToken string) (session string, err error)

func (*UserManager) Logout

func (m *UserManager) Logout(username string, session string) error

func (*UserManager) Register

func (m *UserManager) Register(user om.User) error

Jump to

Keyboard shortcuts

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