conf

package module
v0.0.0-...-fd057f4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(context []byte) error

Types

type ConfInfo

type ConfInfo struct {
	WorkDir            string `yaml:"work-dir"`
	HttpServerListen   string `yaml:"http-server-listen"`
	BaseUrlPath        string `yaml:"base-url-path"`
	AllowRegister      bool   `yaml:"allow-register"`
	EnableCors         bool   `yaml:"enable-cors"`
	CorsAllowOriginUrl string `yaml:"cors-allow-origin-url"`
}
var Config *ConfInfo

func Parser

func Parser(context []byte) (*ConfInfo, error)

Jump to

Keyboard shortcuts

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