config

package
v0.0.0-...-54413c5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SQLiteBackendType = "sqlite"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address     string              `toml:"address"`
	Port        int                 `toml:"port"`
	WSPort      int                 `toml:"ws_port"`
	BackendType string              `toml:"backend_type"`
	Domain      string              `toml:"domain"`
	SQLite      SQLiteBackendConfig `toml:"sqlite"`
	UploadPath  string              `toml:"upload_path"`
}

func ParseConfig

func ParseConfig(path string) (Config, error)

type SQLiteBackendConfig

type SQLiteBackendConfig struct {
	Path string `toml:"path"`
}

Jump to

Keyboard shortcuts

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