Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpService ¶
type HttpService struct {
// contains filtered or unexported fields
}
func NewHttpService ¶
func NewHttpService(listener net.Listener) *HttpService
func (*HttpService) GetCertificate ¶
func (h *HttpService) GetCertificate(info *tls.ClientHelloInfo) (*tls.Certificate, error)
GetCertificate 获取证书配置
func (*HttpService) SetHttp ¶
func (h *HttpService) SetHttp(handler fasthttp.RequestHandler)
func (*HttpService) SetHttps ¶
func (h *HttpService) SetHttps(handler fasthttp.RequestHandler, certs map[string]*tls.Certificate)
func (*HttpService) ShutDown ¶
func (h *HttpService) ShutDown()
type HttpTraffic ¶
type HttpTraffic struct {
// contains filtered or unexported fields
}
func NewHttpTraffic ¶
func NewHttpTraffic(tf traffic.ITraffic) *HttpTraffic
func (*HttpTraffic) Close ¶
func (h *HttpTraffic) Close()
func (*HttpTraffic) Get ¶
func (h *HttpTraffic) Get(port int) IService
func (*HttpTraffic) ShutDown ¶
func (h *HttpTraffic) ShutDown(port int)
type IHttpTraffic ¶
type IService ¶
type IService interface { SetHttps(handler fasthttp.RequestHandler, certs map[string]*tls.Certificate) SetHttp(handler fasthttp.RequestHandler) ShutDown() }
Click to show internal directories.
Click to hide internal directories.