Documentation ¶
Index ¶
- 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 Hosts ¶ added in v0.50.0
type Hosts struct {
// contains filtered or unexported fields
}
Hosts type represents all local domains set.
func (*Hosts) Certificates ¶ added in v0.50.0
func (hs *Hosts) Certificates() []tls.Certificate
Certificates returns all registered domain certificates.
func (*Hosts) DefaultHostName ¶ added in v0.50.0
DefaultHostName returns default host name value.
func (*Hosts) HostNames ¶ added in v0.50.0
HostNames returns the list of all registered local hosts.
func (*Hosts) IsLocalHost ¶ added in v0.50.0
IsLocalHost tells whether or not d value corresponds to local host.
func (*Hosts) RegisterDefaultHost ¶ added in v0.50.0
func (hs *Hosts) RegisterDefaultHost(h string, cer tls.Certificate)
RegisterDefaultHost registers default host value along with its certificate.
func (*Hosts) RegisterHost ¶ added in v0.50.0
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.