writelogger

package
v3.26.0 Latest Latest
Warning

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

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

Documentation

Overview

Package writelogger provides the writelogger structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir string        `toml:"data-dir"`
	Logger  logger.Logger `toml:"-"`
}

type WriteLogger

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

func New

func New(cfg Config) *WriteLogger

func (*WriteLogger) AppendMessage

func (w *WriteLogger) AppendMessage(bucket string, key string, version int, message []byte) error

func (*WriteLogger) DeleteLog

func (w *WriteLogger) DeleteLog(bucket string, key string, version int) error

func (*WriteLogger) LogReader

func (w *WriteLogger) LogReader(bucket string, key string, version int) (io.Reader, io.Closer, error)

func (*WriteLogger) SetLogger

func (w *WriteLogger) SetLogger(l logger.Logger)

SetLogger sets the logger used for logging messages. Note, this is not the same "logger" that the WriteLogger represents, which logs data writes.

Directories

Path Synopsis
Package client contains an http implementation of the WriteLogger client.
Package client contains an http implementation of the WriteLogger client.

Jump to

Keyboard shortcuts

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