notifications

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyService

type DummyService struct {
}

func (*DummyService) Notify

func (svc *DummyService) Notify(certs []storage.CertificateData) error

func (*DummyService) Ping

func (svc *DummyService) Ping() error

type NotificationService

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

func (*NotificationService) Add

func (svc *NotificationService) Add(provider Provider)

func (*NotificationService) Notify

func (svc *NotificationService) Notify(certs []storage.CertificateData) error

type NotificationTestMockService

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

func (*NotificationTestMockService) Add

func (mock *NotificationTestMockService) Add(provider Provider)

func (*NotificationTestMockService) Notify

type Provider

type Provider interface {
	Notify(certs []storage.CertificateData) error
	Ping() error
}

func NewDummyProvider

func NewDummyProvider() Provider

func NewSlackProvider

func NewSlackProvider() Provider

type Service

type Service interface {
	Notify(certs []storage.CertificateData) error
	Add(provider Provider)
}

func New

func New() Service

func NewTestMock

func NewTestMock(notifyHandler func(certs []storage.CertificateData) error) Service

type SlackService

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

func (*SlackService) Notify

func (svc *SlackService) Notify(certs []storage.CertificateData) error

func (*SlackService) Ping

func (svc *SlackService) Ping() error

Jump to

Keyboard shortcuts

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