journal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pipe

func Pipe() (Reader, Writer)

Types

type Discard

type Discard struct{}

func (Discard) Close

func (d Discard) Close() error

func (Discard) WriteEntry

func (d Discard) WriteEntry(*Entry) error

type Entry

type Entry struct {
	Event *bkclient.SolveStatus `json:"event"`
	TS    time.Time             `json:"ts"`
}

type Reader

type Reader interface {
	ReadEntry() (*Entry, bool)
}

type Sink

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

func ServeWriters

func ServeWriters(network, addr string) (*Sink, error)

func (*Sink) Addr

func (sink *Sink) Addr() net.Addr

func (*Sink) Close

func (sink *Sink) Close() error

func (*Sink) Endpoint

func (sink *Sink) Endpoint() string

type Writer

type Writer interface {
	WriteEntry(*Entry) error
	Close() error
}

func Dial

func Dial(network, addr string) (Writer, error)

Jump to

Keyboard shortcuts

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