Documentation ¶
Index ¶
- Variables
- func RegisterGenServer(s grpc.ServiceRegistrar, srv GenServer)
- type File
- type GenClient
- type GenServer
- type GenerateRequest
- func (*GenerateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateRequest) GetInputs() []*File
- func (x *GenerateRequest) GetVersion() string
- func (*GenerateRequest) ProtoMessage()
- func (x *GenerateRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateRequest) Reset()
- func (x *GenerateRequest) String() string
- type GenerateResponse
- func (*GenerateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateResponse) GetExitCode() int64
- func (x *GenerateResponse) GetOutputs() []*File
- func (x *GenerateResponse) GetStderr() []byte
- func (x *GenerateResponse) GetStdout() []byte
- func (*GenerateResponse) ProtoMessage()
- func (x *GenerateResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateResponse) Reset()
- func (x *GenerateResponse) String() string
- type UnimplementedGenServer
- type UnsafeGenServer
Constants ¶
This section is empty.
Variables ¶
var File_internal_remote_gen_proto protoreflect.FileDescriptor
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) GetContentType ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
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 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 ¶
func (UnimplementedGenServer) Generate(context.Context, *GenerateRequest) (*GenerateResponse, error)
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.