agent

package
v0.21.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	sync.Mutex

	Partition   time.Duration
	MaxFileSize int64

	KeyTimestamp string

	Stderr io.Writer
	// contains filtered or unexported fields
}

func New

func New(db string) (*Agent, error)

func (*Agent) Close added in v0.14.1

func (a *Agent) Close() (err error)

func (*Agent) Query added in v0.21.2

func (a *Agent) Query(ctx context.Context, w io.Writer, q string) (err error)

func (*Agent) Write added in v0.13.0

func (a *Agent) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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