config

package
v0.0.0-...-9da45a1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 7 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 {
	Debug    bool
	HTTP     *HTTP
	Database *Database
	Platform *Platform
}

func Load

func Load() (*Config, error)

type Database

type Database struct {
	DSN string
}

type HTTP

type HTTP struct {
	Host string
	Port int
}

type Platform

type Platform struct {
	SitesDirectory         string
	MaxUploadSizeMegabytes int
}

Jump to

Keyboard shortcuts

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