upstream

package
v0.0.0-...-fa60ae2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

type HttpTestUpstream struct {
	Name     string
	Address  string
	Handlers map[string]Handler
}

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 LocationsDirectives = map[string][]string

type LocationsMarkers

type LocationsMarkers = map[string]map[string]string

type TcpHandler

type TcpHandler func(conn net.Conn)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL