Documentation ¶
Index ¶
- Variables
- func RegisterCompilerServiceServer(s grpc.ServiceRegistrar, srv CompilerServiceServer)
- type CompilerServiceClient
- type CompilerServiceServer
- type Output
- type SourceCode
- func (*SourceCode) Descriptor() ([]byte, []int)deprecated
- func (x *SourceCode) GetArgs() []string
- func (x *SourceCode) GetCode() string
- func (x *SourceCode) GetLanguage() string
- func (*SourceCode) ProtoMessage()
- func (x *SourceCode) ProtoReflect() protoreflect.Message
- func (x *SourceCode) Reset()
- func (x *SourceCode) String() string
- type UnimplementedCompilerServiceServer
- type UnsafeCompilerServiceServer
Constants ¶
This section is empty.
Variables ¶
var CompilerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "compiler.CompilerService", HandlerType: (*CompilerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Execute", Handler: _CompilerService_Execute_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "compiler.proto", }
CompilerService_ServiceDesc is the grpc.ServiceDesc for CompilerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_compiler_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCompilerServiceServer ¶
func RegisterCompilerServiceServer(s grpc.ServiceRegistrar, srv CompilerServiceServer)
Types ¶
type CompilerServiceClient ¶
type CompilerServiceClient interface {
Execute(ctx context.Context, in *SourceCode, opts ...grpc.CallOption) (*Output, error)
}
CompilerServiceClient is the client API for CompilerService 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 NewCompilerServiceClient ¶
func NewCompilerServiceClient(cc grpc.ClientConnInterface) CompilerServiceClient
type CompilerServiceServer ¶
type CompilerServiceServer interface { Execute(context.Context, *SourceCode) (*Output, error) // contains filtered or unexported methods }
CompilerServiceServer is the server API for CompilerService service. All implementations must embed UnimplementedCompilerServiceServer for forward compatibility
type Output ¶
type Output struct { Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*Output) Descriptor
deprecated
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
type SourceCode ¶
type SourceCode struct { Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*SourceCode) Descriptor
deprecated
func (*SourceCode) Descriptor() ([]byte, []int)
Deprecated: Use SourceCode.ProtoReflect.Descriptor instead.
func (*SourceCode) GetArgs ¶
func (x *SourceCode) GetArgs() []string
func (*SourceCode) GetCode ¶
func (x *SourceCode) GetCode() string
func (*SourceCode) GetLanguage ¶
func (x *SourceCode) GetLanguage() string
func (*SourceCode) ProtoMessage ¶
func (*SourceCode) ProtoMessage()
func (*SourceCode) ProtoReflect ¶
func (x *SourceCode) ProtoReflect() protoreflect.Message
func (*SourceCode) Reset ¶
func (x *SourceCode) Reset()
func (*SourceCode) String ¶
func (x *SourceCode) String() string
type UnimplementedCompilerServiceServer ¶
type UnimplementedCompilerServiceServer struct { }
UnimplementedCompilerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCompilerServiceServer) Execute ¶
func (UnimplementedCompilerServiceServer) Execute(context.Context, *SourceCode) (*Output, error)
type UnsafeCompilerServiceServer ¶
type UnsafeCompilerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCompilerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CompilerServiceServer will result in compilation errors.