loadbalancer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 4 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

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer struct {
	LoadBalancerID gidx.PrefixedID
	LbData         *lbapi.GetLoadBalancer
	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