loggable

package
v0.0.0-...-c91a07c Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeLog

type ChangeLog struct {
	ID         uint      `gorm:"primaryKey"`
	CreatedAt  time.Time `gorm:"DEFAULT:current_timestamp"`
	Action     string    `gorm:"type:VARCHAR(10)"`
	ObjectID   string    `gorm:"index;type:VARCHAR(30)"`
	ObjectType string    `gorm:"index;type:VARCHAR(50)"`
	RawObject  string    `gorm:"type:JSON"`
}

type Loggable

type Loggable struct {
	*gorm.DB
}

func New

func New() *Loggable

func (*Loggable) Initialize

func (l *Loggable) Initialize(db *gorm.DB) error

func (*Loggable) Name

func (l *Loggable) Name() string

type LoggableModel

type LoggableModel struct{}

func (LoggableModel) Meta

func (LoggableModel) Meta() interface{}

type LoggableModelInterface

type LoggableModelInterface interface {
	Meta() interface{}
}

Jump to

Keyboard shortcuts

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