notifier

package
v0.0.0-...-02bafa8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientRefresher

type ClientRefresher func() (Publisher, error)

type Notifier

type Notifier interface {
	Notify(context.Context, string) error
}

type Publisher

type Publisher interface {
	Publish(
		context.Context,
		*sns.PublishInput,
		...func(*sns.Options)) (*sns.PublishOutput, error)
}

func RefreshClient

func RefreshClient() (Publisher, error)

type SNSNotifier

type SNSNotifier struct {
	Pub           Publisher
	RefreshClient ClientRefresher
	Log           logr.Logger
}

func (*SNSNotifier) Notify

func (s *SNSNotifier) Notify(ctx context.Context, message string) error

Jump to

Keyboard shortcuts

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