psdbv1alpha1grpc

package
v1.3.0-20240109164443-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Database_CreateSession_FullMethodName = "/psdb.v1alpha1.Database/CreateSession"
	Database_Execute_FullMethodName       = "/psdb.v1alpha1.Database/Execute"
	Database_StreamExecute_FullMethodName = "/psdb.v1alpha1.Database/StreamExecute"
	Database_Prepare_FullMethodName       = "/psdb.v1alpha1.Database/Prepare"
	Database_CloseSession_FullMethodName  = "/psdb.v1alpha1.Database/CloseSession"
)

Variables

View Source
var Database_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "psdb.v1alpha1.Database",
	HandlerType: (*DatabaseServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateSession",
			Handler:    _Database_CreateSession_Handler,
		},
		{
			MethodName: "Execute",
			Handler:    _Database_Execute_Handler,
		},
		{
			MethodName: "Prepare",
			Handler:    _Database_Prepare_Handler,
		},
		{
			MethodName: "CloseSession",
			Handler:    _Database_CloseSession_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamExecute",
			Handler:       _Database_StreamExecute_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "psdb/v1alpha1/database.proto",
}

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

Functions

func RegisterDatabaseServer

func RegisterDatabaseServer(s grpc.ServiceRegistrar, srv DatabaseServer)

Types

type DatabaseClient

DatabaseClient is the client API for Database 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 NewDatabaseClient

func NewDatabaseClient(cc grpc.ClientConnInterface) DatabaseClient

type DatabaseServer

DatabaseServer is the server API for Database service. All implementations should embed UnimplementedDatabaseServer for forward compatibility

type Database_StreamExecuteClient

type Database_StreamExecuteClient interface {
	Recv() (*v1alpha1.ExecuteResponse, error)
	grpc.ClientStream
}

type Database_StreamExecuteServer

type Database_StreamExecuteServer interface {
	Send(*v1alpha1.ExecuteResponse) error
	grpc.ServerStream
}

type UnimplementedDatabaseServer

type UnimplementedDatabaseServer struct {
}

UnimplementedDatabaseServer should be embedded to have forward compatible implementations.

func (UnimplementedDatabaseServer) CloseSession

func (UnimplementedDatabaseServer) CreateSession

func (UnimplementedDatabaseServer) Execute

func (UnimplementedDatabaseServer) Prepare

func (UnimplementedDatabaseServer) StreamExecute

type UnsafeDatabaseServer

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

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

Jump to

Keyboard shortcuts

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