// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v4.23.2 // source: trace.proto package trace import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( Trace_SpinTrace_FullMethodName = "/trace.Trace/SpinTrace" Trace_SpinErr_FullMethodName = "/trace.Trace/SpinErr" Trace_HistoryCount_FullMethodName = "/trace.Trace/HistoryCount" Trace_HistoryList_FullMethodName = "/trace.Trace/HistoryList" Trace_HistoryItem_FullMethodName = "/trace.Trace/HistoryItem" ) // TraceClient is the client API for Trace 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. type TraceClient interface { SpinTrace(ctx context.Context, in *SpinTraceReq, opts ...grpc.CallOption) (*SpinTraceRet, error) SpinErr(ctx context.Context, in *SpinErrReq, opts ...grpc.CallOption) (*SpinErrRet, error) HistoryCount(ctx context.Context, in *HistoryCountReq, opts ...grpc.CallOption) (*HistoryCountRet, error) HistoryList(ctx context.Context, in *HistoryListReq, opts ...grpc.CallOption) (*HistoryListRet, error) HistoryItem(ctx context.Context, in *HistoryItemReq, opts ...grpc.CallOption) (*HistoryItemRet, error) } type traceClient struct { cc grpc.ClientConnInterface } func NewTraceClient(cc grpc.ClientConnInterface) TraceClient { return &traceClient{cc} } func (c *traceClient) SpinTrace(ctx context.Context, in *SpinTraceReq, opts ...grpc.CallOption) (*SpinTraceRet, error) { out := new(SpinTraceRet) err := c.cc.Invoke(ctx, Trace_SpinTrace_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *traceClient) SpinErr(ctx context.Context, in *SpinErrReq, opts ...grpc.CallOption) (*SpinErrRet, error) { out := new(SpinErrRet) err := c.cc.Invoke(ctx, Trace_SpinErr_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *traceClient) HistoryCount(ctx context.Context, in *HistoryCountReq, opts ...grpc.CallOption) (*HistoryCountRet, error) { out := new(HistoryCountRet) err := c.cc.Invoke(ctx, Trace_HistoryCount_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *traceClient) HistoryList(ctx context.Context, in *HistoryListReq, opts ...grpc.CallOption) (*HistoryListRet, error) { out := new(HistoryListRet) err := c.cc.Invoke(ctx, Trace_HistoryList_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *traceClient) HistoryItem(ctx context.Context, in *HistoryItemReq, opts ...grpc.CallOption) (*HistoryItemRet, error) { out := new(HistoryItemRet) err := c.cc.Invoke(ctx, Trace_HistoryItem_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // TraceServer is the server API for Trace service. // All implementations must embed UnimplementedTraceServer // for forward compatibility type TraceServer interface { SpinTrace(context.Context, *SpinTraceReq) (*SpinTraceRet, error) SpinErr(context.Context, *SpinErrReq) (*SpinErrRet, error) HistoryCount(context.Context, *HistoryCountReq) (*HistoryCountRet, error) HistoryList(context.Context, *HistoryListReq) (*HistoryListRet, error) HistoryItem(context.Context, *HistoryItemReq) (*HistoryItemRet, error) mustEmbedUnimplementedTraceServer() } // UnimplementedTraceServer must be embedded to have forward compatible implementations. type UnimplementedTraceServer struct { } func (UnimplementedTraceServer) SpinTrace(context.Context, *SpinTraceReq) (*SpinTraceRet, error) { return nil, status.Errorf(codes.Unimplemented, "method SpinTrace not implemented") } func (UnimplementedTraceServer) SpinErr(context.Context, *SpinErrReq) (*SpinErrRet, error) { return nil, status.Errorf(codes.Unimplemented, "method SpinErr not implemented") } func (UnimplementedTraceServer) HistoryCount(context.Context, *HistoryCountReq) (*HistoryCountRet, error) { return nil, status.Errorf(codes.Unimplemented, "method HistoryCount not implemented") } func (UnimplementedTraceServer) HistoryList(context.Context, *HistoryListReq) (*HistoryListRet, error) { return nil, status.Errorf(codes.Unimplemented, "method HistoryList not implemented") } func (UnimplementedTraceServer) HistoryItem(context.Context, *HistoryItemReq) (*HistoryItemRet, error) { return nil, status.Errorf(codes.Unimplemented, "method HistoryItem not implemented") } func (UnimplementedTraceServer) mustEmbedUnimplementedTraceServer() {} // UnsafeTraceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TraceServer will // result in compilation errors. type UnsafeTraceServer interface { mustEmbedUnimplementedTraceServer() } func RegisterTraceServer(s grpc.ServiceRegistrar, srv TraceServer) { s.RegisterService(&Trace_ServiceDesc, srv) } func _Trace_SpinTrace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SpinTraceReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TraceServer).SpinTrace(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Trace_SpinTrace_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TraceServer).SpinTrace(ctx, req.(*SpinTraceReq)) } return interceptor(ctx, in, info, handler) } func _Trace_SpinErr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SpinErrReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TraceServer).SpinErr(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Trace_SpinErr_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TraceServer).SpinErr(ctx, req.(*SpinErrReq)) } return interceptor(ctx, in, info, handler) } func _Trace_HistoryCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HistoryCountReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TraceServer).HistoryCount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Trace_HistoryCount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TraceServer).HistoryCount(ctx, req.(*HistoryCountReq)) } return interceptor(ctx, in, info, handler) } func _Trace_HistoryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HistoryListReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TraceServer).HistoryList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Trace_HistoryList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TraceServer).HistoryList(ctx, req.(*HistoryListReq)) } return interceptor(ctx, in, info, handler) } func _Trace_HistoryItem_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(HistoryItemReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TraceServer).HistoryItem(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Trace_HistoryItem_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TraceServer).HistoryItem(ctx, req.(*HistoryItemReq)) } return interceptor(ctx, in, info, handler) } // Trace_ServiceDesc is the grpc.ServiceDesc for Trace service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Trace_ServiceDesc = grpc.ServiceDesc{ ServiceName: "trace.Trace", HandlerType: (*TraceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SpinTrace", Handler: _Trace_SpinTrace_Handler, }, { MethodName: "SpinErr", Handler: _Trace_SpinErr_Handler, }, { MethodName: "HistoryCount", Handler: _Trace_HistoryCount_Handler, }, { MethodName: "HistoryList", Handler: _Trace_HistoryList_Handler, }, { MethodName: "HistoryItem", Handler: _Trace_HistoryItem_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "trace.proto", }