proxy

package
v0.0.0-...-04c4af4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithDebug

func WithDebug(debug bool) Option

func WithEnabled

func WithEnabled(enabled bool) Option

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithPort

func WithPort(port int) Option

func WithTargetURL

func WithTargetURL(targetURL string) Option

type Options

type Options struct {
	Enabled   bool
	Debug     bool
	Port      int
	Endpoint  string
	TargetURL string
	Prefix    string
}

func (*Options) MergeIn

func (o *Options) MergeIn(opts ...Option)

type Proxy

type Proxy struct {
	providers.AbstractRunProvider

	Opts *Options
	// contains filtered or unexported fields
}

func New

func New(prefix string, opts ...Option) *Proxy

func (*Proxy) Close

func (p *Proxy) Close() error

func (*Proxy) Init

func (p *Proxy) Init() error

func (*Proxy) Run

func (p *Proxy) Run() error

Jump to

Keyboard shortcuts

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