Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Handler http.HandlerFunc
}
type HttpTestUpstream ¶
func (*HttpTestUpstream) AsServer ¶
func (u *HttpTestUpstream) AsServer(address string, serverMarkers map[string]string, locationsMarkers LocationsMarkers, locationsDirectives LocationsDirectives) conf.Server
func (*HttpTestUpstream) AsUpstream ¶
func (u *HttpTestUpstream) AsUpstream() conf.Upstream
func (*HttpTestUpstream) Serve ¶
func (u *HttpTestUpstream) Serve(t *testing.T)
type LocationsDirectives ¶
type LocationsMarkers ¶
type TcpHandler ¶
type TcpTestUpstream ¶
type TcpTestUpstream struct {
Name string
Address string
Handler TcpHandler
}
func (*TcpTestUpstream) AsServer ¶
func (u *TcpTestUpstream) AsServer(address string, serverMarkers map[string]string) conf.StreamServer
func (*TcpTestUpstream) AsUpstream ¶
func (u *TcpTestUpstream) AsUpstream() conf.Upstream
func (*TcpTestUpstream) Serve ¶
func (u *TcpTestUpstream) Serve(t *testing.T)
type UdpHandler ¶
type UdpHandler func(net.PacketConn, net.Addr, []byte)
type UdpTestUpstream ¶
type UdpTestUpstream struct {
Name string
Address string
Handler UdpHandler
}
func (*UdpTestUpstream) AsServer ¶
func (u *UdpTestUpstream) AsServer(address string, serverMarkers map[string]string, directives []string) conf.StreamServer
func (*UdpTestUpstream) AsUpstream ¶
func (u *UdpTestUpstream) AsUpstream() conf.Upstream
func (*UdpTestUpstream) Serve ¶
func (u *UdpTestUpstream) Serve(t *testing.T)
Click to show internal directories.
Click to hide internal directories.