config

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Apache-2.0 Imports: 3 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:"-"`

	NotifierGatewayData *notifierGatewayData `mapstructure:"notifier_gateway"`
	// contains filtered or unexported fields
}

func (*Config) Read

func (c *Config) Read() error

Read will load config settings from disk

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) SetGatewayKey

func (c *Config) SetGatewayKey(s string)

func (*Config) SetHashKeys added in v1.0.8

func (c *Config) SetHashKeys(hk ...hashKeyData)

func (*Config) SetHealthReportCleanUpFrequencySeconds added in v1.0.8

func (c *Config) SetHealthReportCleanUpFrequencySeconds(i uint)

func (*Config) SetHealthReportRecordStaleMinutes added in v1.0.8

func (c *Config) SetHealthReportRecordStaleMinutes(i uint)

func (*Config) SetServiceDiscoveryTimeoutSeconds added in v1.0.8

func (c *Config) SetServiceDiscoveryTimeoutSeconds(i uint)

Jump to

Keyboard shortcuts

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