follow

package
v13.2.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

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