nutsnode

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: EUPL-1.2 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogrusLevel added in v0.4.0

func GetLogrusLevel(level slog.Level) string

Uses <= comparisons to handle custom log levels (e.g. trace as LevelDebug-4).

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"`
	TracingConfig TracingConfig
}

type ProxyRequestRewriter

type ProxyRequestRewriter func(request *httputil.ProxyRequest)

func RemovePrefixRewriter

func RemovePrefixRewriter(prefix string) ProxyRequestRewriter

type TracingConfig added in v0.4.0

type TracingConfig struct {
	OTLPEndpoint string
	Insecure     bool
}

Jump to

Keyboard shortcuts

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