legacy

package
v0.0.0-...-6ef0903 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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 (*ClientStoredProcedureRequest) Reset

func (x *ClientStoredProcedureRequest) Reset()

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

Deprecated: Use DataRow.ProtoReflect.Descriptor instead.

func (*DataRow) GetValue

func (x *DataRow) GetValue() []*Field

func (*DataRow) ProtoMessage

func (*DataRow) ProtoMessage()

func (*DataRow) ProtoReflect

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

func (*DataRow) Reset

func (x *DataRow) Reset()

func (*DataRow) String

func (x *DataRow) String() string

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

Deprecated: Use DataTable.ProtoReflect.Descriptor instead.

func (*DataTable) GetColumns

func (x *DataTable) GetColumns() []string

func (*DataTable) GetRows

func (x *DataTable) GetRows() []*DataRow

func (*DataTable) GetTypes

func (x *DataTable) GetTypes() []string

func (*DataTable) ProtoMessage

func (*DataTable) ProtoMessage()

func (*DataTable) ProtoReflect

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

func (*DataTable) Reset

func (x *DataTable) Reset()

func (*DataTable) String

func (x *DataTable) String() string

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetValue

func (x *Field) GetValue() *wrapperspb.StringValue

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

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) StoredProcedure

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.

Jump to

Keyboard shortcuts

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