Documentation ¶
Index ¶
- Variables
- func RegisterCloudproberServer(s grpc.ServiceRegistrar, srv CloudproberServer)
- type AddProbeRequest
- type AddProbeResponse
- type CloudproberClient
- type CloudproberServer
- type ListProbesRequest
- type ListProbesResponse
- func (*ListProbesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProbesResponse) GetProbe() []*Probe
- func (*ListProbesResponse) ProtoMessage()
- func (x *ListProbesResponse) ProtoReflect() protoreflect.Message
- func (x *ListProbesResponse) Reset()
- func (x *ListProbesResponse) String() string
- type Probe
- type RemoveProbeRequest
- func (*RemoveProbeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveProbeRequest) GetProbeName() string
- func (*RemoveProbeRequest) ProtoMessage()
- func (x *RemoveProbeRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveProbeRequest) Reset()
- func (x *RemoveProbeRequest) String() string
- type RemoveProbeResponse
- type UnimplementedCloudproberServer
- func (UnimplementedCloudproberServer) AddProbe(context.Context, *AddProbeRequest) (*AddProbeResponse, error)
- func (UnimplementedCloudproberServer) ListProbes(context.Context, *ListProbesRequest) (*ListProbesResponse, error)
- func (UnimplementedCloudproberServer) RemoveProbe(context.Context, *RemoveProbeRequest) (*RemoveProbeResponse, error)
- type UnsafeCloudproberServer
Constants ¶
This section is empty.
Variables ¶
var Cloudprober_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudprober.Cloudprober", HandlerType: (*CloudproberServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddProbe", Handler: _Cloudprober_AddProbe_Handler, }, { MethodName: "RemoveProbe", Handler: _Cloudprober_RemoveProbe_Handler, }, { MethodName: "ListProbes", Handler: _Cloudprober_ListProbes_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/cloudprober/cloudprober/prober/proto/service.proto", }
Cloudprober_ServiceDesc is the grpc.ServiceDesc for Cloudprober service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_cloudprober_cloudprober_prober_proto_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCloudproberServer ¶
func RegisterCloudproberServer(s grpc.ServiceRegistrar, srv CloudproberServer)
Types ¶
type AddProbeRequest ¶
type AddProbeRequest struct { ProbeConfig *proto.ProbeDef `protobuf:"bytes,1,opt,name=probe_config,json=probeConfig" json:"probe_config,omitempty"` // contains filtered or unexported fields }
func (*AddProbeRequest) Descriptor
deprecated
func (*AddProbeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddProbeRequest.ProtoReflect.Descriptor instead.
func (*AddProbeRequest) GetProbeConfig ¶
func (x *AddProbeRequest) GetProbeConfig() *proto.ProbeDef
func (*AddProbeRequest) ProtoMessage ¶
func (*AddProbeRequest) ProtoMessage()
func (*AddProbeRequest) ProtoReflect ¶ added in v0.11.4
func (x *AddProbeRequest) ProtoReflect() protoreflect.Message
func (*AddProbeRequest) Reset ¶
func (x *AddProbeRequest) Reset()
func (*AddProbeRequest) String ¶
func (x *AddProbeRequest) String() string
type AddProbeResponse ¶
type AddProbeResponse struct {
// contains filtered or unexported fields
}
func (*AddProbeResponse) Descriptor
deprecated
func (*AddProbeResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddProbeResponse.ProtoReflect.Descriptor instead.
func (*AddProbeResponse) ProtoMessage ¶
func (*AddProbeResponse) ProtoMessage()
func (*AddProbeResponse) ProtoReflect ¶ added in v0.11.4
func (x *AddProbeResponse) ProtoReflect() protoreflect.Message
func (*AddProbeResponse) Reset ¶
func (x *AddProbeResponse) Reset()
func (*AddProbeResponse) String ¶
func (x *AddProbeResponse) String() string
type CloudproberClient ¶
type CloudproberClient interface { // AddProbe adds a probe to cloudprober. Error is returned if probe is already // defined or there is an error during initialization of the probe. AddProbe(ctx context.Context, in *AddProbeRequest, opts ...grpc.CallOption) (*AddProbeResponse, error) // RemoveProbe stops the probe and removes it from the in-memory database. RemoveProbe(ctx context.Context, in *RemoveProbeRequest, opts ...grpc.CallOption) (*RemoveProbeResponse, error) // ListProbes lists active probes. ListProbes(ctx context.Context, in *ListProbesRequest, opts ...grpc.CallOption) (*ListProbesResponse, error) }
CloudproberClient is the client API for Cloudprober service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCloudproberClient ¶
func NewCloudproberClient(cc grpc.ClientConnInterface) CloudproberClient
type CloudproberServer ¶
type CloudproberServer interface { // AddProbe adds a probe to cloudprober. Error is returned if probe is already // defined or there is an error during initialization of the probe. AddProbe(context.Context, *AddProbeRequest) (*AddProbeResponse, error) // RemoveProbe stops the probe and removes it from the in-memory database. RemoveProbe(context.Context, *RemoveProbeRequest) (*RemoveProbeResponse, error) // ListProbes lists active probes. ListProbes(context.Context, *ListProbesRequest) (*ListProbesResponse, error) // contains filtered or unexported methods }
CloudproberServer is the server API for Cloudprober service. All implementations must embed UnimplementedCloudproberServer for forward compatibility
type ListProbesRequest ¶
type ListProbesRequest struct {
// contains filtered or unexported fields
}
func (*ListProbesRequest) Descriptor
deprecated
func (*ListProbesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProbesRequest.ProtoReflect.Descriptor instead.
func (*ListProbesRequest) ProtoMessage ¶
func (*ListProbesRequest) ProtoMessage()
func (*ListProbesRequest) ProtoReflect ¶ added in v0.11.4
func (x *ListProbesRequest) ProtoReflect() protoreflect.Message
func (*ListProbesRequest) Reset ¶
func (x *ListProbesRequest) Reset()
func (*ListProbesRequest) String ¶
func (x *ListProbesRequest) String() string
type ListProbesResponse ¶
type ListProbesResponse struct { Probe []*Probe `protobuf:"bytes,1,rep,name=probe" json:"probe,omitempty"` // contains filtered or unexported fields }
func (*ListProbesResponse) Descriptor
deprecated
func (*ListProbesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProbesResponse.ProtoReflect.Descriptor instead.
func (*ListProbesResponse) GetProbe ¶
func (x *ListProbesResponse) GetProbe() []*Probe
func (*ListProbesResponse) ProtoMessage ¶
func (*ListProbesResponse) ProtoMessage()
func (*ListProbesResponse) ProtoReflect ¶ added in v0.11.4
func (x *ListProbesResponse) ProtoReflect() protoreflect.Message
func (*ListProbesResponse) Reset ¶
func (x *ListProbesResponse) Reset()
func (*ListProbesResponse) String ¶
func (x *ListProbesResponse) String() string
type Probe ¶
type Probe struct { Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Config *proto.ProbeDef `protobuf:"bytes,2,opt,name=config" json:"config,omitempty"` // contains filtered or unexported fields }
func (*Probe) Descriptor
deprecated
func (*Probe) ProtoMessage ¶
func (*Probe) ProtoMessage()
func (*Probe) ProtoReflect ¶ added in v0.11.4
func (x *Probe) ProtoReflect() protoreflect.Message
type RemoveProbeRequest ¶
type RemoveProbeRequest struct { ProbeName *string `protobuf:"bytes,1,opt,name=probe_name,json=probeName" json:"probe_name,omitempty"` // contains filtered or unexported fields }
func (*RemoveProbeRequest) Descriptor
deprecated
func (*RemoveProbeRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProbeRequest.ProtoReflect.Descriptor instead.
func (*RemoveProbeRequest) GetProbeName ¶
func (x *RemoveProbeRequest) GetProbeName() string
func (*RemoveProbeRequest) ProtoMessage ¶
func (*RemoveProbeRequest) ProtoMessage()
func (*RemoveProbeRequest) ProtoReflect ¶ added in v0.11.4
func (x *RemoveProbeRequest) ProtoReflect() protoreflect.Message
func (*RemoveProbeRequest) Reset ¶
func (x *RemoveProbeRequest) Reset()
func (*RemoveProbeRequest) String ¶
func (x *RemoveProbeRequest) String() string
type RemoveProbeResponse ¶
type RemoveProbeResponse struct {
// contains filtered or unexported fields
}
func (*RemoveProbeResponse) Descriptor
deprecated
func (*RemoveProbeResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProbeResponse.ProtoReflect.Descriptor instead.
func (*RemoveProbeResponse) ProtoMessage ¶
func (*RemoveProbeResponse) ProtoMessage()
func (*RemoveProbeResponse) ProtoReflect ¶ added in v0.11.4
func (x *RemoveProbeResponse) ProtoReflect() protoreflect.Message
func (*RemoveProbeResponse) Reset ¶
func (x *RemoveProbeResponse) Reset()
func (*RemoveProbeResponse) String ¶
func (x *RemoveProbeResponse) String() string
type UnimplementedCloudproberServer ¶ added in v0.10.4
type UnimplementedCloudproberServer struct { }
UnimplementedCloudproberServer must be embedded to have forward compatible implementations.
func (UnimplementedCloudproberServer) AddProbe ¶ added in v0.10.4
func (UnimplementedCloudproberServer) AddProbe(context.Context, *AddProbeRequest) (*AddProbeResponse, error)
func (UnimplementedCloudproberServer) ListProbes ¶ added in v0.10.4
func (UnimplementedCloudproberServer) ListProbes(context.Context, *ListProbesRequest) (*ListProbesResponse, error)
func (UnimplementedCloudproberServer) RemoveProbe ¶ added in v0.10.4
func (UnimplementedCloudproberServer) RemoveProbe(context.Context, *RemoveProbeRequest) (*RemoveProbeResponse, error)
type UnsafeCloudproberServer ¶ added in v0.11.4
type UnsafeCloudproberServer interface {
// contains filtered or unexported methods
}
UnsafeCloudproberServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudproberServer will result in compilation errors.