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 ¶
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.