client

package
v0.0.0-...-d67b91f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Name    string `yaml:"name"    env:"APP_NAME"`
	Version string `yaml:"version" env:"APP_VERSION"`
}

type Config

type Config struct {
	App          `yaml:"app"`
	Server       `yaml:"server"`
	Log          `yaml:"logger"`
	SQLite       `yaml:"sqlite"`
	FilesStorage `yaml:"files_storage"`
}

func LoadConfig

func LoadConfig() *Config

LoadConfig returns app config.

type FilesStorage

type FilesStorage struct {
	Location string `yaml:"location" env:"FILES_LOCATION"`
}

type Log

type Log struct {
	Level string `yaml:"log_level"   env:"LOG_LEVEL"`
}

type SQLite

type SQLite struct {
	DSN string `yaml:"sqlite_dsn" env:"SQLITE_DSN"`
}

type Server

type Server struct {
	URL string `yaml:"url" env:"SERVER_URL"`
}

Jump to

Keyboard shortcuts

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