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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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