loadbalancer

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package loadbalancer provides a portable load balancer API with cross-cutting concerns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LB

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

func NewLB

func NewLB(d driver.LoadBalancer, opts ...Option) *LB

func (*LB) CreateListener

func (lb *LB) CreateListener(ctx context.Context, config driver.ListenerConfig) (*driver.ListenerInfo, error)

func (*LB) CreateLoadBalancer

func (lb *LB) CreateLoadBalancer(ctx context.Context, config driver.LBConfig) (*driver.LBInfo, error)

func (*LB) CreateRule added in v1.3.1

func (lb *LB) CreateRule(ctx context.Context, config driver.RuleConfig) (*driver.RuleInfo, error)

func (*LB) CreateTargetGroup

func (lb *LB) CreateTargetGroup(ctx context.Context, config driver.TargetGroupConfig) (*driver.TargetGroupInfo, error)

func (*LB) DeleteListener

func (lb *LB) DeleteListener(ctx context.Context, arn string) error

func (*LB) DeleteLoadBalancer

func (lb *LB) DeleteLoadBalancer(ctx context.Context, arn string) error

func (*LB) DeleteRule added in v1.3.1

func (lb *LB) DeleteRule(ctx context.Context, ruleARN string) error

func (*LB) DeleteTargetGroup

func (lb *LB) DeleteTargetGroup(ctx context.Context, arn string) error

func (*LB) DeregisterTargets

func (lb *LB) DeregisterTargets(ctx context.Context, tgARN string, targets []driver.Target) error

func (*LB) DescribeListeners

func (lb *LB) DescribeListeners(ctx context.Context, lbARN string) ([]driver.ListenerInfo, error)

func (*LB) DescribeLoadBalancers

func (lb *LB) DescribeLoadBalancers(ctx context.Context, arns []string) ([]driver.LBInfo, error)

func (*LB) DescribeRules added in v1.3.1

func (lb *LB) DescribeRules(ctx context.Context, listenerARN string) ([]driver.RuleInfo, error)

func (*LB) DescribeTargetGroups

func (lb *LB) DescribeTargetGroups(ctx context.Context, arns []string) ([]driver.TargetGroupInfo, error)

func (*LB) DescribeTargetHealth

func (lb *LB) DescribeTargetHealth(ctx context.Context, tgARN string) ([]driver.TargetHealth, error)

func (*LB) GetLBAttributes added in v1.3.1

func (lb *LB) GetLBAttributes(ctx context.Context, lbARN string) (*driver.LBAttributes, error)

func (*LB) ModifyListener added in v1.3.1

func (lb *LB) ModifyListener(ctx context.Context, input driver.ModifyListenerInput) error

func (*LB) PutLBAttributes added in v1.3.1

func (lb *LB) PutLBAttributes(ctx context.Context, lbARN string, attrs driver.LBAttributes) error

func (*LB) RegisterTargets

func (lb *LB) RegisterTargets(ctx context.Context, tgARN string, targets []driver.Target) error

func (*LB) SetTargetHealth

func (lb *LB) SetTargetHealth(ctx context.Context, tgARN, targetID, state string) error

type Option

type Option func(*LB)

func WithErrorInjection

func WithErrorInjection(i *inject.Injector) Option

func WithLatency

func WithLatency(d time.Duration) Option

func WithMetrics

func WithMetrics(m *metrics.Collector) Option

func WithRateLimiter

func WithRateLimiter(l *ratelimit.Limiter) Option

func WithRecorder

func WithRecorder(r *recorder.Recorder) Option

Directories

Path Synopsis
Package driver defines the interface for load balancer service implementations.
Package driver defines the interface for load balancer service implementations.

Jump to

Keyboard shortcuts

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