Documentation ¶
Index ¶
- func New(config Config) types.MemberProvider
- type Config
- type MemberProviderCtx
- func (provider *MemberProviderCtx) Authenticate(username string, password string) (string, types.MemberProfile, error)
- func (provider *MemberProviderCtx) Connect() error
- func (provider *MemberProviderCtx) Delete(id string) error
- func (provider *MemberProviderCtx) Disconnect() error
- func (provider *MemberProviderCtx) Insert(username string, password string, profile types.MemberProfile) (string, error)
- func (provider *MemberProviderCtx) Select(id string) (types.MemberProfile, error)
- func (provider *MemberProviderCtx) SelectAll(limit int, offset int) (map[string]types.MemberProfile, error)
- func (provider *MemberProviderCtx) UpdatePassword(id string, password string) error
- func (provider *MemberProviderCtx) UpdateProfile(id string, profile types.MemberProfile) error
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
Click to show internal directories.
Click to hide internal directories.