Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string Certificate tls.Certificate }
Config represents a host configuration.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML satisfies Unmarshaler interface.
type Hosts ¶
type Hosts struct {
// contains filtered or unexported fields
}
Hosts represents hosts configuation map.
func (*Hosts) Certificates ¶
func (h *Hosts) Certificates() []tls.Certificate
Certificates returns a list of TLS certificat.
func (*Hosts) DefaultHostName ¶
DefaultHostName returns the default hostname.
func (*Hosts) IsLocalHost ¶
IsLocalHost returns whether a domain is hosted.
Click to show internal directories.
Click to hide internal directories.