Documentation ¶
Index ¶
- Variables
- func RegisterAnalyzerServer(s grpc.ServiceRegistrar, srv AnalyzerServer)
- type AnalyzerClient
- type AnalyzerServer
- type GetStatusReq
- type GetStatusRes
- func (*GetStatusRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatusRes) GetCurrent() int32
- func (x *GetStatusRes) GetTotal() int32
- func (*GetStatusRes) ProtoMessage()
- func (x *GetStatusRes) ProtoReflect() protoreflect.Message
- func (x *GetStatusRes) Reset()
- func (x *GetStatusRes) String() string
- type StartAnalyzerReq
- type StartAnalyzerRes
- type UnimplementedAnalyzerServer
- type UnsafeAnalyzerServer
Constants ¶
This section is empty.
Variables ¶
var Analyzer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.svc.analyzer.Analyzer", HandlerType: (*AnalyzerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StartAnalyzer", Handler: _Analyzer_StartAnalyzer_Handler, }, { MethodName: "GetStatus", Handler: _Analyzer_GetStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/svc/analyzer/analyzer.proto", }
Analyzer_ServiceDesc is the grpc.ServiceDesc for Analyzer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pb_svc_analyzer_analyzer_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAnalyzerServer ¶
func RegisterAnalyzerServer(s grpc.ServiceRegistrar, srv AnalyzerServer)
Types ¶
type AnalyzerClient ¶
type AnalyzerClient interface { StartAnalyzer(ctx context.Context, in *StartAnalyzerReq, opts ...grpc.CallOption) (*StartAnalyzerRes, error) GetStatus(ctx context.Context, in *GetStatusReq, opts ...grpc.CallOption) (*GetStatusRes, error) }
AnalyzerClient is the client API for Analyzer 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 NewAnalyzerClient ¶
func NewAnalyzerClient(cc grpc.ClientConnInterface) AnalyzerClient
type AnalyzerServer ¶
type AnalyzerServer interface { StartAnalyzer(context.Context, *StartAnalyzerReq) (*StartAnalyzerRes, error) GetStatus(context.Context, *GetStatusReq) (*GetStatusRes, error) // contains filtered or unexported methods }
AnalyzerServer is the server API for Analyzer service. All implementations must embed UnimplementedAnalyzerServer for forward compatibility
type GetStatusReq ¶
type GetStatusReq struct {
// contains filtered or unexported fields
}
func (*GetStatusReq) Descriptor
deprecated
func (*GetStatusReq) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusReq.ProtoReflect.Descriptor instead.
func (*GetStatusReq) ProtoMessage ¶
func (*GetStatusReq) ProtoMessage()
func (*GetStatusReq) ProtoReflect ¶
func (x *GetStatusReq) ProtoReflect() protoreflect.Message
func (*GetStatusReq) Reset ¶
func (x *GetStatusReq) Reset()
func (*GetStatusReq) String ¶
func (x *GetStatusReq) String() string
type GetStatusRes ¶
type GetStatusRes struct { Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetStatusRes) Descriptor
deprecated
func (*GetStatusRes) Descriptor() ([]byte, []int)
Deprecated: Use GetStatusRes.ProtoReflect.Descriptor instead.
func (*GetStatusRes) GetCurrent ¶
func (x *GetStatusRes) GetCurrent() int32
func (*GetStatusRes) GetTotal ¶
func (x *GetStatusRes) GetTotal() int32
func (*GetStatusRes) ProtoMessage ¶
func (*GetStatusRes) ProtoMessage()
func (*GetStatusRes) ProtoReflect ¶
func (x *GetStatusRes) ProtoReflect() protoreflect.Message
func (*GetStatusRes) Reset ¶
func (x *GetStatusRes) Reset()
func (*GetStatusRes) String ¶
func (x *GetStatusRes) String() string
type StartAnalyzerReq ¶
type StartAnalyzerReq struct {
// contains filtered or unexported fields
}
func (*StartAnalyzerReq) Descriptor
deprecated
func (*StartAnalyzerReq) Descriptor() ([]byte, []int)
Deprecated: Use StartAnalyzerReq.ProtoReflect.Descriptor instead.
func (*StartAnalyzerReq) ProtoMessage ¶
func (*StartAnalyzerReq) ProtoMessage()
func (*StartAnalyzerReq) ProtoReflect ¶
func (x *StartAnalyzerReq) ProtoReflect() protoreflect.Message
func (*StartAnalyzerReq) Reset ¶
func (x *StartAnalyzerReq) Reset()
func (*StartAnalyzerReq) String ¶
func (x *StartAnalyzerReq) String() string
type StartAnalyzerRes ¶
type StartAnalyzerRes struct {
// contains filtered or unexported fields
}
func (*StartAnalyzerRes) Descriptor
deprecated
func (*StartAnalyzerRes) Descriptor() ([]byte, []int)
Deprecated: Use StartAnalyzerRes.ProtoReflect.Descriptor instead.
func (*StartAnalyzerRes) ProtoMessage ¶
func (*StartAnalyzerRes) ProtoMessage()
func (*StartAnalyzerRes) ProtoReflect ¶
func (x *StartAnalyzerRes) ProtoReflect() protoreflect.Message
func (*StartAnalyzerRes) Reset ¶
func (x *StartAnalyzerRes) Reset()
func (*StartAnalyzerRes) String ¶
func (x *StartAnalyzerRes) String() string
type UnimplementedAnalyzerServer ¶
type UnimplementedAnalyzerServer struct { }
UnimplementedAnalyzerServer must be embedded to have forward compatible implementations.
func (UnimplementedAnalyzerServer) GetStatus ¶
func (UnimplementedAnalyzerServer) GetStatus(context.Context, *GetStatusReq) (*GetStatusRes, error)
func (UnimplementedAnalyzerServer) StartAnalyzer ¶
func (UnimplementedAnalyzerServer) StartAnalyzer(context.Context, *StartAnalyzerReq) (*StartAnalyzerRes, error)
type UnsafeAnalyzerServer ¶
type UnsafeAnalyzerServer interface {
// contains filtered or unexported methods
}
UnsafeAnalyzerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AnalyzerServer will result in compilation errors.