notificator

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 10 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 {
	Logger        *zap.Logger
	VideoAPIURL   string
	VideoAPIToken string
}

type Notificator

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

Notificator is asynchronous Video API notification service. It takes events and calls videoapi service-side API in separate goroutine.

TODO In the future could be replaced with actual message queue.

func New

func New(cfg *Config) (*Notificator, error)

func (*Notificator) Run

func (n *Notificator) Run(ctx context.Context, wg *sync.WaitGroup, _ chan<- error)

func (*Notificator) Send

func (n *Notificator) Send(ev *event.Event)

Jump to

Keyboard shortcuts

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