compiler

package
v0.0.0-...-f6108e4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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

Deprecated: Use Output.ProtoReflect.Descriptor instead.

func (*Output) GetOutput

func (x *Output) GetOutput() string

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

func (x *Output) ProtoReflect() protoreflect.Message

func (*Output) Reset

func (x *Output) Reset()

func (*Output) String

func (x *Output) String() string

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

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.

Jump to

Keyboard shortcuts

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