http

package
v1.55.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostAddress

type HostAddress = string

type HttpProxyService

type HttpProxyService struct {
	ServiceName string
	// contains filtered or unexported fields
}

type LocalHttpProxy

type LocalHttpProxy struct {
	// contains filtered or unexported fields
}

func NewLocalHttpProxyService

func NewLocalHttpProxyService() *LocalHttpProxy

func (*LocalHttpProxy) GetState

func (h *LocalHttpProxy) GetState() State

func (*LocalHttpProxy) HandleRequest

func (h *LocalHttpProxy) HandleRequest(request *fasthttp.Request) (*fasthttp.Response, error)

FIXME: Implement http server identification

func (*LocalHttpProxy) Proxy

func (h *LocalHttpProxy) Proxy(stream httppb.Http_ProxyServer) error

func (*LocalHttpProxy) SubscribeToState

func (l *LocalHttpProxy) SubscribeToState(fn func(State))

func (*LocalHttpProxy) WorkerCount

func (h *LocalHttpProxy) WorkerCount() int

type State

type State = map[HostAddress]*HttpProxyService

Jump to

Keyboard shortcuts

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