Documentation
¶
Index ¶
Constants ¶
View Source
const ( GET = "GET" POST = "POST" UPDATE = "UPDATE" DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NginxInstance ¶
type NginxServer ¶
type NginxServer struct {
Name string `json:"name"`
Domain string `json:"domain"`
Port int32 `json:"port"`
Path string `json:"path"`
Protocol string `json:"protocol"` // http and https only
Cert string `json:"cert"`
Key string `json:"key"`
Options map[string]string `json:"options"`
Upstream string `json:"upstream"`
ToHTTPS bool `json:"toHTTPS"`
}
type NginxUpstream ¶
type NginxUpstream struct {
Name string `json:"name"`
Servers []NginxNode `json:"servers"`
Protocol string `json:"protocol"`
}
func (*NginxUpstream) AddNode ¶
func (u *NginxUpstream) AddNode(node NginxNode)
Click to show internal directories.
Click to hide internal directories.