apilogger

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAPILogger added in v0.8.78

type IAPILogger interface {
	LogStart(ormService *datalayer.ORM, logType string, request interface{})
	LogError(ormService *datalayer.ORM, message string, response interface{})
	LogSuccess(ormService *datalayer.ORM, response interface{})
}

func NewMysqlAPILogger added in v0.8.78

func NewMysqlAPILogger(entity ILogEntity) IAPILogger

type ILogEntity added in v0.8.78

type ILogEntity 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