approval

package
v0.0.0-...-9245cf0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCollector

func RegisterCollector(name string, c Collector)

Types

type Collector

type Collector interface {
	Configure(approvalsManager approvals.Manager) (bool, error)
}

Collector - generic interface for implementing approval mechanisms

type MainCollector

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

MainCollector holds all registered collectors

func New

func New() *MainCollector

New - create new sender

func (*MainCollector) Collectors

func (m *MainCollector) Collectors() map[string]Collector

Collectors returns the list of the registered Collectors.

func (*MainCollector) Configure

func (m *MainCollector) Configure(approvalsManager approvals.Manager) (bool, error)

Configure - configure is used to register multiple notification senders

func (*MainCollector) UnregisterCollector

func (m *MainCollector) UnregisterCollector(name string)

UnregisterCollector removes a Collector with a particular name from the list.

Jump to

Keyboard shortcuts

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