Documentation ¶
Index ¶
- type Config
- type Configs
- type Hosts
- func (hs *Hosts) Certificates() []tls.Certificate
- func (hs *Hosts) DefaultHostName() string
- func (hs *Hosts) HostNames() []string
- func (hs *Hosts) IsLocalHost(h string) bool
- func (hs *Hosts) RegisterDefaultHost(h string, cer tls.Certificate)
- func (hs *Hosts) RegisterHost(h string, cer tls.Certificate)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.55.0
type Config struct { Domain string `fig:"domain"` TLS struct { CertFile string `fig:"cert_file"` PrivateKeyFile string `fig:"privkey_file"` } `fig:"tls"` }
Config contains host configuration parameters.
type Configs ¶ added in v0.55.0
type Configs []Config
Configs contains a set of host configurations.
type Hosts ¶
type Hosts struct {
// contains filtered or unexported fields
}
Hosts type represents all local domains set.
func (*Hosts) Certificates ¶
func (hs *Hosts) Certificates() []tls.Certificate
Certificates returns all registered domain certificates.
func (*Hosts) DefaultHostName ¶
DefaultHostName returns default host name value.
func (*Hosts) IsLocalHost ¶
IsLocalHost tells whether or not d value corresponds to local host.
func (*Hosts) RegisterDefaultHost ¶
func (hs *Hosts) RegisterDefaultHost(h string, cer tls.Certificate)
RegisterDefaultHost registers default host value along with its certificate.
func (*Hosts) RegisterHost ¶
func (hs *Hosts) RegisterHost(h string, cer tls.Certificate)
RegisterHost registers a host value along with its certificate.
Click to show internal directories.
Click to hide internal directories.