multiuser

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) types.MemberProvider

Types

type Config

type Config struct {
	AdminPassword string
	UserPassword  string
	AdminProfile  types.MemberProfile
	UserProfile   types.MemberProfile
}

type MemberProviderCtx

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

func (*MemberProviderCtx) Authenticate

func (provider *MemberProviderCtx) Authenticate(username string, password string) (string, types.MemberProfile, error)

func (*MemberProviderCtx) Connect

func (provider *MemberProviderCtx) Connect() error

func (*MemberProviderCtx) Delete

func (provider *MemberProviderCtx) Delete(id string) error

func (*MemberProviderCtx) Disconnect

func (provider *MemberProviderCtx) Disconnect() error

func (*MemberProviderCtx) Insert

func (provider *MemberProviderCtx) Insert(username string, password string, profile types.MemberProfile) (string, error)

func (*MemberProviderCtx) Select

func (provider *MemberProviderCtx) Select(id string) (types.MemberProfile, error)

func (*MemberProviderCtx) SelectAll

func (provider *MemberProviderCtx) SelectAll(limit int, offset int) (map[string]types.MemberProfile, error)

func (*MemberProviderCtx) UpdatePassword

func (provider *MemberProviderCtx) UpdatePassword(id string, password string) error

func (*MemberProviderCtx) UpdateProfile

func (provider *MemberProviderCtx) UpdateProfile(id string, profile types.MemberProfile) error

Jump to

Keyboard shortcuts

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