db

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func NewFileDB

func NewFileDB(storagePath string, key []byte) *File

func (*File) Append

func (db *File) Append(req *loggerv1alpha1.WriteRequest) (n int, err error)

func (*File) ListAndWatch

func (db *File) ListAndWatch(
	ctx context.Context,
	address string,
	out chan<- []string,
) error

func (*File) ReadAndWatch

func (db *File) ReadAndWatch(
	ctx context.Context,
	address string,
	logName string,
	out chan<- *loggerv1alpha1.ReadResponse,
) error

Jump to

Keyboard shortcuts

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