Documentation ¶
Index ¶
- Variables
- func Proxy(recvSend func() error) (err error)
- func SetHeaders(ctx context.Context, locator storage.Locator, repo *gitalypb.Repository) (context.Context, error)
- type CloseSender
- type Server
- func (s *Server) BlobServiceClient(ctx context.Context) (gitalypb.BlobServiceClient, error)
- func (s *Server) CommitServiceClient(ctx context.Context) (gitalypb.CommitServiceClient, error)
- func (s *Server) DiffServiceClient(ctx context.Context) (gitalypb.DiffServiceClient, error)
- func (s *Server) OperationServiceClient(ctx context.Context) (gitalypb.OperationServiceClient, error)
- func (s *Server) RefServiceClient(ctx context.Context) (gitalypb.RefServiceClient, error)
- func (s *Server) RemoteServiceClient(ctx context.Context) (gitalypb.RemoteServiceClient, error)
- func (s *Server) RepositoryServiceClient(ctx context.Context) (gitalypb.RepositoryServiceClient, error)
- func (s *Server) Start() error
- func (s *Server) Stop()
- func (s *Server) WikiServiceClient(ctx context.Context) (gitalypb.WikiServiceClient, error)
Constants ¶
This section is empty.
Variables ¶
var ConnectTimeout = 40 * time.Second
ConnectTimeout is the timeout for establishing a connection to the gitaly-ruby process.
Functions ¶
Types ¶
type CloseSender ¶
type CloseSender interface {
CloseSend() error
}
CloseSender captures the CloseSend method from gRPC streams.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a gitaly-ruby helper process.
func New ¶
func New(cfg config.Cfg, gitCmdFactory git.CommandFactory) *Server
New returns a new instance of the server.
func (*Server) BlobServiceClient ¶
BlobServiceClient returns a BlobServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.
func (*Server) CommitServiceClient ¶
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 ¶
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 ¶
func (s *Server) OperationServiceClient(ctx context.Context) (gitalypb.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 ¶
RefServiceClient returns a RefServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.
func (*Server) RemoteServiceClient ¶
RemoteServiceClient returns a RemoteServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.
func (*Server) RepositoryServiceClient ¶
func (s *Server) RepositoryServiceClient(ctx context.Context) (gitalypb.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 ¶
func (s *Server) Stop()
Stop shuts down the gitaly-ruby helper process and cleans up resources.
func (*Server) WikiServiceClient ¶
WikiServiceClient returns a WikiServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.