setting

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ServerName string `toml:"server_name"`
	Port       string `toml:"port"`
}

type Origin

type Origin struct {
	URI      string `toml:"uri"`
	FilePath string `toml:"file_path"`
	Method   string `toml:"method"`
	Content  []byte
}

type Routing

type Routing struct {
	RootPath   string   `toml:"root_path"`
	OriginRoot string   `toml:"origin_root"`
	Origins    []Origin `toml:"origins"`
}

type Setting

type Setting struct {
	TomlSetting
}

func NewSetting

func NewSetting() Setting

func (*Setting) ReadToml

func (s *Setting) ReadToml(content string) error

type TomlSetting

type TomlSetting struct {
	App     `toml:"app"`
	Routing `toml:"routing"`
}

Jump to

Keyboard shortcuts

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