package proxy

import "go.dedis.ch/dela/mino/proxy"

Index

Types

type Proxy

type Proxy interface {
	// Listen starts the proxy server. This call is assumed to be blocking
	Listen()

	// Stop stops the proxy server
	Stop()

	// GetAddr returns the connection's address. This is useful in the case one
	// use the default :0 port, which makes the system use a random free port.
	// The returned value can be nil if the server is not listening and the
	// connection hasn't been created.
	GetAddr() net.Addr

	// RegisterHandler registers a new handler
	RegisterHandler(path string, handler func(http.ResponseWriter, *http.Request))
}

Proxy defines the primitives to implement an http client that handles client side requests

Source Files

mod.go

Directories

PathSynopsis
mino/proxy/http
mino/proxy/http/controller
Version
v0.1.0 (latest)
Published
Apr 10, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
1 month ago

Tools for package owners.