Documentation
¶
Overview ¶
Package grpc provides functionality for the gRPC server.
Index ¶
- type FODCService
- func (s *FODCService) HasClusterStateStream(agentID string) bool
- func (s *FODCService) HasLifecycleStream(agentID string) bool
- func (s *FODCService) RegisterAgent(stream fodcv1.FODCService_RegisterAgentServer) error
- func (s *FODCService) RequestClusterData(agentID string) error
- func (s *FODCService) RequestLifecycleData(agentID string) error
- func (s *FODCService) RequestMetrics(agentID string, startTime, endTime *time.Time) error
- func (s *FODCService) StreamClusterTopology(stream fodcv1.FODCService_StreamClusterTopologyServer) error
- func (s *FODCService) StreamLifecycle(stream fodcv1.FODCService_StreamLifecycleServer) error
- func (s *FODCService) StreamMetrics(stream fodcv1.FODCService_StreamMetricsServer) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FODCService ¶
type FODCService struct {
fodcv1.UnimplementedFODCServiceServer
// contains filtered or unexported fields
}
FODCService implements the FODC gRPC service.
func NewFODCService ¶
func NewFODCService( registry *registry.AgentRegistry, metricsAggregator *metrics.Aggregator, clusterStateManager *cluster.Manager, lifecycleManager *lifecycle.Manager, logger *logger.Logger, heartbeatInterval time.Duration, ) *FODCService
NewFODCService creates a new FODCService instance.
func (*FODCService) HasClusterStateStream ¶
func (s *FODCService) HasClusterStateStream(agentID string) bool
HasClusterStateStream reports whether the given agent currently has a cluster topology stream.
func (*FODCService) HasLifecycleStream ¶ added in v0.10.1
func (s *FODCService) HasLifecycleStream(agentID string) bool
HasLifecycleStream reports whether the given agent currently has a lifecycle stream.
func (*FODCService) RegisterAgent ¶
func (s *FODCService) RegisterAgent(stream fodcv1.FODCService_RegisterAgentServer) error
RegisterAgent handles bi-directional agent registration stream.
func (*FODCService) RequestClusterData ¶
func (s *FODCService) RequestClusterData(agentID string) error
RequestClusterData requests cluster data from an agent via the cluster state stream.
func (*FODCService) RequestLifecycleData ¶ added in v0.10.1
func (s *FODCService) RequestLifecycleData(agentID string) error
RequestLifecycleData requests lifecycle data from an agent via the lifecycle stream.
func (*FODCService) RequestMetrics ¶
func (s *FODCService) RequestMetrics(agentID string, startTime, endTime *time.Time) error
RequestMetrics requests metrics from an agent via the metrics stream.
func (*FODCService) StreamClusterTopology ¶
func (s *FODCService) StreamClusterTopology(stream fodcv1.FODCService_StreamClusterTopologyServer) error
StreamClusterTopology handles bi-directional cluster topology streaming.
func (*FODCService) StreamLifecycle ¶ added in v0.10.1
func (s *FODCService) StreamLifecycle(stream fodcv1.FODCService_StreamLifecycleServer) error
StreamLifecycle handles bi-directional lifecycle data streaming.
func (*FODCService) StreamMetrics ¶
func (s *FODCService) StreamMetrics(stream fodcv1.FODCService_StreamMetricsServer) error
StreamMetrics handles bi-directional metrics streaming.