Documentation ¶
Index ¶
- type Account
- func (a *Account) GetTable() string
- func (a *Account) IsAccountConfirmed() error
- func (a *Account) IsNotApplicationAdminAccount() bool
- func (a *Account) SetAccountData() *Account
- func (a *Account) SetAccountID()
- func (a *Account) SetCreatedAt()
- func (a *Account) SetIsConfirmed() *Account
- func (a *Account) SetPasswordHash()
- func (a *Account) SetUpdatedAt() *Account
- func (a *Account) ToBytes() []byte
- func (a *Account) ToMap() map[string]interface{}
- func (a *Account) ToUpdateMap() map[string]interface{}
- func (a *Account) ToUpdatePasswordMap() map[string]interface{}
- func (a *Account) UpdationValidate() error
- func (a *Account) Validate() error
- type ConfigAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v1.3.0
type Account struct { AccountID uuid.UUID `json:"accountID" gorm:"primary_key"` Email string `json:"email"` Password string `json:"password"` Username string `json:"username"` IsConfirmed bool `json:"isConfirmed"` IsApplicationAdmin bool `json:"isApplicationAdmin"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Companies []accountEntities.Company `gorm:"many2many:account_company;association_jointable_foreignkey:company_id;jointable_foreignkey:account_id"` // nolint Repositories []accountEntities.Repository `gorm:"many2many:account_repository;association_jointable_foreignkey:repository_id;jointable_foreignkey:account_id"` // nolint }
nolint
func (*Account) IsAccountConfirmed ¶ added in v1.3.0
func (*Account) IsNotApplicationAdminAccount ¶ added in v1.3.0
func (*Account) SetAccountData ¶ added in v1.3.0
func (*Account) SetAccountID ¶ added in v1.3.0
func (a *Account) SetAccountID()
func (*Account) SetCreatedAt ¶ added in v1.3.0
func (a *Account) SetCreatedAt()
func (*Account) SetIsConfirmed ¶ added in v1.3.0
func (*Account) SetPasswordHash ¶ added in v1.3.0
func (a *Account) SetPasswordHash()
func (*Account) SetUpdatedAt ¶ added in v1.3.0
func (*Account) ToUpdateMap ¶ added in v1.4.0
func (*Account) ToUpdatePasswordMap ¶ added in v1.4.0
func (*Account) UpdationValidate ¶ added in v1.3.0
type ConfigAuth ¶
type ConfigAuth struct { ApplicationAdminEnable bool `json:"applicationAdminEnable"` DisabledBroker bool `json:"disabledBroker"` AuthType auth.AuthorizationType `json:"authType"` }
func ParseInterfaceToConfigAuth ¶
func ParseInterfaceToConfigAuth(content interface{}) (configAuth ConfigAuth, err error)
Click to show internal directories.
Click to hide internal directories.