Documentation
¶
Index ¶
- Constants
- type Admin
- type Armor
- func (a *Armor) AddPlugin(p plugin.Plugin)
- func (a *Armor) FindHost(name string, add bool) (h *Host)
- func (a *Armor) LoadPlugin(p *store.Plugin, update bool)
- func (a *Armor) NewHTTP() (h *HTTP)
- func (a *Armor) SavePlugins()
- func (a *Armor) StartCluster()
- func (a *Armor) UpdatePlugin(plugin plugin.Plugin)
- type Cluster
- type HTTP
- type Host
- type Hosts
- type Path
- type Paths
- type Postgres
- type Storm
- type TLS
Constants ¶
View Source
const ( Version = "0.4.13" Website = "https://armor.labstack.com" )
View Source
const ( EventPluginLoad = "1" EventPluginUpdate = "2" )
Events
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Armor ¶
type Armor struct { Name string `json:"name"` Address string `json:"address"` TLS *TLS `json:"tls"` Admin *Admin `json:"admin"` Storm *Storm `json:"storm"` Postgres *Postgres `json:"postgres"` Cluster *Cluster `json:"cluster"` ReadTimeout time.Duration `json:"read_timeout"` WriteTimeout time.Duration `json:"write_timeout"` RawPlugins []plugin.RawPlugin `json:"plugins"` Hosts Hosts `json:"hosts"` RootDir string `json:"-"` Store store.Store `json:"-"` Plugins []plugin.Plugin `json:"-"` Echo *echo.Echo `json:"-"` Logger *log.Logger `json:"-"` Colorer *color.Color `json:"-"` DefaultConfig bool `json:"-"` // contains filtered or unexported fields }
func (*Armor) LoadPlugin ¶ added in v0.4.12
func (*Armor) SavePlugins ¶ added in v0.4.12
func (a *Armor) SavePlugins()
func (*Armor) StartCluster ¶ added in v0.4.12
func (a *Armor) StartCluster()
func (*Armor) UpdatePlugin ¶ added in v0.4.12
type HTTP ¶ added in v0.4.12
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) CreateTunnel ¶ added in v0.4.12
func (h *HTTP) CreateTunnel()
type Host ¶
type Host struct { Name string `json:"-"` CertFile string `json:"cert_file"` KeyFile string `json:"key_file"` RawPlugins []plugin.RawPlugin `json:"plugins"` Paths Paths `json:"paths"` Plugins []plugin.Plugin `json:"-"` Echo *echo.Echo `json:"-"` // contains filtered or unexported fields }
func (*Host) UpdatePlugin ¶ added in v0.4.12
Click to show internal directories.
Click to hide internal directories.