config

package
v0.0.0-...-5f3fc13 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 6 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 {
	DBConnectionString string `split_words:"true" default:"user=bogos password=bogos-binted dbname=bogos sslmode=disable"`
	ListenAddr         string `split_words:"true" default:"localhost:9999"`
	LogLevel           string `split_words:"true" default:"debug"`
	UseJsonLogging     bool   `split_words:"true" default:"false"`
	JwtSecret          []byte `split_words:"true" default:"bogos-binted"`

	S3AccessKeyId     string `split_words:"true" default:"bogos"`
	S3SecretAccessKey string `split_words:"true" default:"bogos-binted"`
	S3Endpoint        string `split_words:"true" default:"http://localhost:9000"`
	S3BucketName      string `split_words:"true" default:"bogos-bucket"`
	PhotoUrlFormat    string `split_words:"true" default:"http://localhost:9000/bogos-bucket/%s"`
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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