Versions in this module Expand all Collapse all v0 v0.1.3 Jan 12, 2023 v0.1.2 Jan 5, 2023 Changes in this version + var AgentService_ServiceDesc = grpc.ServiceDesc + var ErrIntOverflow = fmt.Errorf("proto: integer overflow") + var ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") + var File_agent_v1_agent_proto protoreflect.FileDescriptor + var Health_name = map[int32]string + var Health_value = map[string]int32 + var State_name = map[int32]string + var State_value = map[string]int32 + func RegisterAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentServiceClient) error + func RegisterAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AgentServiceServer) error + func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer) + type AgentServiceClient interface + GetTargets func(ctx context.Context, in *GetTargetsRequest, opts ...grpc.CallOption) (*GetTargetsResponse, error) + func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient + type AgentServiceServer interface + GetTargets func(context.Context, *GetTargetsRequest) (*GetTargetsResponse, error) + type GetTargetsRequest struct + State State + func (*GetTargetsRequest) Descriptor() ([]byte, []int) + func (*GetTargetsRequest) ProtoMessage() + func (m *GetTargetsRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *GetTargetsRequest) MarshalToVT(dAtA []byte) (int, error) + func (m *GetTargetsRequest) MarshalVT() (dAtA []byte, err error) + func (m *GetTargetsRequest) SizeVT() (n int) + func (m *GetTargetsRequest) UnmarshalVT(dAtA []byte) error + func (x *GetTargetsRequest) GetState() State + func (x *GetTargetsRequest) ProtoReflect() protoreflect.Message + func (x *GetTargetsRequest) Reset() + func (x *GetTargetsRequest) String() string + type GetTargetsResponse struct + ActiveTargets []*Target + DroppedTargets []*Target + func (*GetTargetsResponse) Descriptor() ([]byte, []int) + func (*GetTargetsResponse) ProtoMessage() + func (m *GetTargetsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *GetTargetsResponse) MarshalToVT(dAtA []byte) (int, error) + func (m *GetTargetsResponse) MarshalVT() (dAtA []byte, err error) + func (m *GetTargetsResponse) SizeVT() (n int) + func (m *GetTargetsResponse) UnmarshalVT(dAtA []byte) error + func (x *GetTargetsResponse) GetActiveTargets() []*Target + func (x *GetTargetsResponse) GetDroppedTargets() []*Target + func (x *GetTargetsResponse) ProtoReflect() protoreflect.Message + func (x *GetTargetsResponse) Reset() + func (x *GetTargetsResponse) String() string + type Health int32 + const Health_HEALTH_DOWN + const Health_HEALTH_UNSPECIFIED + const Health_HEALTH_UP + func (Health) Descriptor() protoreflect.EnumDescriptor + func (Health) EnumDescriptor() ([]byte, []int) + func (Health) Type() protoreflect.EnumType + func (x Health) Enum() *Health + func (x Health) Number() protoreflect.EnumNumber + func (x Health) String() string + type State int32 + const State_STATE_ACTIVE + const State_STATE_DROPPED + const State_STATE_UNSPECIFIED + func (State) Descriptor() protoreflect.EnumDescriptor + func (State) EnumDescriptor() ([]byte, []int) + func (State) Type() protoreflect.EnumType + func (x State) Enum() *State + func (x State) Number() protoreflect.EnumNumber + func (x State) String() string + type Target struct + DiscoveredLabels map[string]string + Health Health + Labels map[string]string + LastError string + LastScrape *timestamppb.Timestamp + LastScrapeDuration *durationpb.Duration + ScrapeInterval *durationpb.Duration + ScrapePool string + ScrapeTimeout *durationpb.Duration + ScrapeUrl string + func (*Target) Descriptor() ([]byte, []int) + func (*Target) ProtoMessage() + func (m *Target) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Target) MarshalToVT(dAtA []byte) (int, error) + func (m *Target) MarshalVT() (dAtA []byte, err error) + func (m *Target) SizeVT() (n int) + func (m *Target) UnmarshalVT(dAtA []byte) error + func (x *Target) GetDiscoveredLabels() map[string]string + func (x *Target) GetHealth() Health + func (x *Target) GetLabels() map[string]string + func (x *Target) GetLastError() string + func (x *Target) GetLastScrape() *timestamppb.Timestamp + func (x *Target) GetLastScrapeDuration() *durationpb.Duration + func (x *Target) GetScrapeInterval() *durationpb.Duration + func (x *Target) GetScrapePool() string + func (x *Target) GetScrapeTimeout() *durationpb.Duration + func (x *Target) GetScrapeUrl() string + func (x *Target) ProtoReflect() protoreflect.Message + func (x *Target) Reset() + func (x *Target) String() string + type UnimplementedAgentServiceServer struct + func (UnimplementedAgentServiceServer) GetTargets(context.Context, *GetTargetsRequest) (*GetTargetsResponse, error) + type UnsafeAgentServiceServer interface