config

package
v0.0.0-...-488514f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Port string
}

func NewAPIConfig

func NewAPIConfig() *APIConfig

type Config

type Config struct {
	API      *APIConfig
	Database *DBConfig
	Cors     *CorsConfig
	S3       *S3Config
}

func New

func New() *Config

type CorsConfig

type CorsConfig struct {
	AllowedOrigins string
}

func NewCorsConfig

func NewCorsConfig() *CorsConfig

type DBConfig

type DBConfig struct {
	Host        string
	Port        string
	User        string
	Password    string
	Database    string
	LoggerLevel string
}

func NewDBConfig

func NewDBConfig() *DBConfig

type S3Config

type S3Config struct {
	Endpoint  string
	Region    string
	AccessKey string
	SecretKey string
	Bucket    string
}

func NewS3Config

func NewS3Config() *S3Config

Jump to

Keyboard shortcuts

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