Documentation ¶
Index ¶
- func NewApplications(m *Models, db *mongo.Database) (res interfaces.Applications, err error)
- func NewAuthCode(mm interfaces.Models, m *Storage, db *mongo.Database) (res interfaces.AuthCode, err error)
- func NewModels(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Models
- func NewScopes(m *Models, db *mongo.Database) (res interfaces.Scopes, err error)
- func NewStorage(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Storage
- func NewTokens(mm interfaces.Models, m *Storage, db *mongo.Database) (res interfaces.Tokens, err error)
- func NewUserListsApplications(m *Models, db *mongo.Database) (res interfaces.UserListsApplications, err error)
- func NewUserListsGroups(m *Models, db *mongo.Database) (res interfaces.UserListsGroups, err error)
- func NewUsers(m *Models, db *mongo.Database) (res interfaces.Users, err error)
- func NewUsersGroupApplications(m *Models, db *mongo.Database) (res interfaces.UsersGroupApplications, err error)
- func NewUsersGroupScopes(m *Models, db *mongo.Database) (res interfaces.UsersGroupScopes, err error)
- func NewUsersGroups(m *Models, db *mongo.Database) (res interfaces.UsersGroups, err error)
- 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, req *auth.DeleteApplicationRequest) (err error)
- func (c *Applications) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByDefault(enableTracing bool, ctx context.Context, isDefault bool) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByIDAndDefault(enableTracing bool, ctx context.Context, id string, isDefault bool) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByMultipleIDAndDefault(enableTracing bool, ctx context.Context, id []string, isDefault bool) (res []*auth.ApplicationList, err error)
- func (c *Applications) FindByName(enableTracing bool, ctx context.Context, name 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) 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, userId, state string) (res []*auth.AuthCodeList, err error)
- type Models
- func (c *Models) Applications() interfaces.Applications
- func (c *Models) CreteIndex(col *mongo.Collection, mongoIndexModel []types.MongoIndex) error
- 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) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*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, method []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, method []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) InsertToken(enableTracing bool, ctx context.Context, req *auth.TokenList) (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) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*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) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*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, req *auth.UsersList) (err error)
- func (c *Users) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*auth.UsersList, err error)
- func (c *Users) FindByDefault(enableTracing bool, ctx context.Context, isDefault bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByDefaultAndSystem(enableTracing bool, ctx context.Context, isDefault, isSystem bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByEmail(enableTracing bool, ctx context.Context, email string) (res []*auth.UsersList, err error)
- func (c *Users) FindByEmailAndSystem(enableTracing bool, ctx context.Context, email string, isSystem bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.UsersList, err error)
- func (c *Users) FindByIDAndSystem(enableTracing bool, ctx context.Context, id string, isSystem bool) (res []*auth.UsersList, err error)
- func (c *Users) FindBySystem(enableTracing bool, ctx context.Context, isSystem bool) (res []*auth.UsersList, err error)
- func (c *Users) FindByUserName(enableTracing bool, ctx context.Context, userName string) (res []*auth.UsersList, err error)
- func (c *Users) FindByUserNameAndSystem(enableTracing bool, ctx context.Context, userName string, isSystem 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, req *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) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*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) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*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) Find(enableTracing bool, ctx context.Context, filter interface{}, ...) (res []*auth.UsersGroupList, 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 ¶ added in v0.0.9
func NewApplications(m *Models, db *mongo.Database) (res interfaces.Applications, err error)
func NewAuthCode ¶
func NewAuthCode(mm interfaces.Models, m *Storage, db *mongo.Database) (res interfaces.AuthCode, err error)
func NewModels ¶ added in v0.0.9
func NewModels(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Models
func NewStorage ¶
func NewStorage(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Storage
func NewTokens ¶
func NewTokens(mm interfaces.Models, m *Storage, db *mongo.Database) (res interfaces.Tokens, err error)
func NewUserListsApplications ¶ added in v1.0.0
func NewUserListsApplications(m *Models, db *mongo.Database) (res interfaces.UserListsApplications, err error)
func NewUserListsGroups ¶ added in v1.0.0
func NewUserListsGroups(m *Models, db *mongo.Database) (res interfaces.UserListsGroups, err error)
func NewUsersGroupApplications ¶ added in v1.0.0
func NewUsersGroupApplications(m *Models, db *mongo.Database) (res interfaces.UsersGroupApplications, err error)
func NewUsersGroupScopes ¶ added in v1.0.0
func NewUsersGroupScopes(m *Models, db *mongo.Database) (res interfaces.UsersGroupScopes, err error)
func NewUsersGroups ¶ added in v1.0.0
func NewUsersGroups(m *Models, db *mongo.Database) (res interfaces.UsersGroups, err error)
Types ¶
type Applications ¶ added in v0.0.9
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 ¶ added in v1.0.0
func (c *Applications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetApplicationRequest) (count int64, err error)
func (*Applications) Create ¶ added in v0.0.9
func (c *Applications) Create(enableTracing bool, ctx context.Context, req *auth.ApplicationList) (err error)
func (*Applications) Delete ¶ added in v0.0.9
func (c *Applications) Delete(enableTracing bool, ctx context.Context, req *auth.DeleteApplicationRequest) (err error)
func (*Applications) Find ¶ added in v0.0.9
func (c *Applications) Find(enableTracing bool, ctx context.Context, filter interface{}, opts *options.FindOptions) (res []*auth.ApplicationList, err error)
func (*Applications) FindByDefault ¶ added in v0.0.9
func (c *Applications) FindByDefault(enableTracing bool, ctx context.Context, isDefault bool) (res []*auth.ApplicationList, err error)
func (*Applications) FindByID ¶ added in v0.0.9
func (c *Applications) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.ApplicationList, err error)
func (*Applications) FindByIDAndDefault ¶ added in v0.0.9
func (c *Applications) FindByIDAndDefault(enableTracing bool, ctx context.Context, id string, isDefault bool) (res []*auth.ApplicationList, err error)
func (*Applications) FindByMultipleIDAndDefault ¶ added in v0.0.9
func (c *Applications) FindByMultipleIDAndDefault(enableTracing bool, ctx context.Context, id []string, isDefault bool) (res []*auth.ApplicationList, err error)
func (*Applications) FindByName ¶ added in v0.0.9
func (c *Applications) FindByName(enableTracing bool, ctx context.Context, name string) (res []*auth.ApplicationList, err error)
func (*Applications) FindWithParams ¶ added in v0.0.9
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.9
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) FindByCode ¶
func (*AuthCode) FindByState ¶
type Models ¶ added in v0.0.9
type Models struct { Options *interfaces.AuthOption DefaultTimeout time.Duration // contains filtered or unexported fields }
func (*Models) Applications ¶ added in v0.0.9
func (c *Models) Applications() interfaces.Applications
func (*Models) CreteIndex ¶ added in v0.0.9
func (c *Models) CreteIndex(col *mongo.Collection, mongoIndexModel []types.MongoIndex) error
func (*Models) Logs ¶ added in v0.0.9
func (c *Models) Logs() interfaces.Logs
func (*Models) Scopes ¶ added in v0.0.9
func (c *Models) Scopes() interfaces.Scopes
func (*Models) UserListsApplications ¶ added in v0.0.9
func (c *Models) UserListsApplications() interfaces.UserListsApplications
func (*Models) UserListsGroups ¶ added in v0.0.9
func (c *Models) UserListsGroups() interfaces.UserListsGroups
func (*Models) Users ¶ added in v0.0.9
func (c *Models) Users() interfaces.Users
func (*Models) UsersGroupApplications ¶ added in v0.0.9
func (c *Models) UsersGroupApplications() interfaces.UsersGroupApplications
func (*Models) UsersGroupScopes ¶ added in v0.0.9
func (c *Models) UsersGroupScopes() interfaces.UsersGroupScopes
func (*Models) UsersGroups ¶ added in v0.0.9
func (c *Models) UsersGroups() interfaces.UsersGroups
type Scopes ¶ added in v0.0.9
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 ¶ added in v1.0.0
func (*Scopes) FindByDefault ¶ added in v0.0.9
func (*Scopes) FindByDefaultAndTag ¶ added in v0.0.9
func (*Scopes) FindByMethodsAndDefault ¶ added in v0.0.9
func (*Scopes) FindByMethodsAndDefaultAndIDAndEnable ¶ added in v0.0.9
func (*Scopes) FindByMethodsAndDefaultAndTag ¶ added in v0.0.9
func (*Scopes) FindByMethodsAndDefaultAndTagAndEnable ¶ added in v0.0.9
func (*Scopes) FindByMultipleID ¶ added in v0.0.9
func (*Scopes) FindByMultipleIDAndDefault ¶ added in v0.0.9
func (*Scopes) FindByMultipleIDAndDefaultAndTagAndMethod ¶ added in v0.0.9
func (*Scopes) FindIfExist ¶ added in v0.0.9
func (*Scopes) FindWithParams ¶ added in v0.0.9
type Storage ¶
type Storage struct { Options *interfaces.AuthOption DefaultTimeout time.Duration // contains filtered or unexported fields }
func (*Storage) AuthCode ¶
func (c *Storage) AuthCode() interfaces.AuthCode
func (*Storage) CreteIndex ¶
func (c *Storage) CreteIndex(col *mongo.Collection, mongoIndexModel []types.MongoIndex) error
func (*Storage) Tokens ¶
func (c *Storage) Tokens() interfaces.Tokens
type Tokens ¶
type Tokens struct {
// contains filtered or unexported fields
}
func (*Tokens) DeleteToken ¶
func (*Tokens) InsertToken ¶
type UserListsApplications ¶ added in v1.0.0
type UserListsApplications struct {
// contains filtered or unexported fields
}
func (*UserListsApplications) AddApplication ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (c *UserListsApplications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersApplicationRequest) (count int64, err error)
func (*UserListsApplications) DelApplication ¶ added in v1.0.0
func (c *UserListsApplications) DelApplication(enableTracing bool, ctx context.Context, req *auth.UsersApplicationList) (err error)
func (*UserListsApplications) Find ¶ added in v1.0.0
func (c *UserListsApplications) Find(enableTracing bool, ctx context.Context, filter interface{}, opts *options.FindOptions) (res []*auth.UsersApplicationList, err error)
func (*UserListsApplications) FindByUserIDAndApplicationID ¶ added in v1.0.0
func (c *UserListsApplications) FindByUserIDAndApplicationID(enableTracing bool, ctx context.Context, userID, applicationID string) (res []*auth.UsersApplicationList, err error)
func (*UserListsApplications) FindWithParams ¶ added in v1.0.0
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 ¶ added in v1.0.0
type UserListsGroups struct {
// contains filtered or unexported fields
}
func (*UserListsGroups) AddGroups ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (c *UserListsGroups) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersListGroupsRequest) (count int64, err error)
func (*UserListsGroups) DelGroups ¶ added in v1.0.0
func (c *UserListsGroups) DelGroups(enableTracing bool, ctx context.Context, req *auth.UsersListGroups) (err error)
func (*UserListsGroups) Find ¶ added in v1.0.0
func (c *UserListsGroups) Find(enableTracing bool, ctx context.Context, filter interface{}, opts *options.FindOptions) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindByGroupID ¶ added in v1.0.0
func (c *UserListsGroups) FindByGroupID(enableTracing bool, ctx context.Context, groupID string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindByUserID ¶ added in v1.0.0
func (c *UserListsGroups) FindByUserID(enableTracing bool, ctx context.Context, userID string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindByUserIDAndGroupID ¶ added in v1.0.0
func (c *UserListsGroups) FindByUserIDAndGroupID(enableTracing bool, ctx context.Context, userID, groupID string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindByUserIDAndMultipleGroupID ¶ added in v1.0.0
func (c *UserListsGroups) FindByUserIDAndMultipleGroupID(enableTracing bool, ctx context.Context, userID string, groupID []string) (res []*auth.UsersListGroups, err error)
func (*UserListsGroups) FindWithParams ¶ added in v1.0.0
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 ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (*Users) CountWithParams ¶ added in v1.0.0
func (*Users) FindByDefault ¶ added in v1.0.0
func (*Users) FindByDefaultAndSystem ¶ added in v1.0.0
func (*Users) FindByEmail ¶ added in v1.0.0
func (*Users) FindByEmailAndSystem ¶ added in v1.0.0
func (*Users) FindByIDAndSystem ¶ added in v1.0.0
func (*Users) FindBySystem ¶ added in v1.0.0
func (*Users) FindByUserName ¶ added in v1.0.0
func (*Users) FindByUserNameAndSystem ¶ added in v1.0.0
func (*Users) FindWithParams ¶ added in v1.0.0
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 ¶ added in v1.0.0
type UsersGroupApplications struct {
// contains filtered or unexported fields
}
func (*UsersGroupApplications) AddApplication ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (c *UsersGroupApplications) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupApplicationsRequest) (count int64, err error)
func (*UsersGroupApplications) DelApplication ¶ added in v1.0.0
func (c *UsersGroupApplications) DelApplication(enableTracing bool, ctx context.Context, req *auth.UsersGroupApplicationsList) (err error)
func (*UsersGroupApplications) Find ¶ added in v1.0.0
func (c *UsersGroupApplications) Find(enableTracing bool, ctx context.Context, filter interface{}, opts *options.FindOptions) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByGroupIDAndApplicationID ¶ added in v1.0.0
func (c *UsersGroupApplications) FindByGroupIDAndApplicationID(enableTracing bool, ctx context.Context, groupID, applicationID string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByGroupIDAndMultipleApplicationID ¶ added in v1.0.0
func (c *UsersGroupApplications) FindByGroupIDAndMultipleApplicationID(enableTracing bool, ctx context.Context, groupID string, applicationID []string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByMultipleApplicationID ¶ added in v1.0.0
func (c *UsersGroupApplications) FindByMultipleApplicationID(enableTracing bool, ctx context.Context, applicationID []string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByMultipleGroupID ¶ added in v1.0.0
func (c *UsersGroupApplications) FindByMultipleGroupID(enableTracing bool, ctx context.Context, groupID []string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindByMultipleGroupIDAndApplicationID ¶ added in v1.0.0
func (c *UsersGroupApplications) FindByMultipleGroupIDAndApplicationID(enableTracing bool, ctx context.Context, groupID []string, applicationID string) (res []*auth.UsersGroupApplicationsList, err error)
func (*UsersGroupApplications) FindWithParams ¶ added in v1.0.0
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 ¶ added in v1.0.0
type UsersGroupScopes struct {
// contains filtered or unexported fields
}
func (*UsersGroupScopes) AddScope ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (c *UsersGroupScopes) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupScopesRequest) (count int64, err error)
func (*UsersGroupScopes) DelScope ¶ added in v1.0.0
func (c *UsersGroupScopes) DelScope(enableTracing bool, ctx context.Context, req *auth.UsersGroupScopesList) (err error)
func (*UsersGroupScopes) Find ¶ added in v1.0.0
func (c *UsersGroupScopes) Find(enableTracing bool, ctx context.Context, filter interface{}, opts *options.FindOptions) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByGroupID ¶ added in v1.0.0
func (c *UsersGroupScopes) FindByGroupID(enableTracing bool, ctx context.Context, groupID string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByGroupIDAndMultiScopeID ¶ added in v1.0.0
func (c *UsersGroupScopes) FindByGroupIDAndMultiScopeID(enableTracing bool, ctx context.Context, groupID string, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByGroupIDAndScopeID ¶ added in v1.0.0
func (c *UsersGroupScopes) FindByGroupIDAndScopeID(enableTracing bool, ctx context.Context, groupID, scopeID string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByMultipleGroupID ¶ added in v1.0.0
func (c *UsersGroupScopes) FindByMultipleGroupID(enableTracing bool, ctx context.Context, groupID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByMultipleGroupIDAndScopeID ¶ added in v1.0.0
func (c *UsersGroupScopes) FindByMultipleGroupIDAndScopeID(enableTracing bool, ctx context.Context, groupID, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindByScopeID ¶ added in v1.0.0
func (c *UsersGroupScopes) FindByScopeID(enableTracing bool, ctx context.Context, scopeID []string) (res []*auth.UsersGroupScopesList, err error)
func (*UsersGroupScopes) FindWithParams ¶ added in v1.0.0
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 ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (c *UsersGroups) CountWithParams(enableTracing bool, ctx context.Context, req *auth.GetUsersGroupRequest) (count int64, err error)
func (*UsersGroups) Create ¶ added in v1.0.0
func (c *UsersGroups) Create(enableTracing bool, ctx context.Context, data *auth.UsersGroupList) (err error)
func (*UsersGroups) DeleteByIDAndSystem ¶ added in v1.0.0
func (*UsersGroups) Find ¶ added in v1.0.0
func (c *UsersGroups) Find(enableTracing bool, ctx context.Context, filter interface{}, opts *options.FindOptions) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByDefault ¶ added in v1.0.0
func (c *UsersGroups) FindByDefault(enableTracing bool, ctx context.Context, isDefault bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByDefaultAndSystem ¶ added in v1.0.0
func (c *UsersGroups) FindByDefaultAndSystem(enableTracing bool, ctx context.Context, isDefault, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByID ¶ added in v1.0.0
func (c *UsersGroups) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByIDAndDefaultAndSystem ¶ added in v1.0.0
func (c *UsersGroups) FindByIDAndDefaultAndSystem(enableTracing bool, ctx context.Context, id string, isDefault, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByIDAndSystem ¶ added in v1.0.0
func (c *UsersGroups) FindByIDAndSystem(enableTracing bool, ctx context.Context, id string, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindByMultipleIDAndSystem ¶ added in v1.0.0
func (c *UsersGroups) FindByMultipleIDAndSystem(enableTracing bool, ctx context.Context, id []string, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindBySystem ¶ added in v1.0.0
func (c *UsersGroups) FindBySystem(enableTracing bool, ctx context.Context, system bool) (res []*auth.UsersGroupList, err error)
func (*UsersGroups) FindWithParams ¶ added in v1.0.0
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.