Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Server *Server `json:"server,omitempty" yaml:"server,omitempty"`
}
var Cfg *Config
type Medata ¶
type Medata struct {
Tls *TlsConfig `json:"tls,omitempty" yaml:"tls,omitempty"`
GraceTimeOut time.Duration `json:"grace_time_out,omitempty" yaml:"grace_time_out,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Scheme string `json:"scheme,omitempty" yaml:"scheme,omitempty"`
Port int `json:"port,omitempty" yaml:"port,omitempty"`
}
type Server ¶
type Server struct {
Medata []*Medata `json:"medata,omitempty" yaml:"medata,omitempty"`
}
type TlsConfig ¶
type TlsConfig struct {
Cert ptls.FileOrContent `json:"cert,omitempty" yaml:"cert,omitempty"`
Key ptls.FileOrContent `json:"key,omitempty" yaml:"key,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.