Documentation ¶
Index ¶
- func NewApplications(m *Models) interfaces.Applications
- func NewAuthCode(m *Storage) interfaces.AuthCode
- func NewLogs(m *Models) interfaces.Logs
- func NewModels(opt *interfaces.AuthOption, database interface{}) interfaces.Models
- func NewScopes(m *Models) interfaces.Scopes
- func NewStorage(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Storage
- func NewTokens(mm interfaces.Models, m *Storage) interfaces.Tokens
- func NewUserListsApplications(m *Models) interfaces.UserListsApplications
- func NewUserListsGroups(m *Models) interfaces.UserListsGroups
- func NewUsers(m *Models) interfaces.Users
- func NewUsersGroupApplications(m *Models) interfaces.UsersGroupApplications
- func NewUsersGroupScopes(m *Models) interfaces.UsersGroupScopes
- func NewUsersGroups(m *Models) interfaces.UsersGroups
- type Applications
- func (c *Applications) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.ApplicationList) (err error)
- func (c *Applications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetApplicationRequest) (count int64, err error)
- func (c *Applications) Create(enableTracing bool, ctx context.Context, req *auth.ApplicationList) (err error)
- func (c *Applications) Delete(enableTracing bool, ctx context.Context, data *auth.DeleteApplicationRequest) (err error)
- func (c *Applications) FindByDefault(enableTracing bool, ctx context.Context, params bool) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByID(enableTracing bool, ctx context.Context, params string) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByIDAndDefault(enableTracing bool, ctx context.Context, params string, def bool) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByMultipleIDAndDefault(enableTracing bool, ctx context.Context, param []string, def bool) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByName(enableTracing bool, ctx context.Context, params string) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetApplicationRequest) (res []*auth.ApplicationList, err error)
- func (c *Applications) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.ApplicationList, err error)
- func (c *Applications) Update(enableTracing bool, ctx context.Context, req *auth.EditApplicationRequest) (err error)
- type AuthCode
- func (c *AuthCode) Add(enableTracing bool, ctx context.Context, req *auth.AuthCodeList) (err error)
- func (c *AuthCode) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetAuthCodeListRequest) (count int64, err error)
- func (c *AuthCode) Del(enableTracing bool, ctx context.Context, req *auth.AuthCodeList) (err error)
- func (c *AuthCode) FindByCode(enableTracing bool, ctx context.Context, code string) (res []*auth.AuthCodeList, err error)
- func (c *AuthCode) FindByState(enableTracing bool, ctx context.Context, state string) (res []*auth.AuthCodeList, err error)
- func (c *AuthCode) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetAuthCodeListRequest) (res []*auth.AuthCodeList, err error)
- type Logs
- type Models
- func (c *Models) Applications() interfaces.Applications
- func (c *Models) Id() string
- func (c *Models) Init() (err error)
- func (c *Models) Logs() interfaces.Logs
- func (c *Models) Scopes() interfaces.Scopes
- func (c *Models) UserListsApplications() interfaces.UserListsApplications
- func (c *Models) UserListsGroups() interfaces.UserListsGroups
- func (c *Models) Users() interfaces.Users
- func (c *Models) UsersGroupApplications() interfaces.UsersGroupApplications
- func (c *Models) UsersGroupScopes() interfaces.UsersGroupScopes
- func (c *Models) UsersGroups() interfaces.UsersGroups
- type Scopes
- func (c *Scopes) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.ScopeList) (err error)
- func (c *Scopes) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetScopesRequest) (count int64, err error)
- func (c *Scopes) Create(enableTracing bool, ctx context.Context, req *auth.ScopeList) (err error)
- func (c *Scopes) Delete(enableTracing bool, ctx context.Context, req *auth.DeleteScopesRequest) (err error)
- func (c *Scopes) Edit(enableTracing bool, ctx context.Context, req *auth.ScopeList) (err error)
- func (c *Scopes) FindByDefault(enableTracing bool, ctx context.Context, isDefault bool) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByDefaultAndTag(enableTracing bool, ctx context.Context, isDefault bool, tag []string) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByMethodsAndDefault(enableTracing bool, ctx context.Context, params []string, isDefault bool) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByMethodsAndDefaultAndIDAndEnable(enableTracing bool, ctx context.Context, method, id []string, ...) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByMethodsAndDefaultAndTag(enableTracing bool, ctx context.Context, id []string, tag string, ...) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByMethodsAndDefaultAndTagAndEnable(enableTracing bool, ctx context.Context, method []string, tag string, ...) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByMultipleID(enableTracing bool, ctx context.Context, id []string) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByMultipleIDAndDefault(enableTracing bool, ctx context.Context, id []string, isDefault bool) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindByMultipleIDAndDefaultAndTagAndMethod(enableTracing bool, ctx context.Context, id []string, isDefault bool, ...) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindIfExist(enableTracing bool, ctx context.Context, id, method string, isDefault bool) (res []*auth.ScopeList, err error)
- func (c *Scopes) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetScopesRequest) (res []*auth.ScopeList, err error)
- func (c *Scopes) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.ScopeList, err error)
- type Storage
- type Tokens
- func (c *Tokens) DeleteToken(enableTracing bool, ctx context.Context, userid, id string) (err error)
- func (c *Tokens) Find(enableTracing bool, ctx context.Context, query interface{}, ...) (res []*auth.TokenList, err error)
- func (c *Tokens) FindByID(enableTracing bool, ctx context.Context, param string) (res []*auth.TokenList, err error)
- func (c *Tokens) GetToken(enableTracing bool, ctx context.Context, userid, id, appId string, ...) (res types.TokenData, err error)
- func (c *Tokens) GetTokenSameStorage(enableTracing bool, ctx context.Context, userid, id, appId string, ...) (res types.TokenData, err error)
- func (c *Tokens) InsertToken(enableTracing bool, ctx context.Context, req *auth.TokenList) (err error)
- func (c *Tokens) RevokeToken(enableTracing bool, ctx context.Context, userid, id string) (err error)
- func (c *Tokens) TerminateOtherTokens(enableTracing bool, ctx context.Context, userid, id string) (err error)
- type UserListsApplications
- func (c *UserListsApplications) AddApplication(enableTracing bool, ctx context.Context, req *auth.UsersApplicationList) (err error)
- func (c *UserListsApplications) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersApplicationList) (err error)
- func (c *UserListsApplications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersApplicationRequest) (count int64, err error)
- func (c *UserListsApplications) DelApplication(enableTracing bool, ctx context.Context, req *auth.UsersApplicationList) (err error)
- func (c *UserListsApplications) FindByUserIDAndApplicationID(enableTracing bool, ctx context.Context, userID, applicationID string) (res []*auth.UsersApplicationList, err error)
- func (c *UserListsApplications) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersApplicationRequest) (res []*auth.UsersApplicationList, err error)
- func (c *UserListsApplications) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersApplicationList, err error)
- type UserListsGroups
- func (c *UserListsGroups) AddGroups(enableTracing bool, ctx context.Context, req *auth.UsersListGroups) (err error)
- func (c *UserListsGroups) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersListGroups) (err error)
- func (c *UserListsGroups) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersListGroupsRequest) (count int64, err error)
- func (c *UserListsGroups) DelGroups(enableTracing bool, ctx context.Context, req *auth.UsersListGroups) (err error)
- func (c *UserListsGroups) FindByGroupID(enableTracing bool, ctx context.Context, groupID string) (res []*auth.UsersListGroups, err error)
- func (c *UserListsGroups) FindByUserID(enableTracing bool, ctx context.Context, userID string) (res []*auth.UsersListGroups, err error)
- func (c *UserListsGroups) FindByUserIDAndGroupID(enableTracing bool, ctx context.Context, userID, groupID string) (res []*auth.UsersListGroups, err error)
- func (c *UserListsGroups) FindByUserIDAndMultipleGroupID(enableTracing bool, ctx context.Context, userID string, groupID []string) (res []*auth.UsersListGroups, err error)
- func (c *UserListsGroups) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersListGroupsRequest) (res []*auth.UsersListGroups, err error)
- func (c *UserListsGroups) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersListGroups, err error)
- type Users
- func (c *Users) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersList) (err error)
- func (c *Users) CheckLogin(enableTracing bool, ctx context.Context, data *auth.UserLoginRequest, ...) (res *auth.UsersList, err error)
- func (c *Users) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersRequest) (count int64, err error)
- func (c *Users) Create(enableTracing bool, ctx context.Context, data *auth.UsersList) (err error)
- func (c *Users) Delete(enableTracing bool, ctx context.Context, data *auth.UsersList) (err error)
- func (c *Users) FindByDefault(enableTracing bool, ctx context.Context, param bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByDefaultAndSystem(enableTracing bool, ctx context.Context, param, system bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByEmail(enableTracing bool, ctx context.Context, param string) (res []*auth.UsersList, err error)
- func (c *Users) FindByEmailAndSystem(enableTracing bool, ctx context.Context, param string, system bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByID(enableTracing bool, ctx context.Context, param string) (res []*auth.UsersList, err error)
- func (c *Users) FindByIDAndSystem(enableTracing bool, ctx context.Context, param string, system bool) (res []*auth.UsersList, err error)
- func (c *Users) FindBySystem(enableTracing bool, ctx context.Context, param bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByUserName(enableTracing bool, ctx context.Context, param string) (res []*auth.UsersList, err error)
- func (c *Users) FindByUserNameAndSystem(enableTracing bool, ctx context.Context, param string, system bool) (res []*auth.UsersList, err error)
- func (c *Users) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersRequest) (res []*auth.UsersList, err error)
- func (c *Users) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersList, err error)
- func (c *Users) Update(enableTracing bool, ctx context.Context, data *auth.UsersList) (err error)
- func (c *Users) UpdateById(enableTracing bool, ctx context.Context, userId string, ...) (err error)
- type UsersGroupApplications
- func (c *UsersGroupApplications) AddApplication(enableTracing bool, ctx context.Context, req *auth.UsersGroupApplicationsList) (err error)
- func (c *UsersGroupApplications) BulkInsert(enableTracing bool, ctx context.Context, ...) (err error)
- func (c *UsersGroupApplications) CountWithParams(enableTracing bool, ctx context.Context, ...) (count int64, err error)
- func (c *UsersGroupApplications) DelApplication(enableTracing bool, ctx context.Context, req *auth.UsersGroupApplicationsList) (err error)
- func (c *UsersGroupApplications) FindByGroupIDAndApplicationID(enableTracing bool, ctx context.Context, groupID, applicationID string) (res []*auth.UsersGroupApplicationsList, err error)
- func (c *UsersGroupApplications) FindByGroupIDAndMultipleApplicationID(enableTracing bool, ctx context.Context, groupID string, ...) (res []*auth.UsersGroupApplicationsList, err error)
- func (c *UsersGroupApplications) FindByMultipleApplicationID(enableTracing bool, ctx context.Context, applicationID []string) (res []*auth.UsersGroupApplicationsList, err error)
- func (c *UsersGroupApplications) FindByMultipleGroupID(enableTracing bool, ctx context.Context, groupID []string) (res []*auth.UsersGroupApplicationsList, err error)
- func (c *UsersGroupApplications) FindByMultipleGroupIDAndApplicationID(enableTracing bool, ctx context.Context, groupID []string, ...) (res []*auth.UsersGroupApplicationsList, err error)
- func (c *UsersGroupApplications) FindWithParams(enableTracing bool, ctx context.Context, ...) (res []*auth.UsersGroupApplicationsList, err error)
- func (c *UsersGroupApplications) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersGroupApplicationsList, err error)
- type UsersGroupScopes
- func (c *UsersGroupScopes) AddScope(enableTracing bool, ctx context.Context, req *auth.UsersGroupScopesList) (err error)
- func (c *UsersGroupScopes) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersGroupScopesList) (err error)
- func (c *UsersGroupScopes) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupScopesRequest) (count int64, err error)
- func (c *UsersGroupScopes) DelScope(enableTracing bool, ctx context.Context, req *auth.UsersGroupScopesList) (err error)
- func (c *UsersGroupScopes) FindByGroupID(enableTracing bool, ctx context.Context, groupID string) (res []*auth.UsersGroupScopesList, err error)
- func (c *UsersGroupScopes) FindByGroupIDAndMultiScopeID(enableTracing bool, ctx context.Context, groupID string, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
- func (c *UsersGroupScopes) FindByGroupIDAndScopeID(enableTracing bool, ctx context.Context, groupID, scopeID string) (res []*auth.UsersGroupScopesList, err error)
- func (c *UsersGroupScopes) FindByMultipleGroupID(enableTracing bool, ctx context.Context, groupID []string) (res []*auth.UsersGroupScopesList, err error)
- func (c *UsersGroupScopes) FindByMultipleGroupIDAndScopeID(enableTracing bool, ctx context.Context, groupID, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
- func (c *UsersGroupScopes) FindByScopeID(enableTracing bool, ctx context.Context, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
- func (c *UsersGroupScopes) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupScopesRequest) (res []*auth.UsersGroupScopesList, err error)
- func (c *UsersGroupScopes) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersGroupScopesList, err error)
- type UsersGroups
- func (c *UsersGroups) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersGroupList) (err error)
- func (c *UsersGroups) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupRequest) (count int64, err error)
- func (c *UsersGroups) Create(enableTracing bool, ctx context.Context, data *auth.UsersGroupList) (err error)
- func (c *UsersGroups) DeleteByIDAndSystem(enableTracing bool, ctx context.Context, id string, system bool) (err error)
- func (c *UsersGroups) FindByDefault(enableTracing bool, ctx context.Context, isDefault bool) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) FindByDefaultAndSystem(enableTracing bool, ctx context.Context, isDefault, system bool) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) FindByIDAndDefaultAndSystem(enableTracing bool, ctx context.Context, id string, isDefault, system bool) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) FindByIDAndSystem(enableTracing bool, ctx context.Context, id string, system bool) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) FindByMultipleIDAndSystem(enableTracing bool, ctx context.Context, id []string, system bool) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) FindBySystem(enableTracing bool, ctx context.Context, system bool) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupRequest) (res []*auth.UsersGroupList, err error)
- func (c *UsersGroups) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersGroupList, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplications ¶
func NewApplications(m *Models) interfaces.Applications
func NewAuthCode ¶
func NewAuthCode(m *Storage) interfaces.AuthCode
func NewLogs ¶
func NewLogs(m *Models) interfaces.Logs
func NewModels ¶
func NewModels(opt *interfaces.AuthOption, database interface{}) interfaces.Models
func NewScopes ¶
func NewScopes(m *Models) interfaces.Scopes
func NewStorage ¶ added in v0.0.8
func NewStorage(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Storage
func NewTokens ¶
func NewTokens(mm interfaces.Models, m *Storage) interfaces.Tokens
func NewUserListsApplications ¶
func NewUserListsApplications(m *Models) interfaces.UserListsApplications
func NewUserListsGroups ¶
func NewUserListsGroups(m *Models) interfaces.UserListsGroups
func NewUsers ¶
func NewUsers(m *Models) interfaces.Users
func NewUsersGroupApplications ¶
func NewUsersGroupApplications(m *Models) interfaces.UsersGroupApplications
func NewUsersGroupScopes ¶
func NewUsersGroupScopes(m *Models) interfaces.UsersGroupScopes
func NewUsersGroups ¶
func NewUsersGroups(m *Models) interfaces.UsersGroups
Types ¶
type Applications ¶
type Applications struct {
// contains filtered or unexported fields
}
func (*Applications) BulkInsert ¶ added in v0.0.9
func (c *Applications) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.ApplicationList) (err error)
BulkInsert - this for migration data
func (*Applications) CountWithParams ¶
func (c *Applications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetApplicationRequest) (count int64, err error)
func (*Applications) Create ¶
func (c *Applications) Create(enableTracing bool, ctx context.Context, req *auth.ApplicationList) (err error)
func (*Applications) Delete ¶
func (c *Applications) Delete(enableTracing bool, ctx context.Context, data *auth.DeleteApplicationRequest) (err error)
func (*Applications) FindByDefault ¶
func (c *Applications) FindByDefault(enableTracing bool, ctx context.Context, params bool) (res []*auth.ApplicationList, err error)
func (*Applications) FindByID ¶
func (c *Applications) FindByID(enableTracing bool, ctx context.Context, params string) (res []*auth.ApplicationList, err error)
func (*Applications) FindByIDAndDefault ¶
func (c *Applications) FindByIDAndDefault(enableTracing bool, ctx context.Context, params string, def bool) (res []*auth.ApplicationList, err error)
func (*Applications) FindByMultipleIDAndDefault ¶
func (c *Applications) FindByMultipleIDAndDefault(enableTracing bool, ctx context.Context, param []string, def bool) (res []*auth.ApplicationList, err error)
func (*Applications) FindByName ¶
func (c *Applications) FindByName(enableTracing bool, ctx context.Context, params string) (res []*auth.ApplicationList, err error)
func (*Applications) FindWithParams ¶
func (c *Applications) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetApplicationRequest) (res []*auth.ApplicationList, err error)
func (*Applications) GetData ¶ added in v0.0.9
func (c *Applications) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.ApplicationList, err error)
GetData - this for migration data
func (*Applications) Update ¶ added in v0.0.6
func (c *Applications) Update(enableTracing bool, ctx context.Context, req *auth.EditApplicationRequest) (err error)
type AuthCode ¶
type AuthCode struct {
// contains filtered or unexported fields
}
func (*AuthCode) CountWithParams ¶
func (*AuthCode) FindByCode ¶
func (*AuthCode) FindByState ¶
func (*AuthCode) FindWithParams ¶
func (c *AuthCode) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetAuthCodeListRequest) (res []*auth.AuthCodeList, err error)
type Models ¶
type Models struct { Options *interfaces.AuthOption DefaultTimeout time.Duration // contains filtered or unexported fields }
func (*Models) Applications ¶
func (c *Models) Applications() interfaces.Applications
func (*Models) Logs ¶
func (c *Models) Logs() interfaces.Logs
func (*Models) Scopes ¶
func (c *Models) Scopes() interfaces.Scopes
func (*Models) UserListsApplications ¶
func (c *Models) UserListsApplications() interfaces.UserListsApplications
func (*Models) UserListsGroups ¶
func (c *Models) UserListsGroups() interfaces.UserListsGroups
func (*Models) Users ¶
func (c *Models) Users() interfaces.Users
func (*Models) UsersGroupApplications ¶
func (c *Models) UsersGroupApplications() interfaces.UsersGroupApplications
func (*Models) UsersGroupScopes ¶
func (c *Models) UsersGroupScopes() interfaces.UsersGroupScopes
func (*Models) UsersGroups ¶
func (c *Models) UsersGroups() interfaces.UsersGroups
type Scopes ¶
type Scopes struct {
// contains filtered or unexported fields
}
func (*Scopes) BulkInsert ¶ added in v0.0.9
func (c *Scopes) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.ScopeList) (err error)
BulkInsert - this for migration data
func (*Scopes) CountWithParams ¶
func (*Scopes) FindByDefault ¶ added in v0.0.9
func (*Scopes) FindByDefaultAndTag ¶ added in v0.0.9
func (*Scopes) FindByMethodsAndDefault ¶
func (*Scopes) FindByMethodsAndDefaultAndIDAndEnable ¶
func (*Scopes) FindByMethodsAndDefaultAndTag ¶ added in v0.0.7
func (*Scopes) FindByMethodsAndDefaultAndTagAndEnable ¶ added in v0.0.7
func (*Scopes) FindByMultipleID ¶
func (*Scopes) FindByMultipleIDAndDefault ¶
func (*Scopes) FindByMultipleIDAndDefaultAndTagAndMethod ¶ added in v0.0.9
func (*Scopes) FindIfExist ¶
func (*Scopes) FindWithParams ¶
type Storage ¶ added in v0.0.8
type Storage struct { Options *interfaces.AuthOption DefaultTimeout time.Duration // contains filtered or unexported fields }
func (*Storage) AuthCode ¶ added in v0.0.8
func (c *Storage) AuthCode() interfaces.AuthCode
func (*Storage) Tokens ¶ added in v0.0.8
func (c *Storage) Tokens() interfaces.Tokens
type Tokens ¶
type Tokens struct {
// contains filtered or unexported fields
}
func (*Tokens) DeleteToken ¶
func (*Tokens) GetTokenSameStorage ¶ added in v0.0.8
func (*Tokens) InsertToken ¶
func (*Tokens) RevokeToken ¶
type UserListsApplications ¶
type UserListsApplications struct {
// contains filtered or unexported fields
}
func (*UserListsApplications) AddApplication ¶
func (c *UserListsApplications) AddApplication(enableTracing bool, ctx context.Context, req *auth.UsersApplicationList) (err error)
func (*UserListsApplications) BulkInsert ¶ added in v1.0.0
func (c *UserListsApplications) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersApplicationList) (err error)
BulkInsert - this for migration data
func (*UserListsApplications) CountWithParams ¶
func (c *UserListsApplications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersApplicationRequest) (count int64, err error)
func (*UserListsApplications) DelApplication ¶
func (c *UserListsApplications) DelApplication(enableTracing bool, ctx context.Context, req *auth.UsersApplicationList) (err error)
func (*UserListsApplications) FindByUserIDAndApplicationID ¶
func (c *UserListsApplications) FindByUserIDAndApplicationID(enableTracing bool, ctx context.Context, userID, applicationID string) (res []*auth.UsersApplicationList, err error)
func (*UserListsApplications) FindWithParams ¶
func (c *UserListsApplications) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersApplicationRequest) (res []*auth.UsersApplicationList, err error)
func (*UserListsApplications) GetData ¶ added in v1.0.0
func (c *UserListsApplications) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersApplicationList, err error)
GetData - this for migration data
type UserListsGroups ¶
type UserListsGroups struct {
// contains filtered or unexported fields
}
func (*UserListsGroups) AddGroups ¶
func (c *UserListsGroups) AddGroups(enableTracing bool, ctx context.Context, req *auth.UsersListGroups) (err error)
func (*UserListsGroups) BulkInsert ¶ added in v1.0.0
func (c *UserListsGroups) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersListGroups) (err error)
BulkInsert - this for migration data
func (*UserListsGroups) CountWithParams ¶
func (c *UserListsGroups) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersListGroupsRequest) (count int64, err error)
func (*UserListsGroups) DelGroups ¶
func (c *UserListsGroups) DelGroups(enableTracing bool, ctx context.Context, req *auth.UsersListGroups) (err error)
func (*UserListsGroups) FindByGroupID ¶
func (c *UserListsGroups) FindByGroupID(enableTracing bool, ctx context.Context, groupID string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindByUserID ¶
func (c *UserListsGroups) FindByUserID(enableTracing bool, ctx context.Context, userID string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindByUserIDAndGroupID ¶
func (c *UserListsGroups) FindByUserIDAndGroupID(enableTracing bool, ctx context.Context, userID, groupID string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindByUserIDAndMultipleGroupID ¶
func (c *UserListsGroups) FindByUserIDAndMultipleGroupID(enableTracing bool, ctx context.Context, userID string, groupID []string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindWithParams ¶
func (c *UserListsGroups) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersListGroupsRequest) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) GetData ¶ added in v1.0.0
func (c *UserListsGroups) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersListGroups, err error)
GetData - this for migration data
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func (*Users) BulkInsert ¶ added in v1.0.0
func (c *Users) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersList) (err error)
BulkInsert - this for migration data
func (*Users) CheckLogin ¶
func (*Users) CountWithParams ¶
func (*Users) FindByDefault ¶
func (*Users) FindByDefaultAndSystem ¶
func (*Users) FindByEmail ¶
func (*Users) FindByEmailAndSystem ¶
func (*Users) FindByIDAndSystem ¶
func (*Users) FindBySystem ¶
func (*Users) FindByUserName ¶
func (*Users) FindByUserNameAndSystem ¶
func (*Users) FindWithParams ¶
func (*Users) GetData ¶ added in v1.0.0
func (c *Users) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersList, err error)
GetData - this for migration data
type UsersGroupApplications ¶
type UsersGroupApplications struct {
// contains filtered or unexported fields
}
func (*UsersGroupApplications) AddApplication ¶
func (c *UsersGroupApplications) AddApplication(enableTracing bool, ctx context.Context, req *auth.UsersGroupApplicationsList) (err error)
func (*UsersGroupApplications) BulkInsert ¶ added in v1.0.0
func (c *UsersGroupApplications) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersGroupApplicationsList) (err error)
BulkInsert - this for migration data
func (*UsersGroupApplications) CountWithParams ¶
func (c *UsersGroupApplications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupApplicationsRequest) (count int64, err error)
func (*UsersGroupApplications) DelApplication ¶
func (c *UsersGroupApplications) DelApplication(enableTracing bool, ctx context.Context, req *auth.UsersGroupApplicationsList) (err error)
func (*UsersGroupApplications) FindByGroupIDAndApplicationID ¶
func (c *UsersGroupApplications) FindByGroupIDAndApplicationID(enableTracing bool, ctx context.Context, groupID, applicationID string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByGroupIDAndMultipleApplicationID ¶
func (c *UsersGroupApplications) FindByGroupIDAndMultipleApplicationID(enableTracing bool, ctx context.Context, groupID string, applicationID []string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByMultipleApplicationID ¶
func (c *UsersGroupApplications) FindByMultipleApplicationID(enableTracing bool, ctx context.Context, applicationID []string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByMultipleGroupID ¶
func (c *UsersGroupApplications) FindByMultipleGroupID(enableTracing bool, ctx context.Context, groupID []string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByMultipleGroupIDAndApplicationID ¶
func (c *UsersGroupApplications) FindByMultipleGroupIDAndApplicationID(enableTracing bool, ctx context.Context, groupID []string, applicationID string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindWithParams ¶
func (c *UsersGroupApplications) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupApplicationsRequest) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) GetData ¶ added in v1.0.0
func (c *UsersGroupApplications) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersGroupApplicationsList, err error)
GetData - this for migration data
type UsersGroupScopes ¶
type UsersGroupScopes struct {
// contains filtered or unexported fields
}
func (*UsersGroupScopes) AddScope ¶
func (c *UsersGroupScopes) AddScope(enableTracing bool, ctx context.Context, req *auth.UsersGroupScopesList) (err error)
func (*UsersGroupScopes) BulkInsert ¶ added in v1.0.0
func (c *UsersGroupScopes) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersGroupScopesList) (err error)
BulkInsert - this for migration data
func (*UsersGroupScopes) CountWithParams ¶
func (c *UsersGroupScopes) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupScopesRequest) (count int64, err error)
func (*UsersGroupScopes) DelScope ¶
func (c *UsersGroupScopes) DelScope(enableTracing bool, ctx context.Context, req *auth.UsersGroupScopesList) (err error)
func (*UsersGroupScopes) FindByGroupID ¶
func (c *UsersGroupScopes) FindByGroupID(enableTracing bool, ctx context.Context, groupID string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByGroupIDAndMultiScopeID ¶
func (c *UsersGroupScopes) FindByGroupIDAndMultiScopeID(enableTracing bool, ctx context.Context, groupID string, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByGroupIDAndScopeID ¶
func (c *UsersGroupScopes) FindByGroupIDAndScopeID(enableTracing bool, ctx context.Context, groupID, scopeID string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByMultipleGroupID ¶
func (c *UsersGroupScopes) FindByMultipleGroupID(enableTracing bool, ctx context.Context, groupID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByMultipleGroupIDAndScopeID ¶
func (c *UsersGroupScopes) FindByMultipleGroupIDAndScopeID(enableTracing bool, ctx context.Context, groupID, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByScopeID ¶
func (c *UsersGroupScopes) FindByScopeID(enableTracing bool, ctx context.Context, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindWithParams ¶
func (c *UsersGroupScopes) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupScopesRequest) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) GetData ¶ added in v1.0.0
func (c *UsersGroupScopes) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersGroupScopesList, err error)
GetData - this for migration data
type UsersGroups ¶
type UsersGroups struct {
// contains filtered or unexported fields
}
func (*UsersGroups) BulkInsert ¶ added in v1.0.0
func (c *UsersGroups) BulkInsert(enableTracing bool, ctx context.Context, req []*auth.UsersGroupList) (err error)
BulkInsert - this for migration data
func (*UsersGroups) CountWithParams ¶
func (c *UsersGroups) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupRequest) (count int64, err error)
func (*UsersGroups) Create ¶
func (c *UsersGroups) Create(enableTracing bool, ctx context.Context, data *auth.UsersGroupList) (err error)
func (*UsersGroups) DeleteByIDAndSystem ¶
func (*UsersGroups) FindByDefault ¶
func (c *UsersGroups) FindByDefault(enableTracing bool, ctx context.Context, isDefault bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByDefaultAndSystem ¶
func (c *UsersGroups) FindByDefaultAndSystem(enableTracing bool, ctx context.Context, isDefault, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByID ¶
func (c *UsersGroups) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByIDAndDefaultAndSystem ¶
func (c *UsersGroups) FindByIDAndDefaultAndSystem(enableTracing bool, ctx context.Context, id string, isDefault, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByIDAndSystem ¶
func (c *UsersGroups) FindByIDAndSystem(enableTracing bool, ctx context.Context, id string, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByMultipleIDAndSystem ¶
func (c *UsersGroups) FindByMultipleIDAndSystem(enableTracing bool, ctx context.Context, id []string, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindBySystem ¶
func (c *UsersGroups) FindBySystem(enableTracing bool, ctx context.Context, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindWithParams ¶
func (c *UsersGroups) FindWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupRequest) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) GetData ¶ added in v1.0.0
func (c *UsersGroups) GetData(enableTracing bool, ctx context.Context, limit, skip int) (res []*auth.UsersGroupList, err error)
GetData - this for migration data
Click to show internal directories.
Click to hide internal directories.