config

package
v0.0.0-...-521bf69 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Environments = map[string]string{
	"dev":  "dev",
	"prod": "prod",
}

Functions

func Load

func Load()

Types

type Config

type Config struct {
	App    app
	Svc    Service
	Http   HTTPServerConfig
	S3     s3
	Crypto crypto
}
var Cfg *Config

type HTTPServerConfig

type HTTPServerConfig struct {
	CORS string

	Endpoint string

	MaxBodySize int64
	// contains filtered or unexported fields
}

func (*HTTPServerConfig) GetBaseURL

func (h *HTTPServerConfig) GetBaseURL() string

func (*HTTPServerConfig) GetListenAddr

func (h *HTTPServerConfig) GetListenAddr() string

type Service

type Service struct {
	Overrides map[string]string
}

Jump to

Keyboard shortcuts

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