grpc

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_parse_proto protoreflect.FileDescriptor
View Source
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)

func Serve

func Serve()

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) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetError added in v0.4.0

func (x *Result) GetError() string

func (*Result) GetMessage added in v0.4.0

func (x *Result) GetMessage() string

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

func (*Result) Reset added in v0.4.0

func (x *Result) Reset()

func (*Result) String added in v0.4.0

func (x *Result) String() string

type Server

type Server struct {
	ParseServiceServer
	// contains filtered or unexported fields
}

func (*Server) Parse

func (s *Server) Parse(_ context.Context, paths *PathsToFiles) (*Result, error)

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL