proxy

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannelLogger

func NewChannelLogger(serviceName string) *channelLogger

func NewProxy

func NewProxy(s Settings) (proxy, error)

Types

type Logger

type Logger interface {
	// contains filtered or unexported methods
}

type Settings

type Settings struct {
	Routes  map[string]string      `json:"routes"`
	Targets map[string]proxyTarget `json:"targets"`
	Port    int                    `json:"port"`
	Default string                 `json:"default"`
}

func NewSettings

func NewSettings(path string) (Settings, error)

Jump to

Keyboard shortcuts

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