Documentation ¶
Index ¶
- Constants
- Variables
- type FeatureFlagEntity
- type FileEntity
- type FileObject
- type FileStatus
- type GeocodingEntity
- type MailTrackerEntity
- type OSSBucketCounterEntity
- type OTPTrackerEntity
- type OTPTrackerGatewaySendStatus
- type OTPTrackerGatewayVerifyStatus
- type PermissionEntity
- type PrivilegeEntity
- type RequestLoggerEntity
- type ResourceEntity
- type ReverseGeocodingEntity
- type RoleEntity
- type SeederEntity
- type SettingsEntity
- type SmsTrackerEntity
- func (s *SmsTrackerEntity) SetFromPrimaryGateway(primary string)
- func (s *SmsTrackerEntity) SetFromSecondaryGateway(secondary string)
- func (s *SmsTrackerEntity) SetPrimaryGatewayError(primaryError string)
- func (s *SmsTrackerEntity) SetSecondaryGatewayError(secondaryError string)
- func (s *SmsTrackerEntity) SetSentAt(sendAt time.Time)
- func (s *SmsTrackerEntity) SetStatus(status string)
- func (s *SmsTrackerEntity) SetText(text string)
- func (s *SmsTrackerEntity) SetTo(to string)
- func (s *SmsTrackerEntity) SetType(typ string)
Constants ¶
View Source
const ( LanguageEnglish = "en" LanguageBulgarian = "bg" )
View Source
const ( MailTrackerStatusNew = "new" MailTrackerStatusQueued = "queued" MailTrackerStatusSuccess = "success" MailTrackerStatusError = "error" )
View Source
const ( OTPTrackerTypeSMS = "sms" OTPTrackerTypeCallout = "callout" OTPTrackerTypeEmail = "email" )
View Source
const ( OTPTrackerGatewaySendStatusNew = "new" OTPTrackerGatewaySendStatusGatewayError = "gateway_error" OTPTrackerGatewaySendStatusSent = "sent" )
View Source
const ( OTPTrackerGatewayVerifyStatusNew = "new" OTPTrackerGatewayVerifyStatusGatewayError = "gateway_error" OTPTrackerGatewayVerifyStatusInvalidCode = "invalid_code" OTPTrackerGatewayVerifyStatusSuccess = "success" OTPTrackerGatewayVerifyStatusExpired = "expired" )
View Source
const ( SettingsValueTypeText = "text" SettingsValueTypeNumber = "number" SettingsValueTypeEmail = "email" SettingsValueTypeTel = "tel" SettingsValueTypeURI = "uri" SettingsValueTypePassword = "password" SettingsValueTypeDateTime = "datetime" SettingsValueTypeJSON = "json" )
View Source
const ( SMSTrackerTypeSMS = "sms" SMSTrackerTypeCallout = "callout" )
Variables ¶
View Source
var FileStatusAll = fileStatus{ FileStatusNew: FileStatusNew.String(), FileStatusProcessed: FileStatusProcessed.String(), }
View Source
var LanguageValueAll = languageValue{ LanguageEnglish: LanguageEnglish, LanguageBulgarian: LanguageBulgarian, }
View Source
var MailTrackerStatusAll = mailTrackerStatus{ MailTrackerStatusSuccess: MailTrackerStatusSuccess, MailTrackerStatusError: MailTrackerStatusError, MailTrackerStatusQueued: MailTrackerStatusQueued, }
View Source
var OTPTrackerGatewaySendStatusAll = OTPTrackerGatewaySendStatus{ OTPTrackerGatewaySendStatusNew: OTPTrackerGatewaySendStatusNew, OTPTrackerGatewaySendStatusGatewayError: OTPTrackerGatewaySendStatusGatewayError, OTPTrackerGatewaySendStatusSent: OTPTrackerGatewaySendStatusSent, }
View Source
var OTPTrackerGatewayVerifyStatusAll = OTPTrackerGatewayVerifyStatus{ OTPTrackerGatewayVerifyStatusNewError: OTPTrackerGatewayVerifyStatusNew, OTPTrackerGatewayVerifyStatusGatewayError: OTPTrackerGatewayVerifyStatusGatewayError, OTPTrackerGatewayVerifyStatusInvalidCode: OTPTrackerGatewayVerifyStatusInvalidCode, OTPTrackerGatewayVerifyStatusSuccess: OTPTrackerGatewayVerifyStatusSuccess, OTPTrackerGatewayVerifyStatusExpired: OTPTrackerGatewayVerifyStatusExpired, }
View Source
var OTPTrackerTypeAll = otpTrackerTypeAll{ OTPTrackerTypeSMS: OTPTrackerTypeSMS, OTPTrackerTypeCallout: OTPTrackerTypeCallout, OTPTrackerTypeEmail: OTPTrackerTypeEmail, }
View Source
var SMSTrackerTypeAll = smsTrackerTypeAll{ SMSTrackerTypeSMS: SMSTrackerTypeSMS, SMSTrackerTypeCallout: SMSTrackerTypeCallout, }
View Source
var SettingsValueTypeAll = settingsValueType{ SettingsValueTypeText: SettingsValueTypeText, SettingsValueTypeNumber: SettingsValueTypeNumber, SettingsValueTypeEmail: SettingsValueTypeEmail, SettingsValueTypeTel: SettingsValueTypeTel, SettingsValueTypeURI: SettingsValueTypeURI, SettingsValueTypePassword: SettingsValueTypePassword, SettingsValueTypeDateTime: SettingsValueTypeDateTime, SettingsValueTypeJSON: SettingsValueTypeJSON, }
Functions ¶
This section is empty.
Types ¶
type FeatureFlagEntity ¶ added in v0.9.48
type FeatureFlagEntity struct { beeorm.ORM `orm:"table=feature_flags;redisCache;redisSearch=search_pool"` ID uint64 Name string `orm:"length=100;required;unique=Name;searchable"` Registered bool `orm:"searchable"` Enabled bool `orm:"searchable"` UpdatedAt *time.Time `orm:"time=true"` CreatedAt time.Time `orm:"time=true"` }
type FileEntity ¶ added in v1.2.35
type FileObject ¶ added in v1.2.35
type FileStatus ¶ added in v1.2.35
type FileStatus string
const ( FileStatusNew FileStatus = "new" FileStatusProcessed FileStatus = "processed" )
func (FileStatus) String ¶ added in v1.2.35
func (f FileStatus) String() string
type GeocodingEntity ¶ added in v1.2.67
type GeocodingEntity struct { beeorm.ORM `orm:"table=geocoding;redisCache"` ID uint64 Lat float64 Lng float64 Address string `orm:"required;unique=Address_Language:1"` Language string `orm:"required;enum=entity.LanguageValueAll;unique=Address_Language:2"` Provider string RawResponse interface{} ExpiresAt time.Time `orm:"time=true;index=ExpiresAt"` CreatedAt time.Time `orm:"time=true"` CachedQueryAddressLanguage *beeorm.CachedQuery `queryOne:":Address = ? AND :Language = ?"` }
type MailTrackerEntity ¶ added in v0.5.0
type MailTrackerEntity struct { beeorm.ORM `orm:"table=email_tracker"` ID uint64 Status string `orm:"enum=entity.MailTrackerStatusAll"` From string `orm:"varchar=255"` To string `orm:"varchar=255"` Subject string TemplateFile string TemplateData string `orm:"length=max"` SenderError string SentAt *time.Time `orm:"time"` ReadAt *time.Time `orm:"time"` }
type OSSBucketCounterEntity ¶
type OTPTrackerEntity ¶ added in v0.8.85
type OTPTrackerEntity struct { beeorm.ORM `orm:"table=otp_tracker"` ID uint64 Type string `orm:"enum=entity.OTPTrackerTypeAll;required"` To string `orm:"length=15"` Code string GatewayName string GatewayPriority uint8 GatewaySendStatus string `orm:"enum=entity.OTPTrackerGatewaySendStatusAll;required"` GatewaySendRequest string `orm:"length=max"` GatewaySendResponse string `orm:"length=max"` GatewayVerifyStatus string `orm:"enum=entity.OTPTrackerGatewayVerifyStatusAll;required"` GatewayVerifyRequest string `orm:"length=max"` GatewayVerifyResponse string `orm:"length=max"` RetryCount int MaxRetriesReached bool SentAt time.Time `orm:"time"` }
type OTPTrackerGatewaySendStatus ¶ added in v0.8.85
type OTPTrackerGatewayVerifyStatus ¶ added in v0.8.85
type PermissionEntity ¶ added in v1.2.44
type PermissionEntity struct { beeorm.ORM `orm:"table=permissions;redisCache;redisSearch=search_pool"` ID uint64 `orm:"searchable;sortable"` ResourceID *ResourceEntity `orm:"required;searchable;unique=ResourceID_Name_FakeDelete:1"` Name string `orm:"required;searchable;unique=ResourceID_Name_FakeDelete:2"` CreatedAt time.Time `orm:"time=true"` FakeDelete bool `orm:"unique=ResourceID_Name_FakeDelete:3"` }
type PrivilegeEntity ¶ added in v1.2.44
type PrivilegeEntity struct { beeorm.ORM `orm:"table=privileges;redisCache;redisSearch=search_pool"` ID uint64 RoleID *RoleEntity `orm:"required;searchable;unique=RoleID_ResourceID_FakeDelete:1"` ResourceID *ResourceEntity `orm:"required;searchable;unique=RoleID_ResourceID_FakeDelete:2"` PermissionIDs []*PermissionEntity `orm:"required;searchable"` CreatedAt time.Time `orm:"time=true"` FakeDelete bool `orm:"unique=RoleID_ResourceID_FakeDelete:3"` }
type RequestLoggerEntity ¶ added in v1.1.59
type RequestLoggerEntity struct { beeorm.ORM `orm:"table=request_logger;redisCache;redisSearch=search_pool"` ID uint64 `orm:"sortable"` URL string `orm:"searchable"` UserID uint64 `orm:"searchable"` AppName string `orm:"required;searchable"` Request []byte `orm:"mediumblob"` RequestText string `orm:"length=max"` Response []byte `orm:"mediumblob"` ResponseText string `orm:"length=max"` Log []byte `orm:"mediumblob"` Status int RequestDuration int64 `orm:"sortable"` CreatedAt time.Time `orm:"time=true;searchable"` }
type ResourceEntity ¶ added in v1.2.44
type ReverseGeocodingEntity ¶ added in v1.2.67
type ReverseGeocodingEntity struct { beeorm.ORM `orm:"table=reverse_geocoding;redisCache"` ID uint64 Lat float64 `orm:"required;unique=Lat_Lng_Language:1"` Lng float64 `orm:"required;unique=Lat_Lng_Language:2"` Address string Language string `orm:"required;enum=entity.LanguageValueAll;unique=Lat_Lng_Language:3"` Provider string RawResponse interface{} ExpiresAt time.Time `orm:"time=true;index=ExpiresAt"` CreatedAt time.Time `orm:"time=true"` CachedQueryLatLngLanguage *beeorm.CachedQuery `queryOne:":Lat = ? AND :Lng = ? AND :Language = ?"` }
type RoleEntity ¶ added in v1.2.44
type RoleEntity struct { beeorm.ORM `orm:"table=roles;redisCache;redisSearch=search_pool"` ID uint64 `orm:"sortable"` Name string `orm:"required;searchable;unique=Name_FakeDelete:1"` IsPredefined bool `orm:"searchable"` CreatedAt time.Time `orm:"time=true"` FakeDelete bool `orm:"unique=Name_FakeDelete:2"` }
type SeederEntity ¶ added in v0.9.88
type SettingsEntity ¶ added in v0.8.55
type SettingsEntity struct { beeorm.ORM `orm:"table=settings;redisCache;redisSearch=search_pool;"` ID uint64 `orm:"sortable"` Key string `orm:"required;unique=Settings_Key;sortable;searchable;"` Value string `orm:"required;length=max;"` ValueType string `orm:"enum=entity.SettingsValueTypeAll"` Editable bool Deletable bool Hidden bool `orm:"searchable"` }
type SmsTrackerEntity ¶ added in v0.8.73
type SmsTrackerEntity struct { beeorm.ORM `orm:"table=sms_tracker"` ID uint64 Status string To string `orm:"length=15"` Text string `orm:"length=max"` FromPrimaryGateway string FromSecondaryGateway string PrimaryGatewayError string `orm:"length=max"` SecondaryGatewayError string `orm:"length=max"` Type string `orm:"enum=entity.SMSTrackerTypeAll;required"` SentAt time.Time `orm:"time"` }
func (*SmsTrackerEntity) SetFromPrimaryGateway ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetFromPrimaryGateway(primary string)
func (*SmsTrackerEntity) SetFromSecondaryGateway ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetFromSecondaryGateway(secondary string)
func (*SmsTrackerEntity) SetPrimaryGatewayError ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetPrimaryGatewayError(primaryError string)
func (*SmsTrackerEntity) SetSecondaryGatewayError ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetSecondaryGatewayError(secondaryError string)
func (*SmsTrackerEntity) SetSentAt ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetSentAt(sendAt time.Time)
func (*SmsTrackerEntity) SetStatus ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetStatus(status string)
func (*SmsTrackerEntity) SetText ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetText(text string)
func (*SmsTrackerEntity) SetTo ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetTo(to string)
func (*SmsTrackerEntity) SetType ¶ added in v0.8.73
func (s *SmsTrackerEntity) SetType(typ string)
Source Files ¶
- feature_flag_entity.go
- file_entity.go
- geocoding_entity.go
- language_enum.go
- mail_tracker_entity.go
- oss_bucket_entity.go
- otp_sms_tracker_entity.go
- permission_entity.go
- privilege_entity.go
- request_logger_entity.go
- resource_entity.go
- reverse_geocoding_entity.go
- role_entity.go
- seeder_entity.go
- settings_entity.go
- sms_tracker_entity.go
Click to show internal directories.
Click to hide internal directories.