proxy

package
v0.0.0-...-64e30f5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEntry

func ValidateEntry(m *types.RawEntry) (any, E.NestedError)

Types

type ReverseProxyEntry

type ReverseProxyEntry struct {
	Alias        T.Alias             `json:"alias"`
	Scheme       T.Scheme            `json:"scheme"`
	URL          net.URL             `json:"url"`
	NoTLSVerify  bool                `json:"no_tls_verify"`
	PathPatterns T.PathPatterns      `json:"path_patterns"`
	LoadBalance  loadbalancer.Config `json:"load_balance"`
	Middlewares  D.NestedLabelMap    `json:"middlewares"`

	/* Docker only */
	IdleTimeout      time.Duration `json:"idle_timeout"`
	WakeTimeout      time.Duration `json:"wake_timeout"`
	StopMethod       T.StopMethod  `json:"stop_method"`
	StopTimeout      int           `json:"stop_timeout"`
	StopSignal       T.Signal      `json:"stop_signal"`
	DockerHost       string        `json:"docker_host"`
	ContainerName    string        `json:"container_name"`
	ContainerID      string        `json:"container_id"`
	ContainerRunning bool          `json:"container_running"`
}

func (*ReverseProxyEntry) IsDocker

func (rp *ReverseProxyEntry) IsDocker() bool

func (*ReverseProxyEntry) IsZeroPort

func (rp *ReverseProxyEntry) IsZeroPort() bool

func (*ReverseProxyEntry) UseIdleWatcher

func (rp *ReverseProxyEntry) UseIdleWatcher() bool

type StreamEntry

type StreamEntry struct {
	Alias  T.Alias        `json:"alias"`
	Scheme T.StreamScheme `json:"scheme"`
	Host   T.Host         `json:"host"`
	Port   T.StreamPort   `json:"port"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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