Documentation ¶
Index ¶
- type Log
- func (l *Log) Count(db *gorm.DB) (total int64)
- func (l *Log) CountByArgs(db *gorm.DB, query interface{}, args ...interface{}) (total int64)
- func (l *Log) Create(db *gorm.DB) (id int, err error)
- func (l *Log) Delete(db *gorm.DB) (err error)
- func (l *Log) First(db *gorm.DB) (log *Log, err error)
- func (l *Log) Last(db *gorm.DB) (log *Log, err error)
- func (l *Log) List(db *gorm.DB) (logs []Log, err error)
- func (l *Log) ListByArgs(db *gorm.DB, query interface{}, args ...interface{}) (logs []Log, err error)
- func (l *Log) TableName() string
- func (l *Log) Updates(db *gorm.DB, m map[string]any) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { ID int `gorm:"primaryKey;column:id" json:"-"` Level string `gorm:"level" json:"level"` Time sql.NullTime `gorm:"time" json:"time"` Caller string `gorm:"caller" json:"caller"` Message string `gorm:"message" json:"message"` TraceID string `gorm:"trace_id" json:"trace_id"` ContainerID string `gorm:"container_id" json:"container_id"` ContainerName string `gorm:"container_name" json:"container_name"` Extra datatypes.JSON `gorm:"extra" json:"extra"` }
func (*Log) CountByArgs ¶
func (*Log) ListByArgs ¶
Click to show internal directories.
Click to hide internal directories.