impl

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifierImpl

type NotifierImpl struct {
	pb.UnimplementedNotifierServiceServer

	ConfigData                *config.Config
	WebServerLocalAddressFunc func() string
	// contains filtered or unexported fields
}

func (*NotifierImpl) Broadcast

func (n *NotifierImpl) Broadcast(c context.Context, d *pb.NotificationData) (r *pb.NotificationDone, err error)

Broadcast handles rpc implementation to broadcast notification data to all clients under a specific topicArn

func (*NotifierImpl) ConnectDataStore

func (n *NotifierImpl) ConnectDataStore() error

func (*NotifierImpl) ConnectSNS

func (n *NotifierImpl) ConnectSNS(awsRegionStr awsregion.AWSRegion) (err error)

func (*NotifierImpl) ReadConfig

func (n *NotifierImpl) ReadConfig(appName string, configFileName string, customConfigPath string) error

ReadConfig will read in config data

func (*NotifierImpl) Subscribe

Subscribe handles rpc implementation to subscribe a client to a topicArn, and process ongoing server stream notification to client

func (*NotifierImpl) Unsubscribe

Unsubscribe handles rpc implementation to unsubscribe a client to a topicArn

func (*NotifierImpl) UnsubscribeAllPriorSNSTopics added in v1.0.8

func (n *NotifierImpl) UnsubscribeAllPriorSNSTopics(topicArnLimit ...string)

UnsubscribeAllPriorSNSTopics will attempt to clean up all prior SNS topic subscriptions based in the config

func (*NotifierImpl) UpdateSubscriptionArnToTopic added in v1.0.8

func (n *NotifierImpl) UpdateSubscriptionArnToTopic(topicArn string, subscriptionArn string) error

UpdateSubscriptionArnToTopic persists given subscriptionArn to the matching TopicArn in config data

Jump to

Keyboard shortcuts

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