Documentation
¶
Index ¶
Constants ¶
View Source
const (
// SEQ the packet sequence query parameter specified by the client
SEQ = "seq_"
)
Variables ¶
This section is empty.
Functions ¶
func GetBodyCodec ¶
GetBodyCodec returns the codec id from content type.
func GetContentType ¶
GetContentType returns the content type from codec id.
func RegBodyCodec ¶
RegBodyCodec registers a mapping of content type to body coder.
Types ¶
type HttpSrvConfig ¶
type HttpSrvConfig struct {
ListenAddress string `yaml:"listen_address"`
OuterHost string `yaml:"outer_host"`
TlsCertFile string `yaml:"tls_cert_file"`
TlsKeyFile string `yaml:"tls_key_file"`
AllowCross bool `yaml:"allow_cross"`
PrintDetail bool `yaml:"-"`
CountTime bool `yaml:"-"`
SlowCometDuration time.Duration `yaml:"-"`
}
HttpSrvConfig config of HTTP server
func (*HttpSrvConfig) InnerIpPort ¶
func (h *HttpSrvConfig) InnerIpPort() string
InnerIpPort returns the service's intranet address, such as '192.168.1.120:8080'.
func (*HttpSrvConfig) ListenPort ¶
func (h *HttpSrvConfig) ListenPort() string
ListenPort returns the listened port, such as '8080'.
func (*HttpSrvConfig) OuterIpPort ¶
func (h *HttpSrvConfig) OuterIpPort() string
OuterIpPort returns the service's extranet address, such as '113.116.141.121:8080'.
Source Files
¶
- handle.go
- log.go
- server.go
- setting.go
Click to show internal directories.
Click to hide internal directories.