internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Timestamp time.Time `json:"timestamp"`
	// contains filtered or unexported fields
}

func (*Log) Raw

func (l *Log) Raw() string

type Pusher

type Pusher interface {
	Push(entry *Log)
}

type Sink

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

func NewSink

func NewSink(pusher Pusher) *Sink

func (*Sink) Close

func (s *Sink) Close() error

func (*Sink) Sync

func (s *Sink) Sync() error

func (*Sink) Write

func (s *Sink) Write(bytes []byte) (count int, err error)

Jump to

Keyboard shortcuts

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