✨ Push stream able to get which request success
⬆️ Upgrade protobuf version
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v5.28.2
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v5.28.3
|
||||
// source: database.proto
|
||||
|
||||
package proto
|
||||
@@ -15,8 +15,12 @@ import (
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
DatabaseService_AllocDatabase_FullMethodName = "/proto.DatabaseService/AllocDatabase"
|
||||
)
|
||||
|
||||
// DatabaseServiceClient is the client API for DatabaseService service.
|
||||
//
|
||||
@@ -34,8 +38,9 @@ func NewDatabaseServiceClient(cc grpc.ClientConnInterface) DatabaseServiceClient
|
||||
}
|
||||
|
||||
func (c *databaseServiceClient) AllocDatabase(ctx context.Context, in *AllocDatabaseRequest, opts ...grpc.CallOption) (*AllocDatabaseResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AllocDatabaseResponse)
|
||||
err := c.cc.Invoke(ctx, "/proto.DatabaseService/AllocDatabase", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, DatabaseService_AllocDatabase_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -44,20 +49,24 @@ func (c *databaseServiceClient) AllocDatabase(ctx context.Context, in *AllocData
|
||||
|
||||
// DatabaseServiceServer is the server API for DatabaseService service.
|
||||
// All implementations must embed UnimplementedDatabaseServiceServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type DatabaseServiceServer interface {
|
||||
AllocDatabase(context.Context, *AllocDatabaseRequest) (*AllocDatabaseResponse, error)
|
||||
mustEmbedUnimplementedDatabaseServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedDatabaseServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedDatabaseServiceServer struct {
|
||||
}
|
||||
// UnimplementedDatabaseServiceServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedDatabaseServiceServer struct{}
|
||||
|
||||
func (UnimplementedDatabaseServiceServer) AllocDatabase(context.Context, *AllocDatabaseRequest) (*AllocDatabaseResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AllocDatabase not implemented")
|
||||
}
|
||||
func (UnimplementedDatabaseServiceServer) mustEmbedUnimplementedDatabaseServiceServer() {}
|
||||
func (UnimplementedDatabaseServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeDatabaseServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to DatabaseServiceServer will
|
||||
@@ -67,6 +76,13 @@ type UnsafeDatabaseServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterDatabaseServiceServer(s grpc.ServiceRegistrar, srv DatabaseServiceServer) {
|
||||
// If the following call pancis, it indicates UnimplementedDatabaseServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&DatabaseService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
@@ -80,7 +96,7 @@ func _DatabaseService_AllocDatabase_Handler(srv interface{}, ctx context.Context
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/proto.DatabaseService/AllocDatabase",
|
||||
FullMethod: DatabaseService_AllocDatabase_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(DatabaseServiceServer).AllocDatabase(ctx, req.(*AllocDatabaseRequest))
|
||||
|
Reference in New Issue
Block a user