util

package
v0.0.0-...-60f4931 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(addr, certPEM, serverNameOverride string) (*grpc.ClientConn, error)

func ReleaseUpLock

func ReleaseUpLock()

func TakeUpLock

func TakeUpLock() error

func UpRunning

func UpRunning() bool

Types

type ProgressPrinter

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

ProgressPrinter prints to the output every 2 seconds so that the user knows the application isn't stalled.

func NewProgressPrinter

func NewProgressPrinter(out io.Writer, msg string) ProgressPrinter

NewProgressPrinter creates a new ProgressPrinter.

func (ProgressPrinter) Run

func (pp ProgressPrinter) Run()

Run starts printing to the output.

func (ProgressPrinter) Stop

func (pp ProgressPrinter) Stop()

Stop stops printing to the output. After it returns, ProgressPrinter won't print anything more.

Jump to

Keyboard shortcuts

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