Documentation
¶
Overview ¶
Example ¶
fmt.Println(getIps())
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatListenUrl ¶ added in v0.8.1
func GetListens ¶ added in v0.8.1
Types ¶
type AdminConfig ¶
type AdminConfig struct {
Scheme string `json:"scheme" yaml:"scheme"`
Listen int `json:"listen" yaml:"listen"`
IP string `json:"ip" yaml:"ip"`
Certificate *Certificate `json:"certificate,omitempty" yaml:"certificate"`
}
type Cert ¶
type Cert struct {
// contains filtered or unexported fields
}
func (*Cert) GetCertificate ¶
func (c *Cert) GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)
type CertConfig ¶ added in v0.8.1
type Certificate ¶
type CertificateDir ¶
type CertificateDir struct {
Dir string `json:"dir" yaml:"dir"`
}
type ListenConfig ¶
type ListenConfig struct {
Port int `json:"port" yaml:"port"`
Certificate []*Certificate `json:"certificate" yaml:"certificate,omitempty"`
}
type NConfig ¶ added in v0.8.1
type NConfig struct {
Version int `json:"version" yaml:"version"`
CertificateDir *CertificateDir `json:"certificate" yaml:"certificate"`
Peer UrlConfig `json:"peer"`
Client UrlConfig `json:"client"`
Gateway ListenUrl `json:"gateway" yaml:"gateway"`
}
type OConfig ¶ added in v0.8.1
type OConfig struct {
Listen []int `json:"listen" yaml:"listen"`
SSL *SSLConfig `json:"ssl" yaml:"ssl"`
Admin *AdminConfig `json:"admin" yaml:"admin"`
CertificateDir *CertificateDir `json:"certificate" yaml:"certificate"`
}
type SSLConfig ¶
type SSLConfig struct {
Listen []*ListenConfig `json:"listen"`
}
type UrlConfig ¶ added in v0.8.1
type UrlConfig struct {
ListenUrl
Certificate []CertConfig `json:"certificate,omitempty" yaml:"certificate,omitempty"`
}
type VersionConfig ¶ added in v0.8.1
type VersionConfig struct {
Version int `json:"version" yaml:"version"`
}
Click to show internal directories.
Click to hide internal directories.