beaconproxy

package
v0.0.0-...-2578c2a Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconProxy

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

func New

func New(
	ctx context.Context,
	logger *zap.Logger,
	remoteAddr string,
	gateways []Gateway,
) (*BeaconProxy, error)

func (*BeaconProxy) Run

func (b *BeaconProxy) Run(ctx context.Context) error

type Gateway

type Gateway struct {
	Name        string
	Port        int
	Interceptor intercept.Interceptor
}

type GatewayKey

type GatewayKey struct{}

GatewayKey is the key used to store the gateway in the request context.

type LoggerKey

type LoggerKey struct{}

LoggerKey is the key used to store the logger in the request context.

type StartTimeKey

type StartTimeKey struct{}

StartTimeKey is the key used to store the start time in the request context.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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