config

package
v0.0.0-...-9b08f2f Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPrefix

type AddPrefix struct {
	Prefix string
}

type Config

type Config struct {
	Proxies map[string]*Proxy
	Log     Log
}

func Read

func Read() (*Config, error)

type EndpointFilter

type EndpointFilter struct {
	Allowlist bool
	Endpoints []string
}

type Entrypoint

type Entrypoint struct {
	Type    string
	Address string
}

type IPFilter

type IPFilter struct {
	Allowlist   bool
	Addresses   []string
	ExcludedIPs []string
	Depth       int
	Header      string
}

type Log

type Log struct {
	Level    string
	FilePath string
}

type MethodFilter

type MethodFilter struct {
	Allowlist bool
	Methods   []string
}

type Middleware

type Middleware struct {
	MethodFilter   *MethodFilter
	EndpointFilter *EndpointFilter
	ReplacePath    *ReplacePath
	AddPrefix      *AddPrefix
	IPFilter       *IPFilter
	StripPrefix    *StripPrefix
}

type Proxy

type Proxy struct {
	Entrypoint *Entrypoint
	Socket     string
	Middleware map[string]*Middleware
}

type ReplacePath

type ReplacePath struct {
	Regex       string
	Replacement string
}

type Socket

type Socket struct {
	Path string
}

type StripPrefix

type StripPrefix struct {
	Prefix []string
}

Jump to

Keyboard shortcuts

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