Documentation
¶
Index ¶
- func ParsingTime(date string) (t time.Time, err error)
- type Applications
- type AuthCodeList
- type Logs
- type MongoIndex
- type Scopes
- type TokenData
- type Tokens
- type TokensWithInfo
- type UserListsApplications
- type UserListsGroups
- type Users
- type UsersGroupApplications
- type UsersGroupScopes
- type UsersGroups
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Applications ¶
type Applications struct {
auth.ApplicationList
}
func (*Applications) TableName ¶
func (*Applications) TableName() string
type AuthCodeList ¶
type AuthCodeList struct {
auth.AuthCodeList
}
func (*AuthCodeList) TableName ¶
func (*AuthCodeList) TableName() string
type Logs ¶
type MongoIndex ¶ added in v0.0.8
type MongoIndex struct {
Collection string
Field string
Unique bool
Desc bool
ExpiredAfterSecond int32
}
MongoIndex - indexing mongodb
type TokenData ¶
type TokenData struct {
TokenID string `gorm:"column:token_id" mapstructure:"token_id"`
ApplicationID string `gorm:"column:application_id" mapstructure:"application_id"`
ApplicationSecret string `gorm:"column:application_secret" mapstructure:"application_secret"`
ApplicationPublicKey string `gorm:"column:application_public_key" mapstructure:"application_public_key"`
ApplicationAlg int32 `gorm:"column:application_alg" mapstructure:"application_alg"`
ApplicationDefault bool `gorm:"column:application_default" mapstructure:"application_default"`
TokenIsValid bool `gorm:"column:token_valid" mapstructure:"token_valid"`
UserID string `gorm:"column:user_id" mapstructure:"user_id"`
UserEmail string `gorm:"column:user_email" mapstructure:"user_email"`
UserUserName string `gorm:"column:user_username" mapstructure:"user_username"`
UserDefault bool `gorm:"column:user_default" mapstructure:"user_default"`
UserSystem bool `gorm:"column:user_system" mapstructure:"user_system"`
UserName string `gorm:"column:user_name" mapstructure:"user_name"`
UserUpdated string `gorm:"column:user_updated" mapstructure:"user_updated"`
UserCreated string `gorm:"column:user_created" mapstructure:"user_created"`
}
type TokensWithInfo ¶ added in v1.0.3
type UserListsApplications ¶
type UserListsApplications struct {
auth.UsersApplicationList
Users *Users `gorm:"ForeignKey:UserID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
Applications *Applications `gorm:"ForeignKey:ApplicationID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
}
func (*UserListsApplications) TableName ¶
func (*UserListsApplications) TableName() string
type UserListsGroups ¶
type UserListsGroups struct {
auth.UsersListGroups
Users *Users `gorm:"ForeignKey:UserID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
UsersGroups *UsersGroups `gorm:"ForeignKey:GroupID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
}
func (*UserListsGroups) TableName ¶
func (*UserListsGroups) TableName() string
type UsersGroupApplications ¶
type UsersGroupApplications struct {
auth.UsersGroupApplicationsList
UsersGroups *UsersGroups `gorm:"ForeignKey:GroupID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
Applications *Applications `gorm:"ForeignKey:ApplicationID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
}
func (*UsersGroupApplications) TableName ¶
func (*UsersGroupApplications) TableName() string
type UsersGroupScopes ¶
type UsersGroupScopes struct {
auth.UsersGroupScopesList
UsersGroups *UsersGroups `gorm:"ForeignKey:GroupID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
Scopes *Scopes `gorm:"ForeignKey:ScopeID;references:ID;constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT;" mapstructure:"-"`
}
func (*UsersGroupScopes) TableName ¶
func (*UsersGroupScopes) TableName() string
type UsersGroups ¶
type UsersGroups struct {
auth.UsersGroupList
}
func (*UsersGroups) TableName ¶
func (*UsersGroups) TableName() string
Click to show internal directories.
Click to hide internal directories.