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

package internal

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

Index

Package Files

internal.go

func PeriodicallyDo Uses

func PeriodicallyDo(ctx context.Context, period time.Duration, f func(context.Context, time.Time))

PeriodicallyDo calls f every period until the provided context is cancelled.

func WaitOrStop Uses

func WaitOrStop(ctx context.Context, cmd *exec.Cmd, interrupt os.Signal, killDelay time.Duration) error

WaitOrStop waits for the already-started command cmd by calling its Wait method.

If cmd does not return before ctx is done, WaitOrStop sends it the given interrupt signal. If killDelay is positive, WaitOrStop waits that additional period for Wait to return before sending os.Kill.

Directories

PathSynopsis
gcpdialPackage gcpdial monitors VM instance groups to let frontends dial them directly without going through an internal load balancer.
gcpdial/gcpdialtoolThe gcpdialtool command is an interactive validation tool for the gcpdial packge.

Package internal imports 4 packages (graph) and is imported by 3 packages. Updated 2020-07-23. Refresh now. Tools for package owners.