scanner

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatAuto   = "auto"
	FormatJSON   = "json"
	FormatLogFmt = "logfmt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Format string
}

type Scanner

type Scanner struct {
	Options

	C <-chan event.Event // exported channel can only be read from
	// contains filtered or unexported fields
}

func New

func New(r io.Reader, o Options) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context)

Jump to

Keyboard shortcuts

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