Documentation ¶
Index ¶
- func DeriveFilesystemID(virtualStorage string) uuid.UUID
- func NewServer(conf config.Config, conns service.Connections, checks []service.CheckFunc) gitalypb.ServerServiceServer
- type Server
- func (s *Server) ClockSynced(_ context.Context, req *gitalypb.ClockSyncedRequest) (*gitalypb.ClockSyncedResponse, error)
- func (s *Server) DiskStatistics(ctx context.Context, _ *gitalypb.DiskStatisticsRequest) (*gitalypb.DiskStatisticsResponse, error)
- func (s *Server) ReadinessCheck(ctx context.Context, req *gitalypb.ReadinessCheckRequest) (*gitalypb.ReadinessCheckResponse, error)
- func (s *Server) ServerInfo(ctx context.Context, in *gitalypb.ServerInfoRequest) (*gitalypb.ServerInfoResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveFilesystemID ¶
DeriveFilesystemID derives the virtual storage's filesystem ID from its name.
func NewServer ¶
func NewServer(conf config.Config, conns service.Connections, checks []service.CheckFunc) gitalypb.ServerServiceServer
NewServer creates a new instance of a grpc ServerServiceServer
Types ¶
type Server ¶
type Server struct { gitalypb.UnimplementedServerServiceServer // contains filtered or unexported fields }
Server is a ServerService server
func (*Server) ClockSynced ¶
func (s *Server) ClockSynced(_ context.Context, req *gitalypb.ClockSyncedRequest) (*gitalypb.ClockSyncedResponse, error)
ClockSynced returns whether the system clock has an acceptable time drift when compared to NTP service.
func (*Server) DiskStatistics ¶
func (s *Server) DiskStatistics(ctx context.Context, _ *gitalypb.DiskStatisticsRequest) (*gitalypb.DiskStatisticsResponse, error)
DiskStatistics sends DiskStatisticsRequest to all of a praefect server's internal gitaly nodes and aggregates the results into a response
func (*Server) ReadinessCheck ¶ added in v15.3.0
func (s *Server) ReadinessCheck(ctx context.Context, req *gitalypb.ReadinessCheckRequest) (*gitalypb.ReadinessCheckResponse, error)
ReadinessCheck runs the set of the checks to make sure service is in operational state.
func (*Server) ServerInfo ¶
func (s *Server) ServerInfo(ctx context.Context, in *gitalypb.ServerInfoRequest) (*gitalypb.ServerInfoResponse, error)
ServerInfo sends ServerInfoRequest to all of a praefect server's internal gitaly nodes and aggregates the results into a response
Click to show internal directories.
Click to hide internal directories.