observer

package
v0.0.0-...-f06f3bb Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 1 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Type() EventType
}

type EventType

type EventType string
const (
	EventStatus EventType = "status"
	EventStats  EventType = "stats"
)

type Observer

type Observer interface {
	Observe(ctx context.Context, events []Event, opts ...Option) error
}

type Option

type Option func(opts *Options)

type Options

type Options struct{}

Jump to

Keyboard shortcuts

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