notifier

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Sources []source.Config `yaml:"sources"`
	Docs    *string         `yaml:"docs"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Publisher

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

func NewPublisher

func NewPublisher(ctx context.Context, log logrus.FieldLogger, monitor string, conf Config) (*Publisher, error)

func (*Publisher) Publish

func (p *Publisher) Publish(e event.Event) error

func (*Publisher) PublishWithContext added in v0.1.3

func (p *Publisher) PublishWithContext(ctx context.Context, e event.Event) error

func (*Publisher) Start

func (p *Publisher) Start(ctx context.Context) error

func (*Publisher) Stop

func (p *Publisher) Stop(ctx context.Context) error

type RawMessage

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

func (*RawMessage) Unmarshal

func (r *RawMessage) Unmarshal(v interface{}) error

func (*RawMessage) UnmarshalYAML

func (r *RawMessage) UnmarshalYAML(unmarshal func(interface{}) error) error

type SourceWithConfig added in v0.1.0

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

Directories

Path Synopsis
ses

Jump to

Keyboard shortcuts

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