follow

package
v13.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package follow implements remote connections to other plz processes. Specifically it implements a gRPC server and client that can stream build events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectClient

func ConnectClient(state *core.BuildState, url string, retries int, delay time.Duration) bool

ConnectClient connects a gRPC client to the given URL. It returns once the client has received that the remote build finished, returning true if that build was successful. It dies on any errors.

func InitialiseServer

func InitialiseServer(state *core.BuildState, port int) func()

InitialiseServer sets up the gRPC server on the given port. It dies on any errors. The returned function should be called to shut down once the server is no longer required.

func UpdateResources

func UpdateResources(state *core.BuildState)

UpdateResources continuously updates the resources that we store on the BuildState object. It should probably be run in a goroutine since it never returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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