apilogger

package
v0.8.27 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 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 *beeorm.Engine, logType string, request interface{})
	LogError(ormService *beeorm.Engine, message string, response interface{})
	LogSuccess(ormService *beeorm.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 *beeorm.Engine, message string, response interface{})

func (*DBLog) LogStart

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

func (*DBLog) LogSuccess

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

type LogEntity

type LogEntity interface {
	beeorm.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