Documentation ¶
Overview ¶
Package praefect is a Gitaly reverse proxy for transparently routing gRPC calls to a set of Gitaly services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
Coordinator takes care of directing client requests to the appropriate downstream server. The coordinator is thread safe; concurrent calls to register nodes are safe.
func (*Coordinator) RegisterNode ¶
func (c *Coordinator) RegisterNode(storageLoc, listenAddr string) error
RegisterNode will direct traffic to the supplied downstream connection when the storage location is encountered.
type Logger ¶
type Logger interface {
Debugf(format string, args ...interface{})
}
Logger is a simple interface that allows loggers to be dependency injected into the praefect server
type Server ¶
type Server struct { *Coordinator // contains filtered or unexported fields }
Server is a praefect server
func NewServer ¶
func NewServer(grpcOpts []grpc.ServerOption, l Logger) *Server
NewServer returns an initialized praefect gPRC proxy server configured with the provided gRPC server options
Click to show internal directories.
Click to hide internal directories.