Documentation ¶
Index ¶
- Variables
- func RegisterParseServiceServer(s grpc.ServiceRegistrar, srv ParseServiceServer)
- func Serve()
- type ParseServiceClient
- type ParseServiceServer
- type PathsToFiles
- func (*PathsToFiles) Descriptor() ([]byte, []int)deprecated
- func (x *PathsToFiles) GetInputFilePath() string
- func (x *PathsToFiles) GetOutputFilePath() string
- func (*PathsToFiles) ProtoMessage()
- func (x *PathsToFiles) ProtoReflect() protoreflect.Message
- func (x *PathsToFiles) Reset()
- func (x *PathsToFiles) String() string
- type Result
- type Server
- type UnimplementedParseServiceServer
- type UnsafeParseServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpc_parse_proto protoreflect.FileDescriptor
var ParseService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.ParseService", HandlerType: (*ParseServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Parse", Handler: _ParseService_Parse_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/parse.proto", }
ParseService_ServiceDesc is the grpc.ServiceDesc for ParseService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterParseServiceServer ¶ added in v0.4.0
func RegisterParseServiceServer(s grpc.ServiceRegistrar, srv ParseServiceServer)
Types ¶
type ParseServiceClient ¶ added in v0.4.0
type ParseServiceClient interface {
Parse(ctx context.Context, in *PathsToFiles, opts ...grpc.CallOption) (*Result, error)
}
ParseServiceClient is the client API for ParseService 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 NewParseServiceClient ¶ added in v0.4.0
func NewParseServiceClient(cc grpc.ClientConnInterface) ParseServiceClient
type ParseServiceServer ¶ added in v0.4.0
type ParseServiceServer interface { Parse(context.Context, *PathsToFiles) (*Result, error) // contains filtered or unexported methods }
ParseServiceServer is the server API for ParseService service. All implementations must embed UnimplementedParseServiceServer for forward compatibility
type PathsToFiles ¶ added in v0.4.0
type PathsToFiles struct { InputFilePath string `protobuf:"bytes,1,opt,name=inputFilePath,proto3" json:"inputFilePath,omitempty"` OutputFilePath string `protobuf:"bytes,2,opt,name=outputFilePath,proto3" json:"outputFilePath,omitempty"` // contains filtered or unexported fields }
func (*PathsToFiles) Descriptor
deprecated
added in
v0.4.0
func (*PathsToFiles) Descriptor() ([]byte, []int)
Deprecated: Use PathsToFiles.ProtoReflect.Descriptor instead.
func (*PathsToFiles) GetInputFilePath ¶ added in v0.4.0
func (x *PathsToFiles) GetInputFilePath() string
func (*PathsToFiles) GetOutputFilePath ¶ added in v0.4.0
func (x *PathsToFiles) GetOutputFilePath() string
func (*PathsToFiles) ProtoMessage ¶ added in v0.4.0
func (*PathsToFiles) ProtoMessage()
func (*PathsToFiles) ProtoReflect ¶ added in v0.5.1
func (x *PathsToFiles) ProtoReflect() protoreflect.Message
func (*PathsToFiles) Reset ¶ added in v0.4.0
func (x *PathsToFiles) Reset()
func (*PathsToFiles) String ¶ added in v0.4.0
func (x *PathsToFiles) String() string
type Result ¶ added in v0.4.0
type Result struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
added in
v0.4.0
func (*Result) GetMessage ¶ added in v0.4.0
func (*Result) ProtoMessage ¶ added in v0.4.0
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶ added in v0.5.1
func (x *Result) ProtoReflect() protoreflect.Message
type Server ¶
type Server struct { ParseServiceServer // contains filtered or unexported fields }
type UnimplementedParseServiceServer ¶ added in v0.4.0
type UnimplementedParseServiceServer struct { }
UnimplementedParseServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedParseServiceServer) Parse ¶ added in v0.4.0
func (UnimplementedParseServiceServer) Parse(context.Context, *PathsToFiles) (*Result, error)
type UnsafeParseServiceServer ¶ added in v0.5.1
type UnsafeParseServiceServer interface {
// contains filtered or unexported methods
}
UnsafeParseServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParseServiceServer will result in compilation errors.