handler

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryHandler

type EntryHandler interface {
	RecordEntry(en *entry.LogEntry) error
}

type Handlers

type Handlers struct {
	EntryHandlers []EntryHandler
	SumHandlers   []SumHandler
	Ctx           context.Context
}

func NewHandlers

func NewHandlers(ctx context.Context, handlers ...interface{}) *Handlers

func (*Handlers) Handle

func (hs *Handlers) Handle(reader source.Reader, cfg entry.ConfigDetector, api *openapi3.T, baseUrl string) error

type SumHandler

type SumHandler interface {
	Sum() error
	RecordError(err error) error
}

Jump to

Keyboard shortcuts

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