{"modulePath":"github.com/labstack/armor","version":"v0.4.14","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package armor\n\n## Constants\n\n```go\nconst (\n\tVersion = \"0.4.14\"\n\tWebsite = \"https://armor.labstack.com\"\n)\n```\n\n```go\nconst (\n\tEventPluginLoad   = \"1\"\n\tEventPluginUpdate = \"2\"\n)\n```\nEvents\n\n## Types\n\n```go\ntype Admin struct {\n\tAddress string `json:\"address\"`\n}\n```\n\n```go\ntype Armor struct {\n\tName          string             `json:\"name\"`\n\tAddress       string             `json:\"address\"`\n\tPort          string             `json:\"-\"`\n\tTLS           *TLS               `json:\"tls\"`\n\tAdmin         *Admin             `json:\"admin\"`\n\tStorm         *Storm             `json:\"storm\"`\n\tPostgres      *Postgres          `json:\"postgres\"`\n\tCluster       *Cluster           `json:\"cluster\"`\n\tReadTimeout   time.Duration      `json:\"read_timeout\"`\n\tWriteTimeout  time.Duration      `json:\"write_timeout\"`\n\tRawPlugins    []plugin.RawPlugin `json:\"plugins\"`\n\tHosts         Hosts              `json:\"hosts\"`\n\tRootDir       string             `json:\"-\"`\n\tStore         store.Store        `json:\"-\"`\n\tPlugins       []plugin.Plugin    `json:\"-\"`\n\tEcho          *echo.Echo         `json:\"-\"`\n\tLogger        *log.Logger        `json:\"-\"`\n\tColorer       *color.Color       `json:\"-\"`\n\tDefaultConfig bool               `json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (a *Armor) AddPlugin(p plugin.Plugin)\n```\n\n```go\nfunc (a *Armor) FindHost(name string, add bool) (h *Host)\n```\n\n```go\nfunc (a *Armor) GetConfigForClient(clientHelloInfo *tls.ClientHelloInfo) (*tls.Config, error)\n```\nGetConfigForClient implements the Config.GetClientCertificate callback\n\n```go\nfunc (a *Armor) LoadPlugin(p *store.Plugin, update bool)\n```\n\n```go\nfunc (a *Armor) NewHTTP() (h *HTTP)\n```\n\n```go\nfunc (a *Armor) SavePlugins()\n```\n\n```go\nfunc (a *Armor) StartCluster()\n```\n\n```go\nfunc (a *Armor) UpdatePlugin(plugin plugin.Plugin)\n```\n\n```go\ntype Cluster struct {\n\t*serf.Serf\n\tAddress string   `json:\"address\"`\n\tPeers   []string `json:\"peers\"`\n}\n```\n\n```go\ntype HTTP struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *HTTP) CreateTunnel()\n```\n\n```go\nfunc (h *HTTP) Start() error\n```\n\n```go\nfunc (h *HTTP) StartTLS() error\n```\n\n```go\ntype Host struct {\n\tName       string             `json:\"-\"`\n\tCertFile   string             `json:\"cert_file\"`\n\tKeyFile    string             `json:\"key_file\"`\n\tRawPlugins []plugin.RawPlugin `json:\"plugins\"`\n\tPaths      Paths              `json:\"paths\"`\n\tPlugins    []plugin.Plugin    `json:\"-\"`\n\tGroup      *echo.Group        `json:\"-\"`\n\tClientCAs  []string           `json:\"client_ca\"`\n\tTLSConfig  *tls.Config        `json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (h *Host) AddPlugin(p plugin.Plugin)\n```\n\n```go\nfunc (h *Host) FindPath(name string) (p *Path)\n```\n\n```go\nfunc (h *Host) UpdatePlugin(plugin plugin.Plugin)\n```\n\n```go\ntype Hosts map[string]*Host\n```\n\n```go\ntype Path struct {\n\tName       string             `json:\"-\"`\n\tRawPlugins []plugin.RawPlugin `json:\"plugins\"`\n\tPlugins    []plugin.Plugin    `json:\"-\"`\n\tGroup      *echo.Group        `json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Path) AddPlugin(plugin plugin.Plugin)\n```\n\n```go\nfunc (p *Path) UpdatePlugin(plugin plugin.Plugin)\n```\n\n```go\ntype Paths map[string]*Path\n```\n\n```go\ntype Postgres struct {\n\tURI string `json:\"uri\"`\n}\n```\n\n```go\ntype Storm struct {\n\tURI string `json:\"uri\"`\n}\n```\n\n```go\ntype TLS struct {\n\tAddress      string `json:\"address\"`\n\tPort         string `json:\"-\"`\n\tCertFile     string `json:\"cert_file\"`\n\tKeyFile      string `json:\"key_file\"`\n\tAuto         bool   `json:\"auto\"`\n\tCacheDir     string `json:\"cache_dir\"`\n\tEmail        string `json:\"email\"`\n\tDirectoryURL string `json:\"directory_url\"`\n\tSecured      bool   `json:\"secured\"`\n}\n```\n\n","path":"github.com/labstack/armor","name":"armor","synopsis":"","isRedistributable":true}
