Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_v1_sql_proto protoreflect.FileDescriptor
var SqlService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.SqlService", HandlerType: (*SqlServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Transaction", Handler: _SqlService_Transaction_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "v1/sql.proto", }
SqlService_ServiceDesc is the grpc.ServiceDesc for SqlService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSqlServiceServer ¶
func RegisterSqlServiceServer(s grpc.ServiceRegistrar, srv SqlServiceServer)
Types ¶
type SqlServiceClient ¶
type SqlServiceClient interface {
Transaction(ctx context.Context, opts ...grpc.CallOption) (SqlService_TransactionClient, error)
}
SqlServiceClient is the client API for SqlService 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 NewSqlServiceClient ¶
func NewSqlServiceClient(cc grpc.ClientConnInterface) SqlServiceClient
type SqlServiceServer ¶
type SqlServiceServer interface { Transaction(SqlService_TransactionServer) error // contains filtered or unexported methods }
SqlServiceServer is the server API for SqlService service. All implementations must embed UnimplementedSqlServiceServer for forward compatibility
type SqlService_TransactionClient ¶
type SqlService_TransactionClient interface { Send(*request.TransactionOperation) error Recv() (*response.TransactionResponse, error) grpc.ClientStream }
type SqlService_TransactionServer ¶
type SqlService_TransactionServer interface { Send(*response.TransactionResponse) error Recv() (*request.TransactionOperation, error) grpc.ServerStream }
type UnimplementedSqlServiceServer ¶
type UnimplementedSqlServiceServer struct { }
UnimplementedSqlServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSqlServiceServer) Transaction ¶
func (UnimplementedSqlServiceServer) Transaction(SqlService_TransactionServer) error
type UnsafeSqlServiceServer ¶
type UnsafeSqlServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSqlServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SqlServiceServer will result in compilation errors.