proxyutil

package
v0.1.31 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package proxyutil handles parsing logic for proxymw configs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile added in v0.1.14

func ParseFile[T any](configFile string) (cfg T, err error)

func ParseProxyConfigFile added in v0.1.14

func ParseProxyConfigFile(configFile string) (proxymw.Config, error)

Types

type Config

type Config struct {
	InsecureListenAddress string         `yaml:"insecure_listen_addr"`
	InternalListenAddress string         `yaml:"internal_listen_addr"`
	Upstream              string         `yaml:"upstream"`
	ProxyPaths            []string       `yaml:"proxy_paths"`
	PassthroughPaths      []string       `yaml:"passthrough_paths"`
	ProxyConfig           proxymw.Config `yaml:"proxymw_config"`
	ReadTimeout           time.Duration  `yaml:"proxy_read_timeout"`
	WriteTimeout          time.Duration  `yaml:"proxy_write_timeout"`
}

func ParseConfigEnvironment added in v0.1.14

func ParseConfigEnvironment() (Config, error)

func ParseConfigFile added in v0.1.14

func ParseConfigFile(configFile string) (Config, error)

func ParseConfigFlags added in v0.1.14

func ParseConfigFlags() (Config, error)

type Float64Slice

type Float64Slice []float64

func (*Float64Slice) Set

func (f *Float64Slice) Set(value string) error

func (*Float64Slice) String

func (f *Float64Slice) String() string

type StringSlice

type StringSlice []string

func (*StringSlice) Set

func (s *StringSlice) Set(value string) error

func (*StringSlice) String

func (s *StringSlice) String() string

Directories

Path Synopsis
Package proxyhttp provides an HTTP mux handler for serving requests using httputil.ReverseProxy
Package proxyhttp provides an HTTP mux handler for serving requests using httputil.ReverseProxy

Jump to

Keyboard shortcuts

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