config

package
v0.0.0-...-949e8d3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 1 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 {
	Server   Server
	Database Database
	GRPC     GRPC
	Minio    Minio
}

func GetConfig

func GetConfig() Config

type Database

type Database struct {
	Host     string `env:"db_host"`
	Port     int    `env:"db_port"`
	Username string `env:"db_username"`
	Password string `env:"db_password"`
	Database string `env:"db_database"`
}

type GRPC

type GRPC struct {
	// contains filtered or unexported fields
}

func (*GRPC) Addr

func (g *GRPC) Addr() string

type Minio

type Minio struct {
	ServerURL  string `env:"minio_url"`
	AccessKey  string `env:"minio_access"`
	SecretKey  string `env:"minio_secret"`
	BucketName string `env:"minio_bucket"`
}

type Server

type Server struct {
	ListenAddr string `env:"listen_addr"`
	Port       int    `env:"port"`
	Secret     string `env:"secret"`
}

Jump to

Keyboard shortcuts

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