http

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentEndpointData

type CurrentEndpointData struct {
	Forward []byte
}

type HTTPProvider

type HTTPProvider struct {
	Config              HTTPProviderConfig
	Logger              *zap.Logger
	ForwardLookupFilter configtypes.EndpointFilterFunc
	Mutex               sync.RWMutex
	CurrentEndpointData CurrentEndpointData
}

func NewHTTPProvider

func NewHTTPProvider(
	providerConfig HTTPProviderConfig,
	forwardLookupFilter configtypes.EndpointFilterFunc,
) (*HTTPProvider, error)

func (*HTTPProvider) MakeHandleFunc

func (p *HTTPProvider) MakeHandleFunc(getter func(*HTTPProvider) []byte) func(http.ResponseWriter, *http.Request)

func (*HTTPProvider) UpdateEndpoints

func (p *HTTPProvider) UpdateEndpoints(ctx context.Context, endpoints []*endpoint.Endpoint) error

type HTTPProviderConfig

type HTTPProviderConfig struct{}

Jump to

Keyboard shortcuts

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