log

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatabaseFile          = "log_record.db"
	DatabaseAuthKeyBucket = "auth_key"
	DatabseLogBucket      = "logs"
)
View Source
const (
	ReviewStatesUnfinish = iota
	ReviewStatesFinished
)

Variables

This section is empty.

Functions

func LogFinishReview added in v1.2.1

func LogFinishReview(c *gin.Context)

func LogRecord

func LogRecord(c *gin.Context)

func LogReview

func LogReview(c *gin.Context)

func Root

func Root(c *gin.Context)

func RunServer

func RunServer()

func SetAuthKey

func SetAuthKey(c *gin.Context)

Types

type FullLogRecord added in v1.2.1

type FullLogRecord struct {
	LogKey
	LogPayload
}

type LogKey added in v1.2.1

type LogKey struct {
	LogUniqueID    string `json:"log_unique_id"`
	ReviewStstaes  uint8  `json:"review_states"`
	Source         string `json:"source"`
	UserName       string `json:"user_name"`
	BotName        string `json:"bot_name"`
	CreateUnixTime int64  `json:"create_unix_time"`
	SystemName     string `json:"system_name"`
}

func (*LogKey) Marshal added in v1.2.1

func (l *LogKey) Marshal(io protocol.IO)

type LogPayload added in v1.2.1

type LogPayload struct {
	UserRequest string `json:"user_request"`
	ErrorInfo   string `json:"error_info"`
}

func (*LogPayload) Marshal added in v1.2.1

func (l *LogPayload) Marshal(io protocol.IO)

Jump to

Keyboard shortcuts

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