config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: BSD-3-Clause Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetStaticDir

func AssetStaticDir() string

func TlsDir

func TlsDir() string

Types

type Config

type Config struct {
	Paths          Paths
	ServeConfig    ServeConfig
	DatabaseDriver string
	SearchDriver   string
}

func Get

func Get() (*Config, error)

func New

func New() (*Config, error)

type Paths

type Paths struct {
	PublicPath string
	DataDir    string
}

type ServeConfig

type ServeConfig struct {
	HttpsPort int
	HttpPort  int
	Bind      string
	DevHttps  bool
	Https     bool
}

Jump to

Keyboard shortcuts

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