Documentation ¶
Index ¶
- Constants
- Variables
- func Init(registry *beeorm.Registry)
- type APILogEntity
- func (e *APILogEntity) SetCreatedAt(value time.Time)
- func (e *APILogEntity) SetID(value uint64)
- func (e *APILogEntity) SetMessage(value string)
- func (e *APILogEntity) SetRequest(value interface{})
- func (e *APILogEntity) SetResponse(value interface{})
- func (e *APILogEntity) SetStatus(value string)
- func (e *APILogEntity) SetType(value string)
- type AdminUserEntity
- 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 ( APILogStatusNew = "new" APILogStatusCompleted = "completed" APILogStatusFailed = "failed" APILogTypeApple = "Apple" )
View Source
const ( SMSTrackerTypeSMS = "sms" SMSTrackerTypeCallout = "callout" )
Variables ¶
View Source
var APILogStatusAll = apiLogStatus{ New: APILogStatusNew, Completed: APILogStatusCompleted, Failed: APILogStatusFailed, }
View Source
var APILogTypeAll = apiLogType{ Apple: APILogTypeApple, }
View Source
var SMSTrackerTypeAll = smsTrackerTypeAll{ SMSTrackerTypeSMS: SMSTrackerTypeSMS, SMSTrackerTypeCallout: SMSTrackerTypeCallout, }
Functions ¶
Types ¶
type APILogEntity ¶ added in v0.1.1
type APILogEntity struct { beeorm.ORM `orm:"table=api_log;redisCache"` ID uint64 Type string `orm:"enum=entity.APILogTypeAll;required"` Status string `orm:"enum=entity.APILogStatusAll;required"` Request interface{} Response interface{} Message string CreatedAt time.Time `orm:"time=true"` }
func (*APILogEntity) SetCreatedAt ¶ added in v0.1.1
func (e *APILogEntity) SetCreatedAt(value time.Time)
func (*APILogEntity) SetID ¶ added in v0.1.1
func (e *APILogEntity) SetID(value uint64)
func (*APILogEntity) SetMessage ¶ added in v0.1.1
func (e *APILogEntity) SetMessage(value string)
func (*APILogEntity) SetRequest ¶ added in v0.1.1
func (e *APILogEntity) SetRequest(value interface{})
func (*APILogEntity) SetResponse ¶ added in v0.1.1
func (e *APILogEntity) SetResponse(value interface{})
func (*APILogEntity) SetStatus ¶ added in v0.1.1
func (e *APILogEntity) SetStatus(value string)
func (*APILogEntity) SetType ¶ added in v0.1.1
func (e *APILogEntity) SetType(value string)
type AdminUserEntity ¶
type AdminUserEntity struct { beeorm.ORM `orm:"table=admin_users;redisCache;redisSearch=search"` ID uint64 Email string `orm:"unique=Email;searchable"` Password string }
func (*AdminUserEntity) GetPassword ¶
func (e *AdminUserEntity) GetPassword() string
func (*AdminUserEntity) GetUniqueFieldName ¶ added in v0.3.1
func (e *AdminUserEntity) GetUniqueFieldName() string
func (*AdminUserEntity) GetUsername ¶
func (e *AdminUserEntity) GetUsername() string
type SmsTrackerEntity ¶ added in v0.3.3
type SmsTrackerEntity struct { beeorm.ORM `orm:"table=sms_tracker"` ID uint64 Status string To string `orm:"varchar=15"` Text string FromPrimaryGateway string FromSecondaryGateway string PrimaryGatewayError string SecondaryGatewayError string Type string `orm:"enum=entity.SMSTrackerTypeAll;required"` SentAt time.Time `orm:"time"` }
func (*SmsTrackerEntity) SetFromPrimaryGateway ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetFromPrimaryGateway(primary string)
func (*SmsTrackerEntity) SetFromSecondaryGateway ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetFromSecondaryGateway(secondary string)
func (*SmsTrackerEntity) SetPrimaryGatewayError ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetPrimaryGatewayError(primaryError string)
func (*SmsTrackerEntity) SetSecondaryGatewayError ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetSecondaryGatewayError(secondaryError string)
func (*SmsTrackerEntity) SetSentAt ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetSentAt(sendAt time.Time)
func (*SmsTrackerEntity) SetStatus ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetStatus(status string)
func (*SmsTrackerEntity) SetText ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetText(text string)
func (*SmsTrackerEntity) SetTo ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetTo(to string)
func (*SmsTrackerEntity) SetType ¶ added in v0.3.3
func (s *SmsTrackerEntity) SetType(typ string)
Click to show internal directories.
Click to hide internal directories.