config

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: BSD-3-Clause 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 {
	HttpListenAddr    string         `envconfig:"H2S_HTTP_LISTEN_ADDR"    default:":80"`
	HttpEndpointTopic MapEndpointArn `envconfig:"H2S_HTTP_ENDPOINT_TOPIC"`
	HttpDebug         bool           `envconfig:"H2S_HTTP_DEBUG"          default:"false"`
	SnsRegion         string         `envconfig:"H2S_SNS_REGION"          default:"eu-central-1"`
	SnsApiEndpoint    string         `envconfig:"H2S_SNS_API_ENDPOINT"`
}

func NewConfig

func NewConfig() (*Config, error)

NewConfig creates and initialize a new instance of Config from env vars

type MapEndpointArn

type MapEndpointArn map[string]string

func (*MapEndpointArn) Decode

func (mea *MapEndpointArn) Decode(value string) error

Jump to

Keyboard shortcuts

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