eventlogger

package
v0.3.79-rc-295390f Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLogger

type EventLogger struct {
	// Destination to log output to.
	Out io.Writer
	// Channel on which to receive events to be logged.
	In chan *api.EventMessage
	// contains filtered or unexported fields
}

func New

func New(c chan *api.EventMessage, interval time.Duration) *EventLogger

func (*EventLogger) Log

func (srv *EventLogger) Log()

func (*EventLogger) Run

func (srv *EventLogger) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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