config

package
v0.0.0-...-e58cecd Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerConfig   *Server
	DatabaseConfig *Database
	UrlConfig      *Url
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Server   *Server
	Url      *Url
	Database *Database
}

type Database

type Database struct {
	Type string `yaml:"type"`
	Dsn  string `yaml:"dsn"`
}

type Server

type Server struct {
	Host          string `yaml:"host"`
	Port          string `yaml:"port"`
	LogTimezone   string `yaml:"logTimezone"`
	LogTimeFormat string `yaml:"logTimeFormat"`
}

type Url

type Url struct {
	Schema          string         `yaml:"schema"`
	Domain          string         `yaml:"domain"`
	Length          int            `yaml:"length"`
	AllowCustomPath bool           `yaml:"allowCustomPath"`
	ExpireSeconds   *time.Duration `yaml:"expireSeconds"`
	Unique          bool           `json:"unique"`
}

Jump to

Keyboard shortcuts

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