Documentation ¶
Index ¶
- Variables
- func RegisterCarbonV2Server(s grpc.ServiceRegistrar, srv CarbonV2Server)
- type CarbonV2Client
- type CarbonV2Server
- type CarbonV2_RenderClient
- type CarbonV2_RenderServer
- type UnimplementedCarbonV2Server
- func (UnimplementedCarbonV2Server) Find(context.Context, *carbonapi_v2_pb.GlobRequest) (*carbonapi_v2_pb.GlobResponse, error)
- func (UnimplementedCarbonV2Server) Info(context.Context, *carbonapi_v2_pb.InfoRequest) (*carbonapi_v2_pb.InfoResponse, error)
- func (UnimplementedCarbonV2Server) List(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.ListMetricsResponse, error)
- func (UnimplementedCarbonV2Server) Render(*carbonapi_v2_pb.MultiFetchRequest, CarbonV2_RenderServer) error
- func (UnimplementedCarbonV2Server) Stats(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.MetricDetailsResponse, error)
- func (UnimplementedCarbonV2Server) Version(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.ProtocolVersionResponse, error)
- type UnsafeCarbonV2Server
Constants ¶
This section is empty.
Variables ¶
var CarbonV2_ServiceDesc = grpc.ServiceDesc{ ServiceName: "carbonapi_v2_grpc.CarbonV2", HandlerType: (*CarbonV2Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Find", Handler: _CarbonV2_Find_Handler, }, { MethodName: "List", Handler: _CarbonV2_List_Handler, }, { MethodName: "Info", Handler: _CarbonV2_Info_Handler, }, { MethodName: "Stats", Handler: _CarbonV2_Stats_Handler, }, { MethodName: "Version", Handler: _CarbonV2_Version_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Render", Handler: _CarbonV2_Render_Handler, ServerStreams: true, }, }, Metadata: "carbonapi_v2_grpc/carbonapi_v2_grpc.proto", }
CarbonV2_ServiceDesc is the grpc.ServiceDesc for CarbonV2 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_carbonapi_v2_grpc_carbonapi_v2_grpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCarbonV2Server ¶
func RegisterCarbonV2Server(s grpc.ServiceRegistrar, srv CarbonV2Server)
Types ¶
type CarbonV2Client ¶
type CarbonV2Client interface { Render(ctx context.Context, in *carbonapi_v2_pb.MultiFetchRequest, opts ...grpc.CallOption) (CarbonV2_RenderClient, error) Find(ctx context.Context, in *carbonapi_v2_pb.GlobRequest, opts ...grpc.CallOption) (*carbonapi_v2_pb.GlobResponse, error) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*carbonapi_v2_pb.ListMetricsResponse, error) Info(ctx context.Context, in *carbonapi_v2_pb.InfoRequest, opts ...grpc.CallOption) (*carbonapi_v2_pb.InfoResponse, error) Stats(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*carbonapi_v2_pb.MetricDetailsResponse, error) Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*carbonapi_v2_pb.ProtocolVersionResponse, error) }
CarbonV2Client is the client API for CarbonV2 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 NewCarbonV2Client ¶
func NewCarbonV2Client(cc grpc.ClientConnInterface) CarbonV2Client
type CarbonV2Server ¶
type CarbonV2Server interface { Render(*carbonapi_v2_pb.MultiFetchRequest, CarbonV2_RenderServer) error Find(context.Context, *carbonapi_v2_pb.GlobRequest) (*carbonapi_v2_pb.GlobResponse, error) List(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.ListMetricsResponse, error) Info(context.Context, *carbonapi_v2_pb.InfoRequest) (*carbonapi_v2_pb.InfoResponse, error) Stats(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.MetricDetailsResponse, error) Version(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.ProtocolVersionResponse, error) // contains filtered or unexported methods }
CarbonV2Server is the server API for CarbonV2 service. All implementations must embed UnimplementedCarbonV2Server for forward compatibility
type CarbonV2_RenderClient ¶
type CarbonV2_RenderClient interface { Recv() (*carbonapi_v2_pb.FetchResponse, error) grpc.ClientStream }
type CarbonV2_RenderServer ¶
type CarbonV2_RenderServer interface { Send(*carbonapi_v2_pb.FetchResponse) error grpc.ServerStream }
type UnimplementedCarbonV2Server ¶
type UnimplementedCarbonV2Server struct { }
UnimplementedCarbonV2Server must be embedded to have forward compatible implementations.
func (UnimplementedCarbonV2Server) Find ¶
func (UnimplementedCarbonV2Server) Find(context.Context, *carbonapi_v2_pb.GlobRequest) (*carbonapi_v2_pb.GlobResponse, error)
func (UnimplementedCarbonV2Server) Info ¶
func (UnimplementedCarbonV2Server) Info(context.Context, *carbonapi_v2_pb.InfoRequest) (*carbonapi_v2_pb.InfoResponse, error)
func (UnimplementedCarbonV2Server) List ¶
func (UnimplementedCarbonV2Server) List(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.ListMetricsResponse, error)
func (UnimplementedCarbonV2Server) Stats ¶
func (UnimplementedCarbonV2Server) Stats(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.MetricDetailsResponse, error)
func (UnimplementedCarbonV2Server) Version ¶
func (UnimplementedCarbonV2Server) Version(context.Context, *emptypb.Empty) (*carbonapi_v2_pb.ProtocolVersionResponse, error)
type UnsafeCarbonV2Server ¶
type UnsafeCarbonV2Server interface {
// contains filtered or unexported methods
}
UnsafeCarbonV2Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CarbonV2Server will result in compilation errors.