client

package
v0.0.0-...-4c9d98c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	RequestID       string
	UserID          string
	UserName        string
	OperationTime   int64
	OperationUA     string
	OperationType   string
	OperationModule string
	IP              string
	Detail          string
}

Audit 审计日志

type Client

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

Client 审计客户端

func New

func New(producer sarama.SyncProducer) *Client

New 创建一个审计客户端

func (*Client) Close

func (c *Client) Close() error

Close 关闭连接

func (*Client) Send

func (c *Client) Send(ctx *gin.Context, _t models.OperationType, m models.Module, param interface{}) error

Send 添加审计日志

Jump to

Keyboard shortcuts

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