notifier

package
v0.0.0-...-a8b8e24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	Send(context.Context, *api.Event)
	QueueSize() int
}

Notifier an interface that will allow us to create different notifier implementations

func New

func New(grpc_endpoint *grpc.ClientConn, opts ...NotifierOption) Notifier

func NewWithClient

func NewWithClient(client api.NotificationsClient, opts ...NotifierOption) Notifier

type NotifierOption

type NotifierOption func(*notifierOptions)

func WithBacklog

func WithBacklog(b int) NotifierOption

WithBacklog returns a NotifierOption which sets how requests are allowed to be queued up at the same time.

func WithConcurrency

func WithConcurrency(c int) NotifierOption

WithConcurrency returns a NotifierOption which sets how many notification requests can be in flight at the same time. The minimum value allowed is 1

Jump to

Keyboard shortcuts

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