Documentation ¶
Overview ¶
Example ¶
fmt.Println(getIps())
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatListenUrl ¶
func GetListens ¶
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 ¶
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 ¶
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 ¶
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 ¶
type UrlConfig struct { ListenUrl Certificate []CertConfig `json:"certificate,omitempty" yaml:"certificate,omitempty"` }
type VersionConfig ¶
type VersionConfig struct {
Version int `json:"version" yaml:"version"`
}
Click to show internal directories.
Click to hide internal directories.