Help us shape the future of Go! Take the 2026 Go Developer Survey

apilogger

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APILogger

type APILogger interface {
	LogStart(ormService *orm.Engine, logType string, request interface{})
	LogError(ormService *orm.Engine, message string, response interface{})
	LogSuccess(ormService *orm.Engine, response interface{})
}

func NewAPILog

func NewAPILog(entity LogEntity) APILogger

type DBLog

type DBLog struct {
	// contains filtered or unexported fields
}

func (*DBLog) LogError

func (l *DBLog) LogError(ormService *orm.Engine, message string, response interface{})

func (*DBLog) LogStart

func (l *DBLog) LogStart(ormService *orm.Engine, logType string, request interface{})

func (*DBLog) LogSuccess

func (l *DBLog) LogSuccess(ormService *orm.Engine, response interface{})

type LogEntity

type LogEntity interface {
	orm.Entity
	SetID(value uint64)
	SetType(value string)
	SetStatus(value string)
	SetRequest(value interface{})
	SetResponse(value interface{})
	SetMessage(value string)
	SetCreatedAt(value time.Time)
}

Jump to

Keyboard shortcuts

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