Documentation
¶
Index ¶
- type Module
- func (m *Module) EmailEditProfile(ctx context.Context, token, dbType, project, id, email, name, password string) (int, map[string]interface{}, error)
- func (m *Module) EmailSignIn(ctx context.Context, dbType, project, email, password string) (int, map[string]interface{}, error)
- func (m *Module) EmailSignUp(ctx context.Context, dbType, project, email, name, password, role string) (int, map[string]interface{}, error)
- func (m *Module) IsActive(method string) bool
- func (m *Module) IsEnabled() bool
- func (m *Module) Profile(ctx context.Context, token, dbType, project, id string) (int, map[string]interface{}, error)
- func (m *Module) Profiles(ctx context.Context, token, dbType, project string) (int, map[string]interface{}, error)
- func (m *Module) SetConfig(auth config.Auth)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
Module is responsible for user management
func (*Module) EmailEditProfile ¶
func (m *Module) EmailEditProfile(ctx context.Context, token, dbType, project, id, email, name, password string) (int, map[string]interface{}, error)
EmailEditProfile allows the user to edit a profile
func (*Module) EmailSignIn ¶
func (m *Module) EmailSignIn(ctx context.Context, dbType, project, email, password string) (int, map[string]interface{}, error)
EmailSignIn signins the user and returns a JWT token
func (*Module) EmailSignUp ¶
func (m *Module) EmailSignUp(ctx context.Context, dbType, project, email, name, password, role string) (int, map[string]interface{}, error)
EmailSignUp signs up a user and return a JWT token
func (*Module) Profile ¶
func (m *Module) Profile(ctx context.Context, token, dbType, project, id string) (int, map[string]interface{}, error)
Profile fetches the profile of the user
Click to show internal directories.
Click to hide internal directories.