config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = &Config{
	ROOT: "root",
}

Functions

This section is empty.

Types

type Config

type Config struct {
	ROOT   string `json:"root"`
	Server Server
	Proxy
	Sqlite3 Sqlite3
}

func (*Config) ToJSON

func (m *Config) ToJSON() []byte

type Proxy

type Proxy struct {
	Proxy map[string]ProxyTarget `json:"proxy"`
}

func (*Proxy) ToJSON

func (m *Proxy) ToJSON() []byte

type ProxyTarget

type ProxyTarget struct {
	Target string `json:"target"`
	ProxyTargetRewrite
}

type ProxyTargetRewrite

type ProxyTargetRewrite struct {
	Rewrite map[string]string `json:"rewrite"`
}

type Server

type Server struct {
	IP   string `json:"ip"`
	PORT string `json:"port"`
}

type Sqlite3

type Sqlite3 struct {
	Path string `json:"path"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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