Documentation ¶
Overview ¶
Package loadbalancer provides the internet-facing load balancer that is used to interact with applications.
Index ¶
- Variables
- type LB
- func (lb *LB) Handler(name string, useLatestHost bool, rw http.ResponseWriter, r *http.Request)
- func (lb *LB) NewHostAssignments(assignments map[string][]slicer.Range) error
- func (lb *LB) PrivateServerAddr() string
- func (lb *LB) PublicServerAddr() string
- func (lb *LB) Start(ctx context.Context, publicAddr, privateAddr string) (err error)
- func (lb *LB) Wait() error
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MaxHostAssignments = 10
)
Functions ¶
This section is empty.
Types ¶
type LB ¶
type LB struct {
// contains filtered or unexported fields
}
func (*LB) NewHostAssignments ¶
func (*LB) PrivateServerAddr ¶
PrivateServerAddr returns the address of the running server. Will panic if the server hasn't been started yet.
func (*LB) PublicServerAddr ¶
PublicServerAddr returns the address of the running server. Will panic if the server hasn't been started yet.
Click to show internal directories.
Click to hide internal directories.