stdout

package
v0.0.0-...-feb181f Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StdOutManager

type StdOutManager struct {
	Encoder *json.Encoder
	Errors  chan error

	Logger *log.Helper
}

func New

func New(logger *log.Helper) (*StdOutManager, error)

func (*StdOutManager) Errs

func (m *StdOutManager) Errs() <-chan error

func (*StdOutManager) Lookup

func (m *StdOutManager) Lookup(identity *authnapi.Identity, resource_type string, resource_id uuid.UUID) (api.Producer, error)

Lookup figures out which Producer should be used for the given identity and resource.

func (*StdOutManager) Produce

func (p *StdOutManager) Produce(ctx context.Context, event *api.Event) error

func (*StdOutManager) Shutdown

func (m *StdOutManager) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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