subscriber

package
v0.0.0-...-e96982d Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleConfig

type RuleConfig struct {
	Subscriptions SubscriptionConfig `json:"subscriptions"`
}

type Subscriber

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

func NewSubscriber

func NewSubscriber(a app.App) *Subscriber

func (*Subscriber) Init

func (subscriber *Subscriber) Init() error

func (*Subscriber) InitStateStore

func (subscriber *Subscriber) InitStateStore() error

func (*Subscriber) LoadConfigFile

func (subscriber *Subscriber) LoadConfigFile(filename string) (*RuleConfig, error)

func (*Subscriber) Run

func (subscriber *Subscriber) Run() error

func (*Subscriber) Stop

func (subscriber *Subscriber) Stop()

type SubscriptionConfig

type SubscriptionConfig map[string][]string

Jump to

Keyboard shortcuts

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