Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
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) 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.
Click to show internal directories.
Click to hide internal directories.