Documentation
¶
Index ¶
- func Alive() error
- func GetDB() *gorm.DB
- func StartORM()
- type Backup
- type Device
- type Logger
- func (l Logger) Error(ctx context.Context, msg string, opts ...interface{})
- func (l Logger) Info(ctx context.Context, msg string, opts ...interface{})
- func (l Logger) LogMode(logger.LogLevel) logger.Interface
- func (l Logger) Trace(ctx context.Context, begin time.Time, f func() (string, int64), err error)
- func (l Logger) Warn(ctx context.Context, msg string, opts ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
type Device struct { gorm.Model ID uint `gorm:"primarykey"` UserID string `gorm:"index:device_user_id"` Token string `gorm:"uniqueIndex:token"` UserAgentOS string `json:"user_agent_os"` UserAgentOSVersion string `json:"user_agent_os_version"` UserAgentDevice string `json:"user_agent_device"` UserAgentDeviceVersion string `json:"user_agent_device_version"` LastIP string `json:"last_ip"` LastCountry string `json:"last_country"` }
Click to show internal directories.
Click to hide internal directories.