routeman

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNFTManagerMissing      = errors.New("nft manager is missing.")
	ErrConfigMissing          = errors.New("config is missing.")
	ErrCGroupEventChanMissing = errors.New("cgroup event channel is missing.")
)

Functions

This section is empty.

Types

type Opt

type Opt func(m *RouteManager) (ret *RouteManager, err error)

func WithCGroupEventChan

func WithCGroupEventChan(ch <-chan types.CGroupEvents) Opt

func WithConfig

func WithConfig(c *config.Config) Opt

func WithLogger

func WithLogger(log *zap.SugaredLogger) Opt

func WithNFTMan

func WithNFTMan(t interfaces.NFTManager) Opt

type RouteManager

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

func New

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

func (*RouteManager) RunRouteManager

func (m *RouteManager) RunRouteManager(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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