config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Level string `json:"level" yaml:"level" env:"LEVEL" env-default:"info"`
}

type Postgres

type Postgres struct {
	Host     string `json:"host" yaml:"host" env:"HOST" env-default:"127.0.0.1"`
	Port     uint32 `json:"port" yaml:"port" env:"PORT" env-default:"5432"`
	DB       string `json:"db" yaml:"db" env:"DB" env-default:"postgres"`
	User     string `json:"user" yaml:"user" env:"USER" env-default:"postgres"`
	Password string `json:"password" yaml:"password" env:"PASSWORD" env-default:"postgres"`
}

func (Postgres) Addr

func (p Postgres) Addr() string

type S3

type S3 struct {
	Endpoint     string        `json:"endpoint" yaml:"endpoint" env:"ENDPOINT" env-default:"127.0.0.1:9000"`
	UseSSL       bool          `json:"useSSL" yaml:"useSSL" env:"USE_SSL" env-default:"false"`
	Region       string        `json:"region" yaml:"region" env:"REGION" env-default:""`
	Bucket       string        `json:"bucket" yaml:"bucket" env:"BUCKET" env-default:""`
	Prefix       string        `json:"prefix" yaml:"prefix" env:"PREFIX" env-default:""`
	AccessID     string        `json:"accessID" yaml:"accessID" env:"ACCESS_ID" env-default:""`
	AccessSecret string        `json:"accessSecret" yaml:"accessSecret" env:"ACCESS_SECRET" env-default:""`
	Token        string        `json:"token" yaml:"token" env:"TOKEN" env-default:""`
	Timeout      time.Duration `json:"timeout" yaml:"timeout" env:"TIMEOUT" env-default:"4s"`
}

Jump to

Keyboard shortcuts

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