Documentation ¶
Index ¶
- type MemberManagerCtx
- func (manager *MemberManagerCtx) Authenticate(username string, password string) (string, types.MemberProfile, error)
- func (manager *MemberManagerCtx) Connect() error
- func (manager *MemberManagerCtx) Delete(id string) error
- func (manager *MemberManagerCtx) Disconnect() error
- func (manager *MemberManagerCtx) Insert(username string, password string, profile types.MemberProfile) (string, error)
- func (manager *MemberManagerCtx) Login(username string, password string) (types.Session, string, error)
- func (manager *MemberManagerCtx) Logout(id string) error
- func (manager *MemberManagerCtx) Select(id string) (types.MemberProfile, error)
- func (manager *MemberManagerCtx) SelectAll(limit int, offset int) (map[string]types.MemberProfile, error)
- func (manager *MemberManagerCtx) UpdatePassword(id string, password string) error
- func (manager *MemberManagerCtx) UpdateProfile(id string, profile types.MemberProfile) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemberManagerCtx ¶
type MemberManagerCtx struct {
// contains filtered or unexported fields
}
func New ¶
func New(sessions types.SessionManager, config *config.Member) *MemberManagerCtx
func (*MemberManagerCtx) Authenticate ¶
func (manager *MemberManagerCtx) Authenticate(username string, password string) (string, types.MemberProfile, error)
func (*MemberManagerCtx) Connect ¶
func (manager *MemberManagerCtx) Connect() error
func (*MemberManagerCtx) Delete ¶
func (manager *MemberManagerCtx) Delete(id string) error
func (*MemberManagerCtx) Disconnect ¶
func (manager *MemberManagerCtx) Disconnect() error
func (*MemberManagerCtx) Insert ¶
func (manager *MemberManagerCtx) Insert(username string, password string, profile types.MemberProfile) (string, error)
func (*MemberManagerCtx) Logout ¶
func (manager *MemberManagerCtx) Logout(id string) error
func (*MemberManagerCtx) Select ¶
func (manager *MemberManagerCtx) Select(id string) (types.MemberProfile, error)
func (*MemberManagerCtx) SelectAll ¶
func (manager *MemberManagerCtx) SelectAll(limit int, offset int) (map[string]types.MemberProfile, error)
func (*MemberManagerCtx) UpdatePassword ¶
func (manager *MemberManagerCtx) UpdatePassword(id string, password string) error
func (*MemberManagerCtx) UpdateProfile ¶
func (manager *MemberManagerCtx) UpdateProfile(id string, profile types.MemberProfile) error
Click to show internal directories.
Click to hide internal directories.