proxies

package
v1.2.85 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDeviceId               = errors.NotAcceptable("fns: X-Fns-Device-Id is required")
	ErrInvalidPath            = errors.Warning("fns: invalid path")
	ErrInvalidRequestVersions = errors.Warning("fns: invalid request versions")
)

Functions

Types

type Config

type Config struct {
	transports.Config
}

type Option

type Option func(*Options) error

func Handler

func Handler(handler transports.MuxHandler) Option

func Middleware

func Middleware(middleware transports.Middleware) Option

func Transport

func Transport(transport transports.Transport) Option

type Options

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

type Proxy

type Proxy interface {
	Construct(options ProxyOptions) (err error)
	Port() int
	Run(ctx context.Context) (err error)
	Shutdown(ctx context.Context)
}

func New

func New(options ...Option) (p Proxy, err error)

type ProxyOptions

type ProxyOptions struct {
	Log     logs.Logger
	Config  Config
	Runtime *runtime.Runtime
	Manager clusters.ClusterEndpointsManager
	Dialer  transports.Dialer
}

type Response

type Response struct {
	Status int
	Header transports.Header
	Value  []byte
}

Jump to

Keyboard shortcuts

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