errorbox

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorBox

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

ErrorBox 错误日志操作封装

func New

func New(options ...Option) *ErrorBox

New 新建 ErrorBox 实例

func (*ErrorBox) BatchCreateErrorLogs

func (eb *ErrorBox) BatchCreateErrorLogs(reqs []apistructs.Audit) error

BatchCreateErrorLogs 批量创建错误日志

func (*ErrorBox) CreateOrUpdate

func (eb *ErrorBox) CreateOrUpdate(req apistructs.ErrorLogCreateRequest) error

CreateOrUpdate 记录或更新错误日志

type Option

type Option func(*ErrorBox)

Option 定义 Member 对象配置选项

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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