loadbalancer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package loadbalancer provides functions and types for inspecting loadbalancers

Index

Constants

View Source
const (
	LBPrefix = "loadbal"

	// TypeLB indicates that the subject of a message is a loadbalancer
	TypeLB = 1
	// TypeAssocLB indicates that the loadbalancer was found in associated subjects
	TypeAssocLB = 2
	// TypeNoLB indicates that a loadbalancer was not found in the message
	TypeNoLB = 0
)

Variables

View Source
var ErrIgnoreEvent = errors.New("ignore event")

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer struct {
	LoadBalancerID gidx.PrefixedID
	LbData         *lbapi.LoadBalancer
	LbType         int
}

func NewLoadBalancer

func NewLoadBalancer(ctx context.Context, logger *zap.SugaredLogger, client *lbapi.Client, subj gidx.PrefixedID, adds []gidx.PrefixedID) (*LoadBalancer, error)

NewLoadBalancer will create a new loadbalancer object

Jump to

Keyboard shortcuts

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