Documentation ¶
Index ¶
- type AccountService
- func (as AccountService) Account(id int64) (*hmm.Account, error)
- func (as AccountService) Accounts() (hmm.Accounts, error)
- func (as AccountService) Create(ctx context.Context, account *hmm.Account, password, confirmationCode string) (*hmm.Account, *hmm.Confirmation, error)
- func (as AccountService) PopulateAccount(account *hmm.Account) *hmm.Account
- func (as AccountService) PopulateAccounts(accounts hmm.Accounts) hmm.Accounts
- type ConfirmationService
- type RoleService
- func (rs RoleService) AddRoleToAccount(accountID int64, roleID int64) (*hmm.AccountRole, error)
- func (rs RoleService) Create(name string) (*hmm.Role, error)
- func (rs RoleService) Role(id int64) (*hmm.Role, error)
- func (rs RoleService) Roles() (hmm.Roles, error)
- func (rs RoleService) RolesForAccount(id int64) (hmm.Roles, error)
- func (rs RoleService) Update(id int64, permissionBit int) (*hmm.Role, error)
- type SessionService
- func (ss SessionService) Create(ctx context.Context, email, password string) (*hmm.Session, error)
- func (ss SessionService) ExpireSession(token string) (*hmm.Session, error)
- func (ss SessionService) SessionFromToken(token string) (*hmm.Session, error)
- func (ss SessionService) UpdateSession(token string) (*hmm.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
func NewAccountService ¶
func NewAccountService(db *sqlx.DB) *AccountService
func (AccountService) PopulateAccount ¶
func (as AccountService) PopulateAccount(account *hmm.Account) *hmm.Account
func (AccountService) PopulateAccounts ¶
func (as AccountService) PopulateAccounts(accounts hmm.Accounts) hmm.Accounts
type ConfirmationService ¶
func NewConfirmationService ¶
func NewConfirmationService(db *sqlx.DB) *ConfirmationService
func (ConfirmationService) Confirm ¶
func (cs ConfirmationService) Confirm(id int64) (*hmm.Confirmation, error)
func (ConfirmationService) FailedConfirmationIncrease ¶
func (cs ConfirmationService) FailedConfirmationIncrease(id int64) (*hmm.Confirmation, error)
func (ConfirmationService) PendingConfirmationByKey ¶
func (cs ConfirmationService) PendingConfirmationByKey(key string) (*hmm.Confirmation, error)
type RoleService ¶
func NewRoleService ¶
func NewRoleService(db *sqlx.DB) *RoleService
func (RoleService) AddRoleToAccount ¶
func (rs RoleService) AddRoleToAccount(accountID int64, roleID int64) (*hmm.AccountRole, error)
func (RoleService) RolesForAccount ¶
func (rs RoleService) RolesForAccount(id int64) (hmm.Roles, error)
type SessionService ¶
func NewSessionService ¶
func NewSessionService(db *sqlx.DB) *SessionService
func (SessionService) ExpireSession ¶
func (ss SessionService) ExpireSession(token string) (*hmm.Session, error)
func (SessionService) SessionFromToken ¶
func (ss SessionService) SessionFromToken(token string) (*hmm.Session, error)
func (SessionService) UpdateSession ¶
func (ss SessionService) UpdateSession(token string) (*hmm.Session, error)
Click to show internal directories.
Click to hide internal directories.