subscription

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubscribeAPI

type SubscribeAPI interface {
	Subscribe(nodeId string, secretId string)
	Stop()
}

type Subscriber

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

func NewSubscriber added in v1.1.1

func NewSubscriber(awsRegion string, awsEndpoint string, l log.Logger) (*Subscriber, error)

func (*Subscriber) Stop

func (s *Subscriber) Stop()

func (*Subscriber) Subscribe

func (s *Subscriber) Subscribe(nodeId string, secretId string)

type WatchAPI

type WatchAPI interface {
	Start()
}

type WatchOption

type WatchOption func(watcher *Watcher)

func WithInterval

func WithInterval(min, max time.Duration) WatchOption

type Watcher

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

func NewWatcher

func NewWatcher(nodeId *string, secretId *string, api aws.SecretsManagerAPI, notifyCh chan *tlsV3.Secret, l log.Logger, opts ...WatchOption) *Watcher

func (*Watcher) Start

func (w *Watcher) Start()

func (*Watcher) Stop

func (w *Watcher) Stop()

Jump to

Keyboard shortcuts

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