db

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableDBMonitor added in v0.1.1

func EnableDBMonitor()

func SubEventToDB

func SubEventToDB(tr *TracingRequestServiceDBImpl, bus EventBus.Bus)

Types

type FullRequestDetails

type FullRequestDetails struct {
	gorm.Model
	Optionname string `gorm:"size:64"`
	Operator   string `gorm:"size:64"`
	Uri        string `gorm:"size:256"`
	Method     string `gorm:"size:16"`
	Body       []byte
	Durtion    time.Duration
	Status     int
	TargetID   uint
	Resp       []byte
	ClientIP   string `gorm:"size:64"`
	UserAgent  string `gorm:"size:256"`
	Device     string `gorm:"size:64"`
}

type TracingRequestServiceDBImpl

type TracingRequestServiceDBImpl struct {
	DB     *gorm.DB
	Logger *zap.Logger
}

func NewTracingRequestService

func NewTracingRequestService(db *gorm.DB, logger *zap.Logger) (*TracingRequestServiceDBImpl, error)

Jump to

Keyboard shortcuts

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