Documentation ¶
Index ¶
- type AdminHandler
- type AuthenticationHandler
- func (_m *AuthenticationHandler) ChangeCredentials(gc *gsk.Context)
- func (_m *AuthenticationHandler) GetSessionAccount(gc *gsk.Context)
- func (_m *AuthenticationHandler) GetTokenAccount(gc *gsk.Context)
- func (_m *AuthenticationHandler) LoginAccountSession(gc *gsk.Context)
- func (_m *AuthenticationHandler) LoginAccountToken(gc *gsk.Context)
- func (_m *AuthenticationHandler) LogoutAccount(gc *gsk.Context)
- func (_m *AuthenticationHandler) RegisterAccount(gc *gsk.Context)
- func (_m *AuthenticationHandler) ResetPassword(gc *gsk.Context)
- func (_m *AuthenticationHandler) ResetPasswordConfirm(gc *gsk.Context)
- type AuthenticationService
- func (_m *AuthenticationService) AddAccountToGroup(accountId ds.AccountID, groupId string) error
- func (_m *AuthenticationService) Authenticate(login *ds.Account) error
- func (_m *AuthenticationService) ChangePassword(account *ds.Account) error
- func (_m *AuthenticationService) CheckAccountInGroup(accountId ds.AccountID, groupId string) (bool, error)
- func (_m *AuthenticationService) CreateAccount(account *ds.Account) (*ds.Account, error)
- func (_m *AuthenticationService) CreateGroup(group *ds.Group) (*ds.Group, error)
- func (_m *AuthenticationService) CreateSession(account *ds.Account) (*ds.Session, error)
- func (_m *AuthenticationService) DeleteGroupByID(groupId string) error
- func (_m *AuthenticationService) GenerateJWT(claims *entities.CustomClaims) (string, error)
- func (_m *AuthenticationService) GetAccountByID(accountId string) (*ds.Account, error)
- func (_m *AuthenticationService) GetAccountBySessionId(sessionId string) (*ds.Account, error)
- func (_m *AuthenticationService) GetAccountDetails(accountId ds.AccountID) (*ds.Account, error)
- func (_m *AuthenticationService) GetAccountList(limit int, offset int) ([]*ds.Account, error)
- func (_m *AuthenticationService) GetGroupsByAccountID(accountId ds.AccountID) ([]*ds.Group, error)
- func (_m *AuthenticationService) GetTotalAccountsCount() (int64, error)
- func (_m *AuthenticationService) LogoutAccountBySessionId(sessionId string) error
- func (_m *AuthenticationService) RemoveAccountFromGroup(accountId ds.AccountID, groupId string) error
- func (_m *AuthenticationService) ResetPassword(account string, password string) error
- func (_m *AuthenticationService) SendPasswordResetEmail(email string, sender func(string, string) error) error
- func (_m *AuthenticationService) UpdateGroupByID(group *ds.Group) error
- func (_m *AuthenticationService) ValidateJWT(token string) (*entities.CustomClaims, error)
- type AuthenticationStore
- func (_m *AuthenticationStore) CheckAccountGroupAssociation(accountID string, groupID string) (bool, error)
- func (_m *AuthenticationStore) DeleteAccountByID(accountID string) error
- func (_m *AuthenticationStore) DeleteAccountGroupAssociation(accountID string, groupID string) error
- func (_m *AuthenticationStore) DeleteGroupByID(groupID string) error
- func (_m *AuthenticationStore) GetAccountByAccountID(email string) (*ds.Account, error)
- func (_m *AuthenticationStore) GetAccountByEmail(email string) (*ds.Account, error)
- func (_m *AuthenticationStore) GetAccountByPasswordResetToken(token string) (*ds.Account, error)
- func (_m *AuthenticationStore) GetAccountBySessionID(sessionID string) (*ds.Account, error)
- func (_m *AuthenticationStore) GetAccountByUsername(username string) (*ds.Account, error)
- func (_m *AuthenticationStore) GetAccountList(limit int, offset int) ([]*ds.Account, error)
- func (_m *AuthenticationStore) GetGroupByID(groupID string) (*ds.Group, error)
- func (_m *AuthenticationStore) GetGroupsByAccountID(accountID string) ([]*ds.Group, error)
- func (_m *AuthenticationStore) GetPasswordResetToken(token string) (*ds.PasswordResetToken, error)
- func (_m *AuthenticationStore) GetSessionByID(sessionID string) (*ds.Session, error)
- func (_m *AuthenticationStore) GetTotalAccountsCount() (int64, error)
- func (_m *AuthenticationStore) InvalidateResetToken(token string) error
- func (_m *AuthenticationStore) InvalidateSessionByID(sessionID string) error
- func (_m *AuthenticationStore) SaveAccount(account *ds.Account) error
- func (_m *AuthenticationStore) SaveGroup(group *ds.Group) error
- func (_m *AuthenticationStore) SaveGroupAssociation(association *ds.AccountGroupAssociation) error
- func (_m *AuthenticationStore) SavePasswordResetToken(id string, token string, expiry time.Time) error
- func (_m *AuthenticationStore) SaveSession(session *ds.Session) error
- func (_m *AuthenticationStore) UpdateAccountByID(account *ds.Account) error
- func (_m *AuthenticationStore) UpdateGroup(group *ds.Group) error
- type OauthHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminHandler ¶ added in v0.1.2
AdminHandler is an autogenerated mock type for the AdminHandler type
func NewAdminHandler ¶ added in v0.1.2
func NewAdminHandler(t mockConstructorTestingTNewAdminHandler) *AdminHandler
NewAdminHandler creates a new instance of AdminHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AdminHandler) CreateGroup ¶ added in v0.1.2
func (_m *AdminHandler) CreateGroup(gc *gsk.Context)
CreateGroup provides a mock function with given fields: gc
func (*AdminHandler) GetAccountDetails ¶ added in v0.1.2
func (_m *AdminHandler) GetAccountDetails(gc *gsk.Context)
GetAccountDetails provides a mock function with given fields: gc
func (*AdminHandler) GetAccountList ¶ added in v0.1.2
func (_m *AdminHandler) GetAccountList(gc *gsk.Context)
GetAccountList provides a mock function with given fields: gc
type AuthenticationHandler ¶ added in v0.1.2
AuthenticationHandler is an autogenerated mock type for the AuthenticationHandler type
func NewAuthenticationHandler ¶ added in v0.1.2
func NewAuthenticationHandler(t mockConstructorTestingTNewAuthenticationHandler) *AuthenticationHandler
NewAuthenticationHandler creates a new instance of AuthenticationHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuthenticationHandler) ChangeCredentials ¶ added in v0.1.2
func (_m *AuthenticationHandler) ChangeCredentials(gc *gsk.Context)
ChangeCredentials provides a mock function with given fields: gc
func (*AuthenticationHandler) GetSessionAccount ¶ added in v0.1.2
func (_m *AuthenticationHandler) GetSessionAccount(gc *gsk.Context)
GetSessionAccount provides a mock function with given fields: gc
func (*AuthenticationHandler) GetTokenAccount ¶ added in v0.1.2
func (_m *AuthenticationHandler) GetTokenAccount(gc *gsk.Context)
GetTokenAccount provides a mock function with given fields: gc
func (*AuthenticationHandler) LoginAccountSession ¶ added in v0.1.2
func (_m *AuthenticationHandler) LoginAccountSession(gc *gsk.Context)
LoginAccountSession provides a mock function with given fields: gc
func (*AuthenticationHandler) LoginAccountToken ¶ added in v0.1.2
func (_m *AuthenticationHandler) LoginAccountToken(gc *gsk.Context)
LoginAccountToken provides a mock function with given fields: gc
func (*AuthenticationHandler) LogoutAccount ¶ added in v0.1.2
func (_m *AuthenticationHandler) LogoutAccount(gc *gsk.Context)
LogoutAccount provides a mock function with given fields: gc
func (*AuthenticationHandler) RegisterAccount ¶ added in v0.1.2
func (_m *AuthenticationHandler) RegisterAccount(gc *gsk.Context)
RegisterAccount provides a mock function with given fields: gc
func (*AuthenticationHandler) ResetPassword ¶ added in v0.1.2
func (_m *AuthenticationHandler) ResetPassword(gc *gsk.Context)
ResetPassword provides a mock function with given fields: gc
func (*AuthenticationHandler) ResetPasswordConfirm ¶ added in v0.1.2
func (_m *AuthenticationHandler) ResetPasswordConfirm(gc *gsk.Context)
ResetPasswordConfirm provides a mock function with given fields: gc
type AuthenticationService ¶ added in v0.1.2
AuthenticationService is an autogenerated mock type for the AuthenticationService type
func NewAuthenticationService ¶ added in v0.1.2
func NewAuthenticationService(t mockConstructorTestingTNewAuthenticationService) *AuthenticationService
NewAuthenticationService creates a new instance of AuthenticationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuthenticationService) AddAccountToGroup ¶ added in v0.1.2
func (_m *AuthenticationService) AddAccountToGroup(accountId ds.AccountID, groupId string) error
AddAccountToGroup provides a mock function with given fields: accountId, groupId
func (*AuthenticationService) Authenticate ¶ added in v0.1.2
func (_m *AuthenticationService) Authenticate(login *ds.Account) error
Authenticate provides a mock function with given fields: login
func (*AuthenticationService) ChangePassword ¶ added in v0.1.2
func (_m *AuthenticationService) ChangePassword(account *ds.Account) error
ChangePassword provides a mock function with given fields: account
func (*AuthenticationService) CheckAccountInGroup ¶ added in v0.1.2
func (_m *AuthenticationService) CheckAccountInGroup(accountId ds.AccountID, groupId string) (bool, error)
CheckAccountInGroup provides a mock function with given fields: accountId, groupId
func (*AuthenticationService) CreateAccount ¶ added in v0.1.2
CreateAccount provides a mock function with given fields: account
func (*AuthenticationService) CreateGroup ¶ added in v0.1.2
CreateGroup provides a mock function with given fields: group
func (*AuthenticationService) CreateSession ¶ added in v0.1.2
CreateSession provides a mock function with given fields: account
func (*AuthenticationService) DeleteGroupByID ¶ added in v0.1.2
func (_m *AuthenticationService) DeleteGroupByID(groupId string) error
DeleteGroupByID provides a mock function with given fields: groupId
func (*AuthenticationService) GenerateJWT ¶ added in v0.1.2
func (_m *AuthenticationService) GenerateJWT(claims *entities.CustomClaims) (string, error)
GenerateJWT provides a mock function with given fields: claims
func (*AuthenticationService) GetAccountByID ¶ added in v0.1.2
func (_m *AuthenticationService) GetAccountByID(accountId string) (*ds.Account, error)
GetAccountByID provides a mock function with given fields: accountId
func (*AuthenticationService) GetAccountBySessionId ¶ added in v0.1.2
func (_m *AuthenticationService) GetAccountBySessionId(sessionId string) (*ds.Account, error)
GetAccountBySessionId provides a mock function with given fields: sessionId
func (*AuthenticationService) GetAccountDetails ¶ added in v0.1.2
GetAccountDetails provides a mock function with given fields: accountId
func (*AuthenticationService) GetAccountList ¶ added in v0.1.2
GetAccountList provides a mock function with given fields: limit, offset
func (*AuthenticationService) GetGroupsByAccountID ¶ added in v0.1.2
GetGroupsByAccountID provides a mock function with given fields: accountId
func (*AuthenticationService) GetTotalAccountsCount ¶ added in v0.1.2
func (_m *AuthenticationService) GetTotalAccountsCount() (int64, error)
GetTotalAccountsCount provides a mock function with given fields:
func (*AuthenticationService) LogoutAccountBySessionId ¶ added in v0.1.2
func (_m *AuthenticationService) LogoutAccountBySessionId(sessionId string) error
LogoutAccountBySessionId provides a mock function with given fields: sessionId
func (*AuthenticationService) RemoveAccountFromGroup ¶ added in v0.1.2
func (_m *AuthenticationService) RemoveAccountFromGroup(accountId ds.AccountID, groupId string) error
RemoveAccountFromGroup provides a mock function with given fields: accountId, groupId
func (*AuthenticationService) ResetPassword ¶ added in v0.1.2
func (_m *AuthenticationService) ResetPassword(account string, password string) error
ResetPassword provides a mock function with given fields: account, password
func (*AuthenticationService) SendPasswordResetEmail ¶ added in v0.1.2
func (_m *AuthenticationService) SendPasswordResetEmail(email string, sender func(string, string) error) error
SendPasswordResetEmail provides a mock function with given fields: email, sender
func (*AuthenticationService) UpdateGroupByID ¶ added in v0.1.2
func (_m *AuthenticationService) UpdateGroupByID(group *ds.Group) error
UpdateGroupByID provides a mock function with given fields: group
func (*AuthenticationService) ValidateJWT ¶ added in v0.1.2
func (_m *AuthenticationService) ValidateJWT(token string) (*entities.CustomClaims, error)
ValidateJWT provides a mock function with given fields: token
type AuthenticationStore ¶ added in v0.1.2
AuthenticationStore is an autogenerated mock type for the AuthenticationStore type
func NewAuthenticationStore ¶ added in v0.1.2
func NewAuthenticationStore(t mockConstructorTestingTNewAuthenticationStore) *AuthenticationStore
NewAuthenticationStore creates a new instance of AuthenticationStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuthenticationStore) CheckAccountGroupAssociation ¶ added in v0.1.2
func (_m *AuthenticationStore) CheckAccountGroupAssociation(accountID string, groupID string) (bool, error)
CheckAccountGroupAssociation provides a mock function with given fields: accountID, groupID
func (*AuthenticationStore) DeleteAccountByID ¶ added in v0.1.2
func (_m *AuthenticationStore) DeleteAccountByID(accountID string) error
DeleteAccountByID provides a mock function with given fields: accountID
func (*AuthenticationStore) DeleteAccountGroupAssociation ¶ added in v0.1.2
func (_m *AuthenticationStore) DeleteAccountGroupAssociation(accountID string, groupID string) error
DeleteAccountGroupAssociation provides a mock function with given fields: accountID, groupID
func (*AuthenticationStore) DeleteGroupByID ¶ added in v0.1.2
func (_m *AuthenticationStore) DeleteGroupByID(groupID string) error
DeleteGroupByID provides a mock function with given fields: groupID
func (*AuthenticationStore) GetAccountByAccountID ¶ added in v0.1.2
func (_m *AuthenticationStore) GetAccountByAccountID(email string) (*ds.Account, error)
GetAccountByAccountID provides a mock function with given fields: email
func (*AuthenticationStore) GetAccountByEmail ¶ added in v0.1.2
func (_m *AuthenticationStore) GetAccountByEmail(email string) (*ds.Account, error)
GetAccountByEmail provides a mock function with given fields: email
func (*AuthenticationStore) GetAccountByPasswordResetToken ¶ added in v0.1.2
func (_m *AuthenticationStore) GetAccountByPasswordResetToken(token string) (*ds.Account, error)
GetAccountByPasswordResetToken provides a mock function with given fields: token
func (*AuthenticationStore) GetAccountBySessionID ¶ added in v0.1.2
func (_m *AuthenticationStore) GetAccountBySessionID(sessionID string) (*ds.Account, error)
GetAccountBySessionID provides a mock function with given fields: sessionID
func (*AuthenticationStore) GetAccountByUsername ¶ added in v0.1.2
func (_m *AuthenticationStore) GetAccountByUsername(username string) (*ds.Account, error)
GetAccountByUsername provides a mock function with given fields: username
func (*AuthenticationStore) GetAccountList ¶ added in v0.1.2
GetAccountList provides a mock function with given fields: limit, offset
func (*AuthenticationStore) GetGroupByID ¶ added in v0.1.2
func (_m *AuthenticationStore) GetGroupByID(groupID string) (*ds.Group, error)
GetGroupByID provides a mock function with given fields: groupID
func (*AuthenticationStore) GetGroupsByAccountID ¶ added in v0.1.2
func (_m *AuthenticationStore) GetGroupsByAccountID(accountID string) ([]*ds.Group, error)
GetGroupsByAccountID provides a mock function with given fields: accountID
func (*AuthenticationStore) GetPasswordResetToken ¶ added in v0.1.2
func (_m *AuthenticationStore) GetPasswordResetToken(token string) (*ds.PasswordResetToken, error)
GetPasswordResetToken provides a mock function with given fields: token
func (*AuthenticationStore) GetSessionByID ¶ added in v0.1.2
func (_m *AuthenticationStore) GetSessionByID(sessionID string) (*ds.Session, error)
GetSessionByID provides a mock function with given fields: sessionID
func (*AuthenticationStore) GetTotalAccountsCount ¶ added in v0.1.2
func (_m *AuthenticationStore) GetTotalAccountsCount() (int64, error)
GetTotalAccountsCount provides a mock function with given fields:
func (*AuthenticationStore) InvalidateResetToken ¶ added in v0.1.2
func (_m *AuthenticationStore) InvalidateResetToken(token string) error
InvalidateResetToken provides a mock function with given fields: token
func (*AuthenticationStore) InvalidateSessionByID ¶ added in v0.1.2
func (_m *AuthenticationStore) InvalidateSessionByID(sessionID string) error
InvalidateSessionByID provides a mock function with given fields: sessionID
func (*AuthenticationStore) SaveAccount ¶ added in v0.1.2
func (_m *AuthenticationStore) SaveAccount(account *ds.Account) error
SaveAccount provides a mock function with given fields: account
func (*AuthenticationStore) SaveGroup ¶ added in v0.1.2
func (_m *AuthenticationStore) SaveGroup(group *ds.Group) error
SaveGroup provides a mock function with given fields: group
func (*AuthenticationStore) SaveGroupAssociation ¶ added in v0.1.2
func (_m *AuthenticationStore) SaveGroupAssociation(association *ds.AccountGroupAssociation) error
SaveGroupAssociation provides a mock function with given fields: association
func (*AuthenticationStore) SavePasswordResetToken ¶ added in v0.1.2
func (_m *AuthenticationStore) SavePasswordResetToken(id string, token string, expiry time.Time) error
SavePasswordResetToken provides a mock function with given fields: id, token, expiry
func (*AuthenticationStore) SaveSession ¶ added in v0.1.2
func (_m *AuthenticationStore) SaveSession(session *ds.Session) error
SaveSession provides a mock function with given fields: session
func (*AuthenticationStore) UpdateAccountByID ¶ added in v0.1.2
func (_m *AuthenticationStore) UpdateAccountByID(account *ds.Account) error
UpdateAccountByID provides a mock function with given fields: account
func (*AuthenticationStore) UpdateGroup ¶ added in v0.1.2
func (_m *AuthenticationStore) UpdateGroup(group *ds.Group) error
UpdateGroup provides a mock function with given fields: group
type OauthHandler ¶ added in v0.1.2
OauthHandler is an autogenerated mock type for the OauthHandler type
func NewOauthHandler ¶ added in v0.1.2
func NewOauthHandler(t mockConstructorTestingTNewOauthHandler) *OauthHandler
NewOauthHandler creates a new instance of OauthHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OauthHandler) GoogleOauthCallback ¶ added in v0.1.2
func (_m *OauthHandler) GoogleOauthCallback(gc *gsk.Context)
GoogleOauthCallback provides a mock function with given fields: gc
func (*OauthHandler) GoogleOauthLogin ¶ added in v0.1.2
func (_m *OauthHandler) GoogleOauthLogin(gc *gsk.Context)
GoogleOauthLogin provides a mock function with given fields: gc