grpc

package
v0.0.0-...-e6eacfd Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServer

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

GrpcServer represents an object that responds to gRPC calls

func NewGRPCServer

NewGRPCServer returns a new instance of the gRPC server

func (*GrpcServer) CancelBuild

CancelBuild stops a currently-running build

func (*GrpcServer) GetBuildStatus

func (gr *GrpcServer) GetBuildStatus(ctx context.Context, req *lib.BuildStatusRequest) (*lib.BuildStatusResponse, error)

func (*GrpcServer) ListenRPC

func (gr *GrpcServer) ListenRPC(addr string, port uint) error

ListenRPC starts the RPC listener on addr:port

func (*GrpcServer) MonitorBuild

MonitorBuild streams events from a specified build

func (*GrpcServer) Shutdown

func (gr *GrpcServer) Shutdown()

Shutdown gracefully stops the GRPC server, signals all workers and builds to stop and then waits for goroutines to finish

func (*GrpcServer) StartBuild

func (gr *GrpcServer) StartBuild(ctx context.Context, req *lib.BuildRequest) (*lib.BuildRequestResponse, error)

gRPC handlers

func (*GrpcServer) WorkerChan

func (gr *GrpcServer) WorkerChan() chan *workerRequest

WorkerChan returns the worker chan

Jump to

Keyboard shortcuts

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