notifierclient

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct {
	Logging             librepo.Logging
	CustomConfiguration config.CustomConfiguration

	Client aurestclientapi.Client
	// contains filtered or unexported fields
}

func (*Impl) Send

func (i *Impl) Send(ctx context.Context, notification openapi.Notification)

func (*Impl) Setup

func (i *Impl) Setup(clientIdentifier string, url string) error

type NotifierClient

type NotifierClient interface {
	Setup(clientIdentifier string, url string) error

	// Send will log any errors, but since we use it async, it cannot return the error
	Send(ctx context.Context, notification openapi.Notification)
}

func New

func New(logging librepo.Logging, configuration config.CustomConfiguration) NotifierClient

Jump to

Keyboard shortcuts

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