playground: golang.org/x/playground/internal/gcpdial Index | Files | Directories

package gcpdial

import "golang.org/x/playground/internal/gcpdial"

Package gcpdial monitors VM instance groups to let frontends dial them directly without going through an internal load balancer.

Index

Package Files

gcpdial.go

type Dialer Uses

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

func NewRegionInstanceGroupDialer Uses

func NewRegionInstanceGroupDialer(project, region, group string) *Dialer

NewRegionInstanceGroupDialer returns a new dialer that dials named regional instance group in the provided project and region.

It begins polling immediately, and there's no way to stop it. (Until we need one)

func (*Dialer) PickIP Uses

func (d *Dialer) PickIP(ctx context.Context) (ip string, err error)

PickIP returns a randomly healthy IP, waiting until one is available, or until ctx expires.

Directories

PathSynopsis
gcpdialtoolThe gcpdialtool command is an interactive validation tool for the gcpdial packge.

Package gcpdial imports 11 packages (graph) and is imported by 3 packages. Updated 2020-05-12. Refresh now. Tools for package owners.