requestlogger

package
v1.3.163 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "request_logger_id"

Variables

This section is empty.

Functions

This section is empty.

Types

type DBLogger

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

func (*DBLogger) LogRequest

func (g *DBLogger) LogRequest(ormService *beeorm.Engine, appName, url string, request *http.Request, contentType string) *entity.RequestLoggerEntity

func (*DBLogger) LogResponse

func (g *DBLogger) LogResponse(ormService *beeorm.Engine, requestLoggerEntity *entity.RequestLoggerEntity, responseBody []byte, status int)

type IRequestLogger

type IRequestLogger interface {
	LogRequest(ormService *beeorm.Engine, appName, url string, request *http.Request, contentType string) *entity.RequestLoggerEntity
	LogResponse(ormService *beeorm.Engine, requestLoggerEntity *entity.RequestLoggerEntity, responseBody []byte, status int)
}

func NewDBLogger

func NewDBLogger(clockService clock.IClock) IRequestLogger

Jump to

Keyboard shortcuts

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