config

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName          string `mapstructure:"-"`
	ConfigFileName   string `mapstructure:"-"`
	CustomConfigPath string `mapstructure:"-"`

	NotifierServerData *notifierServerData  `mapstructure:"notifier_server"`
	SubscriptionsData  []*subscriptionsData `mapstructure:"subscriptions"`
	// contains filtered or unexported fields
}

func (*Config) GetSubscriptionArn

func (c *Config) GetSubscriptionArn(topicArn string) string

func (*Config) Read

func (c *Config) Read() error

Read will load config settings from disk

func (*Config) RemoveSubscriptionData

func (c *Config) RemoveSubscriptionData(topicArn string)

RemoveSubscriptionData hint: topicArn = blank to remove all subscription data from config

func (*Config) Save

func (c *Config) Save() error

Save persists config settings to disk

func (*Config) SetDynamoDBActionRetries

func (c *Config) SetDynamoDBActionRetries(i uint)

func (*Config) SetDynamoDBAwsRegion

func (c *Config) SetDynamoDBAwsRegion(s string)

func (*Config) SetDynamoDBDaxUrl

func (c *Config) SetDynamoDBDaxUrl(s string)

func (*Config) SetDynamoDBTable

func (c *Config) SetDynamoDBTable(s string)

func (*Config) SetDynamoDBTimeoutSeconds

func (c *Config) SetDynamoDBTimeoutSeconds(i uint)

func (*Config) SetDynamoDBUseDax

func (c *Config) SetDynamoDBUseDax(b bool)

func (*Config) SetNotifierGatewayUrl

func (c *Config) SetNotifierGatewayUrl(s string)

func (*Config) SetServerKey

func (c *Config) SetServerKey(s string)

func (*Config) SetSnsAwsRegion

func (c *Config) SetSnsAwsRegion(s string)

func (*Config) SetSubscriptionData

func (c *Config) SetSubscriptionData(topicArn string, subscriptionArn string)

Jump to

Keyboard shortcuts

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