nutsnode

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Component, error)

func (Component) RegisterHttpHandlers

func (c Component) RegisterHttpHandlers(publicMux *http.ServeMux, internalMux *http.ServeMux)

func (*Component) Start

func (c *Component) Start() error

func (Component) Stop

func (c Component) Stop(_ context.Context) error

type Config

type Config struct {
	Enabled bool `koanf:"enabled"`
}

type ProxyRequestRewriter

type ProxyRequestRewriter func(request *httputil.ProxyRequest)

func RemovePrefixRewriter

func RemovePrefixRewriter(prefix string) ProxyRequestRewriter

Jump to

Keyboard shortcuts

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