config

package
v0.0.0-...-3594ad7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDevelopmentMode

func GetDevelopmentMode() bool

func GetLogLevel

func GetLogLevel() string

func NewAWSConfig

func NewAWSConfig(ctx context.Context) (aws.Config, error)

Types

type Config

type Config struct {
	AWSRegion string

	Slack        Slack
	FeatureFlags FeatureFlags
}

func GetConfig

func GetConfig(ctx context.Context) *Config

func (*Config) GetSlackChannelMapParameter

func (c *Config) GetSlackChannelMapParameter(ctx context.Context) (string, error)

func (*Config) GetSlackDefaultChannelID

func (c *Config) GetSlackDefaultChannelID(ctx context.Context) (string, error)

func (*Config) GetSlackKey

func (c *Config) GetSlackKey(ctx context.Context) (string, error)

func (*Config) Validate

func (c *Config) Validate() error

type FeatureFlags

type FeatureFlags struct {
	EnableSlackChannelMap bool
}

type Slack

type Slack struct {
	DefaultChannelID string

	// lazy loaded fields
	ChannelMap string
	APIKey     string
}

Jump to

Keyboard shortcuts

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