publisher

package
v0.0.0-...-2e936b0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	Collect() (map[string]any, error)
}

type Publish

type Publish struct {
	// contains filtered or unexported fields
}

func New

func New(log *logger.Logger, collector Collector, interval time.Duration, publisher ...Publisher) (*Publish, error)

func (*Publish) Stop

func (p *Publish) Stop()

type Publisher

type Publisher func(map[string]any)

type StdOut

type StdOut struct {
	// contains filtered or unexported fields
}

func NewStdout

func NewStdout(log *logger.Logger) *StdOut

func (*StdOut) Publish

func (s *StdOut) Publish(data map[string]any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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