manager

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package manager provides core functionality of the load balancer manager for processing messages and managing load balancers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Context                       context.Context
	Logger                        *zap.SugaredLogger
	Subscriber                    eventSubscriber
	DataPlaneClient               dataPlaneAPI
	DataPlaneConnectRetries       int
	DataPlaneConnectRetryInterval time.Duration
	LBClient                      lbAPI
	ManagedLBID                   gidx.PrefixedID
	BaseCfgPath                   string
	// contains filtered or unexported fields
}

Manager contains configuration and client connections

func (*Manager) ProcessMsg

func (m *Manager) ProcessMsg(msg events.Message[events.ChangeMessage]) error

ProcessMsg message handler

func (*Manager) Run

func (m *Manager) Run() error

Run subscribes to a NATS subject and updates the haproxy config via dataplaneapi

Directories

Path Synopsis
Package mock provides mock implementations of the lb haproxy manager
Package mock provides mock implementations of the lb haproxy manager

Jump to

Keyboard shortcuts

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