notifier

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	configuration librepo.Configuration,
	customConfig config.CustomConfiguration,
	logging librepo.Logging,
) repository.Notifier

Types

type Impl

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

	Clients   map[string]notifierclient.NotifierClient
	SkipAsync bool // for tests
}

func (*Impl) IsNotifier

func (r *Impl) IsNotifier() bool

func (*Impl) PublishCreation

func (r *Impl) PublishCreation(ctx context.Context, name string, payload openapi.NotificationPayload) error

func (*Impl) PublishDeletion

func (r *Impl) PublishDeletion(ctx context.Context, name string, payloadType types.NotificationPayloadType)

func (*Impl) PublishModification

func (r *Impl) PublishModification(ctx context.Context, name string, payload openapi.NotificationPayload) error

func (*Impl) Setup

func (r *Impl) Setup() error

func (*Impl) SetupNotifier added in v0.33.0

func (r *Impl) SetupNotifier(ctx context.Context) error

Directories

Path Synopsis
client

Jump to

Keyboard shortcuts

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