Documentation ¶
Index ¶
- func GetHttpRequestInfo(c *conn.Conn) (_ net.Conn, _ map[string]string, err error)
- func GetHttpsHostname(c *conn.Conn) (sc net.Conn, _ map[string]string, err error)
- func HttpAuthFunc(c *conn.Conn, userName, passWord, authorization string) (bAccess bool, err error)
- func HttpHostNameRewrite(c *conn.Conn, rewriteHost string) (_ net.Conn, err error)
- type ByLocation
- type HttpMuxer
- type HttpsMuxer
- type Listener
- type VhostMuxer
- type VhostRouter
- type VhostRouters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHttpRequestInfo ¶ added in v0.9.0
func GetHttpsHostname ¶
func HttpAuthFunc ¶ added in v0.9.0
Types ¶
type ByLocation ¶ added in v0.9.1
type ByLocation []*VhostRouter
sort by location
func (ByLocation) Len ¶ added in v0.9.1
func (a ByLocation) Len() int
func (ByLocation) Less ¶ added in v0.9.1
func (a ByLocation) Less(i, j int) bool
func (ByLocation) Swap ¶ added in v0.9.1
func (a ByLocation) Swap(i, j int)
type HttpMuxer ¶
type HttpMuxer struct {
*VhostMuxer
}
type VhostMuxer ¶
type VhostMuxer struct {
// contains filtered or unexported fields
}
func NewVhostMuxer ¶
type VhostRouter ¶ added in v0.9.1
type VhostRouter struct {
// contains filtered or unexported fields
}
type VhostRouters ¶ added in v0.9.1
type VhostRouters struct { RouterByDomain map[string][]*VhostRouter // contains filtered or unexported fields }
func NewVhostRouters ¶ added in v0.9.1
func NewVhostRouters() *VhostRouters
func (*VhostRouters) Add ¶ added in v0.9.1
func (r *VhostRouters) Add(domain, location string, l *Listener)
func (*VhostRouters) Del ¶ added in v0.9.1
func (r *VhostRouters) Del(domain, location string)
func (*VhostRouters) Exist ¶ added in v0.9.1
func (r *VhostRouters) Exist(host, path string) (vr *VhostRouter, exist bool)
func (*VhostRouters) Get ¶ added in v0.9.1
func (r *VhostRouters) Get(host, path string) (vr *VhostRouter, exist bool)
Click to show internal directories.
Click to hide internal directories.