entity

package
v1.1.43 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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

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 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 OSSBucketCounterEntity struct {
	beeorm.ORM `orm:"table=oss_buckets_counters"`
	ID         uint64
	Counter    uint64 `orm:"required"`
}

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 OTPTrackerGatewaySendStatus struct {
	OTPTrackerGatewaySendStatusNew          string
	OTPTrackerGatewaySendStatusGatewayError string
	OTPTrackerGatewaySendStatusSent         string
}

type OTPTrackerGatewayVerifyStatus added in v0.8.85

type OTPTrackerGatewayVerifyStatus struct {
	OTPTrackerGatewayVerifyStatusNewError     string
	OTPTrackerGatewayVerifyStatusGatewayError string
	OTPTrackerGatewayVerifyStatusInvalidCode  string
	OTPTrackerGatewayVerifyStatusSuccess      string
	OTPTrackerGatewayVerifyStatusExpired      string
}

type SeederEntity added in v0.9.88

type SeederEntity struct {
	beeorm.ORM `orm:"table=seeder;redisCache;redisSearch=search_pool;"`
	ID         uint64
	Name       string    `orm:"required;unique=Seeder_Name;searchable;"`
	CreatedAt  time.Time `orm:"time=true"`
}

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
	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)

Jump to

Keyboard shortcuts

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