Documentation ¶
Index ¶
- Variables
- func RegisterClientServiceServer(s grpc.ServiceRegistrar, srv ClientServiceServer)
- type ClientService
- type ClientServiceClient
- type ClientServiceServer
- type ClientStoredProcedureRequest
- func (*ClientStoredProcedureRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStoredProcedureRequest) GetInput() []string
- func (x *ClientStoredProcedureRequest) GetName() string
- func (*ClientStoredProcedureRequest) ProtoMessage()
- func (x *ClientStoredProcedureRequest) ProtoReflect() protoreflect.Message
- func (x *ClientStoredProcedureRequest) Reset()
- func (x *ClientStoredProcedureRequest) String() string
- type DataRow
- type DataTable
- func (*DataTable) Descriptor() ([]byte, []int)deprecated
- func (x *DataTable) GetColumns() []string
- func (x *DataTable) GetRows() []*DataRow
- func (x *DataTable) GetTypes() []string
- func (*DataTable) ProtoMessage()
- func (x *DataTable) ProtoReflect() protoreflect.Message
- func (x *DataTable) Reset()
- func (x *DataTable) String() string
- type Field
- type InsecureQueryRequest
- func (*InsecureQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InsecureQueryRequest) GetDb() string
- func (x *InsecureQueryRequest) GetQuery() string
- func (*InsecureQueryRequest) ProtoMessage()
- func (x *InsecureQueryRequest) ProtoReflect() protoreflect.Message
- func (x *InsecureQueryRequest) Reset()
- func (x *InsecureQueryRequest) String() string
- type UnimplementedClientServiceServer
- type UnsafeClientServiceServer
Constants ¶
This section is empty.
Variables ¶
var ClientService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "legacy.ClientService", HandlerType: (*ClientServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StoredProcedure", Handler: _ClientService_StoredProcedure_Handler, }, { MethodName: "InsecureQuery", Handler: _ClientService_InsecureQuery_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "legacy/legacy.proto", }
ClientService_ServiceDesc is the grpc.ServiceDesc for ClientService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_legacy_legacy_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClientServiceServer ¶
func RegisterClientServiceServer(s grpc.ServiceRegistrar, srv ClientServiceServer)
Types ¶
type ClientService ¶
type ClientService struct { UnimplementedClientServiceServer // contains filtered or unexported fields }
ClientService implements ClientServiceServer
func NewClientService ¶
func NewClientService(client *sqlx.DB, dbName string) *ClientService
NewClientService returns a new ClientService
func (*ClientService) InsecureQuery ¶
func (s *ClientService) InsecureQuery(ctx context.Context, in *InsecureQueryRequest) (*DataTable, error)
func (*ClientService) StoredProcedure ¶
func (s *ClientService) StoredProcedure(ctx context.Context, req *ClientStoredProcedureRequest) (*DataTable, error)
type ClientServiceClient ¶
type ClientServiceClient interface { StoredProcedure(ctx context.Context, in *ClientStoredProcedureRequest, opts ...grpc.CallOption) (*DataTable, error) InsecureQuery(ctx context.Context, in *InsecureQueryRequest, opts ...grpc.CallOption) (*DataTable, error) }
ClientServiceClient is the client API for ClientService 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 NewClientServiceClient ¶
func NewClientServiceClient(cc grpc.ClientConnInterface) ClientServiceClient
type ClientServiceServer ¶
type ClientServiceServer interface { StoredProcedure(context.Context, *ClientStoredProcedureRequest) (*DataTable, error) InsecureQuery(context.Context, *InsecureQueryRequest) (*DataTable, error) // contains filtered or unexported methods }
ClientServiceServer is the server API for ClientService service. All implementations must embed UnimplementedClientServiceServer for forward compatibility
type ClientStoredProcedureRequest ¶
type ClientStoredProcedureRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Input []string `protobuf:"bytes,2,rep,name=input,proto3" json:"input,omitempty"` // contains filtered or unexported fields }
func (*ClientStoredProcedureRequest) Descriptor
deprecated
func (*ClientStoredProcedureRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClientStoredProcedureRequest.ProtoReflect.Descriptor instead.
func (*ClientStoredProcedureRequest) GetInput ¶
func (x *ClientStoredProcedureRequest) GetInput() []string
func (*ClientStoredProcedureRequest) GetName ¶
func (x *ClientStoredProcedureRequest) GetName() string
func (*ClientStoredProcedureRequest) ProtoMessage ¶
func (*ClientStoredProcedureRequest) ProtoMessage()
func (*ClientStoredProcedureRequest) ProtoReflect ¶
func (x *ClientStoredProcedureRequest) ProtoReflect() protoreflect.Message
func (*ClientStoredProcedureRequest) Reset ¶
func (x *ClientStoredProcedureRequest) Reset()
func (*ClientStoredProcedureRequest) String ¶
func (x *ClientStoredProcedureRequest) String() string
type DataRow ¶
type DataRow struct { Value []*Field `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DataRow) Descriptor
deprecated
func (*DataRow) ProtoMessage ¶
func (*DataRow) ProtoMessage()
func (*DataRow) ProtoReflect ¶
func (x *DataRow) ProtoReflect() protoreflect.Message
type DataTable ¶
type DataTable struct { Columns []string `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` Types []string `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"` Rows []*DataRow `protobuf:"bytes,3,rep,name=rows,proto3" json:"rows,omitempty"` // contains filtered or unexported fields }
func (*DataTable) Descriptor
deprecated
func (*DataTable) GetColumns ¶
func (*DataTable) ProtoMessage ¶
func (*DataTable) ProtoMessage()
func (*DataTable) ProtoReflect ¶
func (x *DataTable) ProtoReflect() protoreflect.Message
type Field ¶
type Field struct { Value *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Field) Descriptor
deprecated
func (*Field) GetValue ¶
func (x *Field) GetValue() *wrapperspb.StringValue
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
type InsecureQueryRequest ¶
type InsecureQueryRequest struct { Db string `protobuf:"bytes,1,opt,name=db,proto3" json:"db,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*InsecureQueryRequest) Descriptor
deprecated
func (*InsecureQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsecureQueryRequest.ProtoReflect.Descriptor instead.
func (*InsecureQueryRequest) GetDb ¶
func (x *InsecureQueryRequest) GetDb() string
func (*InsecureQueryRequest) GetQuery ¶
func (x *InsecureQueryRequest) GetQuery() string
func (*InsecureQueryRequest) ProtoMessage ¶
func (*InsecureQueryRequest) ProtoMessage()
func (*InsecureQueryRequest) ProtoReflect ¶
func (x *InsecureQueryRequest) ProtoReflect() protoreflect.Message
func (*InsecureQueryRequest) Reset ¶
func (x *InsecureQueryRequest) Reset()
func (*InsecureQueryRequest) String ¶
func (x *InsecureQueryRequest) String() string
type UnimplementedClientServiceServer ¶
type UnimplementedClientServiceServer struct { }
UnimplementedClientServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedClientServiceServer) InsecureQuery ¶
func (UnimplementedClientServiceServer) InsecureQuery(context.Context, *InsecureQueryRequest) (*DataTable, error)
func (UnimplementedClientServiceServer) StoredProcedure ¶
func (UnimplementedClientServiceServer) StoredProcedure(context.Context, *ClientStoredProcedureRequest) (*DataTable, error)
type UnsafeClientServiceServer ¶
type UnsafeClientServiceServer interface {
// contains filtered or unexported methods
}
UnsafeClientServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientServiceServer will result in compilation errors.