Documentation
¶
Index ¶
- func CheckServicesStatus(services []string, command CmdExecutor) (int, int, []string)
- func ProbeEndpoint(ctx context.Context, endpoint string) error
- type CmdExecutor
- type StatusService
- func (s *StatusService) GatherStatus(confs *config.NodeAgentConfig) (string, bool)
- func (s *StatusService) GetStatusInterval(ctx context.Context, in *pb.GetStatusIntervalRequest) (*pb.GetStatusIntervalResponse, error)
- func (s *StatusService) PollNetworkEndpoints(ctx context.Context, endpoints []config.NetworkEndpoint)
- func (s *StatusService) ReportStatus(ctx context.Context, in *pb.ReportStatusRequest) (*pb.ReportStatusResponse, error)
- type StatusValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckServicesStatus ¶
func CheckServicesStatus(services []string, command CmdExecutor) (int, int, []string)
CheckServicesStatus checks the status of the services, custom CmdExecutor is used to enhance testability
Types ¶
type StatusService ¶
type StatusService struct { pb.UnimplementedStatusServiceServer // contains filtered or unexported fields }
func InitStatusService ¶
func InitStatusService(confs *config.NodeAgentConfig) (*grpc.Server, *StatusService)
func (*StatusService) GatherStatus ¶
func (s *StatusService) GatherStatus(confs *config.NodeAgentConfig) (string, bool)
func (*StatusService) GetStatusInterval ¶
func (s *StatusService) GetStatusInterval(ctx context.Context, in *pb.GetStatusIntervalRequest) (*pb.GetStatusIntervalResponse, error)
func (*StatusService) PollNetworkEndpoints ¶
func (s *StatusService) PollNetworkEndpoints(ctx context.Context, endpoints []config.NetworkEndpoint)
PollNetworkEndpoints polls the given endpoints and logs their status
func (*StatusService) ReportStatus ¶
func (s *StatusService) ReportStatus(ctx context.Context, in *pb.ReportStatusRequest) (*pb.ReportStatusResponse, error)
type StatusValue ¶
Click to show internal directories.
Click to hide internal directories.