Documentation
¶
Index ¶
- Variables
- type Auth
- type Browser
- type CMS
- type Component
- type ComponentDef
- type ComponentList
- type Compress
- type ConfigDef
- type Engine
- type EngineList
- type FileServer
- type Host
- type HostList
- type Listener
- type ListenerList
- type Log
- type Minify
- type Origin
- type Plugin
- type Plugins
- type Redirect
- type Stat
- type TComponentList
- type TEngineList
- type THost
- type THostList
- type TListenerList
- type UserAgent
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = &ConfigDef{}
Functions ¶
This section is empty.
Types ¶
type ComponentDef ¶
type ComponentList ¶
type ComponentList []Component
func (*ComponentList) Exists ¶
func (ccl *ComponentList) Exists(compcc Component) bool
func (*ComponentList) UnmarshalJSON ¶
func (ccl *ComponentList) UnmarshalJSON(buf []byte) error
type ConfigDef ¶
type ConfigDef struct {
Version string
File string
Listeners ListenerList `json:"listeners"`
Hosts HostList `json:"hosts"`
Components ComponentList `json:"components"`
Engines EngineList `json:"engines"`
Log Log `json:"log"`
Include []string `json:"include"`
}
func (*ConfigDef) GetListener ¶
func (*ConfigDef) IsComponentLoaded ¶
func (*ConfigDef) SearchListener ¶
type EngineList ¶
type EngineList []Engine
func (*EngineList) Exists ¶
func (ecl *EngineList) Exists(compec Engine) bool
func (*EngineList) UnmarshalJSON ¶
func (ecl *EngineList) UnmarshalJSON(buf []byte) error
type FileServer ¶
type Host ¶
type Host struct {
Name string `json:"name"`
Listeners []string `json:"listeners"`
HostNames []string `json:"hostnames"`
Cert string `json:"cert"`
PrivateKey string `json:"key"`
Plugins Plugins `json:"plugins"`
Log Log `json:"log"`
// Build after
Status int
// BUILT-IN Components
Stat Stat `json:"stat"`
Redirect Redirect `json:"redirect"`
Auth Auth `json:"auth"`
Compress Compress `json:"compress"`
Minify Minify `json:"minify"`
Origin Origin `json:"origin"`
FileServer FileServer `json:"fileserver"`
CMS CMS `json:"cms"`
// External components
Remaining []byte
Components map[string]ComponentDef
}
func (*Host) UnmarshalJSON ¶
type ListenerList ¶
type ListenerList []Listener
func (*ListenerList) Exists ¶
func (lcl *ListenerList) Exists(complc Listener) bool
func (*ListenerList) UnmarshalJSON ¶
func (lcl *ListenerList) UnmarshalJSON(buf []byte) error
type TComponentList ¶
type TComponentList []Component
type TEngineList ¶
type TEngineList []Engine
type TListenerList ¶
type TListenerList []Listener
Click to show internal directories.
Click to hide internal directories.