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
Click to show internal directories.
Click to hide internal directories.