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 ¶
func GetHttpsHostname ¶
func HttpAuthFunc ¶
Types ¶
type ByLocation ¶
type ByLocation []*VhostRouter
sort by location
func (ByLocation) Len ¶
func (a ByLocation) Len() int
func (ByLocation) Less ¶
func (a ByLocation) Less(i, j int) bool
func (ByLocation) Swap ¶
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 ¶
type VhostRouter struct {
// contains filtered or unexported fields
}
type VhostRouters ¶
type VhostRouters struct { RouterByDomain map[string][]*VhostRouter // contains filtered or unexported fields }
func NewVhostRouters ¶
func NewVhostRouters() *VhostRouters
func (*VhostRouters) Add ¶
func (r *VhostRouters) Add(domain, location string, l *Listener)
func (*VhostRouters) Del ¶
func (r *VhostRouters) Del(domain, location string)
func (*VhostRouters) Exist ¶
func (r *VhostRouters) Exist(host, path string) (vr *VhostRouter, exist bool)
func (*VhostRouters) Get ¶
func (r *VhostRouters) Get(host, path string) (vr *VhostRouter, exist bool)
Click to show internal directories.
Click to hide internal directories.