remote

package
v0.0.0-...-a63ec11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_remote_gen_proto protoreflect.FileDescriptor
View Source
var Gen_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "remote.sqlc.dev.Gen.v1.Gen",
	HandlerType: (*GenServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Generate",
			Handler:    _Gen_Generate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/remote/gen.proto",
}

Gen_ServiceDesc is the grpc.ServiceDesc for Gen service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGenServer

func RegisterGenServer(s grpc.ServiceRegistrar, srv GenServer)

Types

type File

type File struct {
	Path        string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
	Bytes       []byte `protobuf:"bytes,3,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*File) Descriptor deprecated

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetBytes

func (x *File) GetBytes() []byte

func (*File) GetContentType

func (x *File) GetContentType() string

func (*File) GetPath

func (x *File) GetPath() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type GenClient

type GenClient interface {
	Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error)
}

GenClient is the client API for Gen 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 NewClient

func NewClient(cloudConfig config.Cloud) (GenClient, error)

func NewGenClient

func NewGenClient(cc grpc.ClientConnInterface) GenClient

type GenServer

type GenServer interface {
	Generate(context.Context, *GenerateRequest) (*GenerateResponse, error)
	// contains filtered or unexported methods
}

GenServer is the server API for Gen service. All implementations must embed UnimplementedGenServer for forward compatibility

type GenerateRequest

type GenerateRequest struct {
	Version string  `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Inputs  []*File `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateRequest) Descriptor deprecated

func (*GenerateRequest) Descriptor() ([]byte, []int)

Deprecated: Use GenerateRequest.ProtoReflect.Descriptor instead.

func (*GenerateRequest) GetInputs

func (x *GenerateRequest) GetInputs() []*File

func (*GenerateRequest) GetVersion

func (x *GenerateRequest) GetVersion() string

func (*GenerateRequest) ProtoMessage

func (*GenerateRequest) ProtoMessage()

func (*GenerateRequest) ProtoReflect

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

func (*GenerateRequest) Reset

func (x *GenerateRequest) Reset()

func (*GenerateRequest) String

func (x *GenerateRequest) String() string

type GenerateResponse

type GenerateResponse struct {
	Outputs  []*File `protobuf:"bytes,1,rep,name=outputs,proto3" json:"outputs,omitempty"`
	ExitCode int64   `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	Stdout   []byte  `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Stderr   []byte  `protobuf:"bytes,4,opt,name=stderr,proto3" json:"stderr,omitempty"`
	// contains filtered or unexported fields
}

func (*GenerateResponse) Descriptor deprecated

func (*GenerateResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenerateResponse.ProtoReflect.Descriptor instead.

func (*GenerateResponse) GetExitCode

func (x *GenerateResponse) GetExitCode() int64

func (*GenerateResponse) GetOutputs

func (x *GenerateResponse) GetOutputs() []*File

func (*GenerateResponse) GetStderr

func (x *GenerateResponse) GetStderr() []byte

func (*GenerateResponse) GetStdout

func (x *GenerateResponse) GetStdout() []byte

func (*GenerateResponse) ProtoMessage

func (*GenerateResponse) ProtoMessage()

func (*GenerateResponse) ProtoReflect

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

func (*GenerateResponse) Reset

func (x *GenerateResponse) Reset()

func (*GenerateResponse) String

func (x *GenerateResponse) String() string

type UnimplementedGenServer

type UnimplementedGenServer struct {
}

UnimplementedGenServer must be embedded to have forward compatible implementations.

func (UnimplementedGenServer) Generate

type UnsafeGenServer

type UnsafeGenServer interface {
	// contains filtered or unexported methods
}

UnsafeGenServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GenServer will result in compilation errors.

Jump to

Keyboard shortcuts

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