Documentation
¶
Overview ¶
Package loadbalancer provides a portable load balancer API with cross-cutting concerns.
Index ¶
- type LB
- func (lb *LB) CreateListener(ctx context.Context, config driver.ListenerConfig) (*driver.ListenerInfo, error)
- func (lb *LB) CreateLoadBalancer(ctx context.Context, config driver.LBConfig) (*driver.LBInfo, error)
- func (lb *LB) CreateTargetGroup(ctx context.Context, config driver.TargetGroupConfig) (*driver.TargetGroupInfo, error)
- func (lb *LB) DeleteListener(ctx context.Context, arn string) error
- func (lb *LB) DeleteLoadBalancer(ctx context.Context, arn string) error
- func (lb *LB) DeleteTargetGroup(ctx context.Context, arn string) error
- func (lb *LB) DeregisterTargets(ctx context.Context, tgARN string, targets []driver.Target) error
- func (lb *LB) DescribeListeners(ctx context.Context, lbARN string) ([]driver.ListenerInfo, error)
- func (lb *LB) DescribeLoadBalancers(ctx context.Context, arns []string) ([]driver.LBInfo, error)
- func (lb *LB) DescribeTargetGroups(ctx context.Context, arns []string) ([]driver.TargetGroupInfo, error)
- func (lb *LB) DescribeTargetHealth(ctx context.Context, tgARN string) ([]driver.TargetHealth, error)
- func (lb *LB) RegisterTargets(ctx context.Context, tgARN string, targets []driver.Target) error
- func (lb *LB) SetTargetHealth(ctx context.Context, tgARN, targetID, state string) error
- type Option
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 (*LB) CreateListener ¶
func (lb *LB) CreateListener(ctx context.Context, config driver.ListenerConfig) (*driver.ListenerInfo, error)
func (*LB) CreateLoadBalancer ¶
func (*LB) CreateTargetGroup ¶
func (lb *LB) CreateTargetGroup(ctx context.Context, config driver.TargetGroupConfig) (*driver.TargetGroupInfo, error)
func (*LB) DeleteLoadBalancer ¶
func (*LB) DeleteTargetGroup ¶
func (*LB) DeregisterTargets ¶
func (*LB) DescribeListeners ¶
func (*LB) DescribeLoadBalancers ¶
func (*LB) DescribeTargetGroups ¶
func (*LB) DescribeTargetHealth ¶
func (*LB) RegisterTargets ¶
type Option ¶
type Option func(*LB)
func WithErrorInjection ¶
func WithLatency ¶
func WithMetrics ¶
func WithRateLimiter ¶
func WithRecorder ¶
Click to show internal directories.
Click to hide internal directories.