broker

package
v0.0.0-...-2c311f4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_TOPIC = "audit_log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(brokers, topic string) *Client

func NewDefaultClient

func NewDefaultClient(brokers string) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) SendAuditLog

func (c *Client) SendAuditLog(ctx context.Context, al audit.AuditLog) error

发送审计日志

Jump to

Keyboard shortcuts

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