cgtproxy

package
v0.1.8-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigMissing        = errors.New("config is missing.")
	ErrLoggerMissing        = errors.New("logger is missing.")
	ErrCGroupMonitorMissing = errors.New("cgroup monitor is missing.")
	ErrRouteManagerMissing  = errors.New("route manager is missing.")
)

Functions

This section is empty.

Types

type CGTProxy

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

func New

func New(opts ...Opt) (ret *CGTProxy, err error)

func (*CGTProxy) RunCGTProxy

func (c *CGTProxy) RunCGTProxy(ctx context.Context) (err error)

type Opt

type Opt = (func(*CGTProxy) (*CGTProxy, error))

func WithCGroupMonitor

func WithCGroupMonitor(mon interfaces.CGroupMonitor) Opt

func WithConfig

func WithConfig(cfg *config.Config) Opt

func WithLogger

func WithLogger(log *zap.SugaredLogger) Opt

func WithRouteManager

func WithRouteManager(rman interfaces.RouteManager) Opt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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