model

package
v1.56.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeaturesKeyAggregateID = "aggregate_id"
	FeaturesKeyDefault     = "default_features"
)

Variables

This section is empty.

Functions

func FeaturesToModel

func FeaturesToModel(features *FeaturesView) *features_model.FeaturesView

Types

type FeaturesSearchKey

type FeaturesSearchKey model.FeaturesSearchKey

func (FeaturesSearchKey) ToColumnName

func (key FeaturesSearchKey) ToColumnName() string

type FeaturesSearchQuery

type FeaturesSearchQuery model.FeaturesSearchQuery

func (FeaturesSearchQuery) GetKey

func (FeaturesSearchQuery) GetMethod

func (req FeaturesSearchQuery) GetMethod() domain.SearchMethod

func (FeaturesSearchQuery) GetValue

func (req FeaturesSearchQuery) GetValue() interface{}

type FeaturesSearchRequest

type FeaturesSearchRequest model.FeaturesSearchRequest

func (FeaturesSearchRequest) GetAsc

func (req FeaturesSearchRequest) GetAsc() bool

func (FeaturesSearchRequest) GetLimit

func (req FeaturesSearchRequest) GetLimit() uint64

func (FeaturesSearchRequest) GetOffset

func (req FeaturesSearchRequest) GetOffset() uint64

func (FeaturesSearchRequest) GetQueries

func (req FeaturesSearchRequest) GetQueries() []repository.SearchQuery

func (FeaturesSearchRequest) GetSortingColumn

func (req FeaturesSearchRequest) GetSortingColumn() repository.ColumnKey

type FeaturesView

type FeaturesView struct {
	AggregateID  string    `json:"-" gorm:"column:aggregate_id;primary_key"`
	CreationDate time.Time `json:"-" gorm:"column:creation_date"`
	ChangeDate   time.Time `json:"-" gorm:"column:change_date"`
	Sequence     uint64    `json:"-" gorm:"column:sequence"`
	Default      bool      `json:"-" gorm:"column:default_features"`

	TierName                 string        `json:"tierName" gorm:"column:tier_name"`
	TierDescription          string        `json:"tierDescription" gorm:"column:tier_description"`
	State                    int32         `json:"state" gorm:"column:state"`
	StateDescription         string        `json:"stateDescription" gorm:"column:state_description"`
	AuditLogRetention        time.Duration `json:"auditLogRetention" gorm:"column:audit_log_retention"`
	LoginPolicyFactors       bool          `json:"loginPolicyFactors" gorm:"column:login_policy_factors"`
	LoginPolicyIDP           bool          `json:"loginPolicyIDP" gorm:"column:login_policy_idp"`
	LoginPolicyPasswordless  bool          `json:"loginPolicyPasswordless" gorm:"column:login_policy_passwordless"`
	LoginPolicyRegistration  bool          `json:"loginPolicyRegistration" gorm:"column:login_policy_registration"`
	LoginPolicyUsernameLogin bool          `json:"loginPolicyUsernameLogin" gorm:"column:login_policy_username_login"`
	LoginPolicyPasswordReset bool          `json:"loginPolicyPasswordReset" gorm:"column:login_policy_password_reset"`
	PasswordComplexityPolicy bool          `json:"passwordComplexityPolicy" gorm:"column:password_complexity_policy"`
	LabelPolicy              *bool         `json:"labelPolicy" gorm:"-"`
	LabelPolicyPrivateLabel  bool          `json:"labelPolicyPrivateLabel" gorm:"column:label_policy_private_label"`
	LabelPolicyWatermark     bool          `json:"labelPolicyWatermark" gorm:"column:label_policy_watermark"`
	CustomDomain             bool          `json:"customDomain" gorm:"column:custom_domain"`
	PrivacyPolicy            bool          `json:"privacyPolicy" gorm:"column:privacy_policy"`
	MetadataUser             bool          `json:"metadataUser" gorm:"column:metadata_user"`
	CustomTextMessage        bool          `json:"customTextMessage" gorm:"column:custom_text_message"`
	CustomTextLogin          bool          `json:"customTextLogin" gorm:"column:custom_text_login"`
	LockoutPolicy            bool          `json:"lockoutPolicy" gorm:"column:lockout_policy"`
	Actions                  bool          `json:"actions" gorm:"column:actions"`
}

func (*FeaturesView) AppendEvent

func (f *FeaturesView) AppendEvent(event *models.Event) (err error)

func (*FeaturesView) SetData

func (f *FeaturesView) SetData(event *models.Event) error

func (*FeaturesView) SetRootData

func (f *FeaturesView) SetRootData(event *models.Event)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL