rubyserver

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ConnectTimeout is the timeout for establishing a connection to the gitaly-ruby process.
	ConnectTimeout = 20 * time.Second
)

Functions

func Proxy added in v0.31.0

func Proxy(recvSend func() error) (err error)

Proxy calls recvSend until it receives an error. The error is returned to the caller unless it is io.EOF.

func SetHeaders

func SetHeaders(ctx context.Context, repo *pb.Repository) (context.Context, error)

SetHeaders adds headers that tell gitaly-ruby the full path to the repository.

Types

type Server added in v0.34.0

type Server struct {
	*supervisor.Process
	// contains filtered or unexported fields
}

Server represents a gitaly-ruby helper process.

func Start

func Start() (*Server, error)

Start spawns the Ruby server.

func (*Server) CommitServiceClient added in v0.39.0

func (s *Server) CommitServiceClient(ctx context.Context) (pb.CommitServiceClient, error)

CommitServiceClient returns a CommitServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.

func (*Server) DiffServiceClient added in v0.39.0

func (s *Server) DiffServiceClient(ctx context.Context) (pb.DiffServiceClient, error)

DiffServiceClient returns a DiffServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.

func (*Server) OperationServiceClient added in v0.41.0

func (s *Server) OperationServiceClient(ctx context.Context) (pb.OperationServiceClient, error)

OperationServiceClient returns a OperationServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.

func (*Server) RefServiceClient added in v0.39.0

func (s *Server) RefServiceClient(ctx context.Context) (pb.RefServiceClient, error)

RefServiceClient returns a RefServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.

func (*Server) RepositoryServiceClient added in v0.41.0

func (s *Server) RepositoryServiceClient(ctx context.Context) (pb.RepositoryServiceClient, error)

RepositoryServiceClient returns a RefServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.

func (*Server) Stop added in v0.34.0

func (s *Server) Stop()

Stop shuts down the gitaly-ruby helper process and cleans up resources.

Jump to

Keyboard shortcuts

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