✨ Able to get user by using name
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v5.28.2
|
||||
// source: stream.proto
|
||||
|
||||
@@ -15,14 +15,8 @@ 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.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
StreamService_CountStreamConnection_FullMethodName = "/proto.StreamService/CountStreamConnection"
|
||||
StreamService_PushStream_FullMethodName = "/proto.StreamService/PushStream"
|
||||
StreamService_PushStreamBatch_FullMethodName = "/proto.StreamService/PushStreamBatch"
|
||||
)
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
|
||||
// StreamServiceClient is the client API for StreamService service.
|
||||
//
|
||||
@@ -42,9 +36,8 @@ func NewStreamServiceClient(cc grpc.ClientConnInterface) StreamServiceClient {
|
||||
}
|
||||
|
||||
func (c *streamServiceClient) CountStreamConnection(ctx context.Context, in *CountConnectionRequest, opts ...grpc.CallOption) (*CountConnectionResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CountConnectionResponse)
|
||||
err := c.cc.Invoke(ctx, StreamService_CountStreamConnection_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, "/proto.StreamService/CountStreamConnection", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -52,9 +45,8 @@ func (c *streamServiceClient) CountStreamConnection(ctx context.Context, in *Cou
|
||||
}
|
||||
|
||||
func (c *streamServiceClient) PushStream(ctx context.Context, in *PushStreamRequest, opts ...grpc.CallOption) (*PushStreamResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(PushStreamResponse)
|
||||
err := c.cc.Invoke(ctx, StreamService_PushStream_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, "/proto.StreamService/PushStream", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -62,9 +54,8 @@ func (c *streamServiceClient) PushStream(ctx context.Context, in *PushStreamRequ
|
||||
}
|
||||
|
||||
func (c *streamServiceClient) PushStreamBatch(ctx context.Context, in *PushStreamBatchRequest, opts ...grpc.CallOption) (*PushStreamResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(PushStreamResponse)
|
||||
err := c.cc.Invoke(ctx, StreamService_PushStreamBatch_FullMethodName, in, out, cOpts...)
|
||||
err := c.cc.Invoke(ctx, "/proto.StreamService/PushStreamBatch", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -73,7 +64,7 @@ func (c *streamServiceClient) PushStreamBatch(ctx context.Context, in *PushStrea
|
||||
|
||||
// StreamServiceServer is the server API for StreamService service.
|
||||
// All implementations must embed UnimplementedStreamServiceServer
|
||||
// for forward compatibility.
|
||||
// for forward compatibility
|
||||
type StreamServiceServer interface {
|
||||
CountStreamConnection(context.Context, *CountConnectionRequest) (*CountConnectionResponse, error)
|
||||
PushStream(context.Context, *PushStreamRequest) (*PushStreamResponse, error)
|
||||
@@ -81,12 +72,9 @@ type StreamServiceServer interface {
|
||||
mustEmbedUnimplementedStreamServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedStreamServiceServer 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 UnimplementedStreamServiceServer struct{}
|
||||
// UnimplementedStreamServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedStreamServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedStreamServiceServer) CountStreamConnection(context.Context, *CountConnectionRequest) (*CountConnectionResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountStreamConnection not implemented")
|
||||
@@ -98,7 +86,6 @@ func (UnimplementedStreamServiceServer) PushStreamBatch(context.Context, *PushSt
|
||||
return nil, status.Errorf(codes.Unimplemented, "method PushStreamBatch not implemented")
|
||||
}
|
||||
func (UnimplementedStreamServiceServer) mustEmbedUnimplementedStreamServiceServer() {}
|
||||
func (UnimplementedStreamServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeStreamServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to StreamServiceServer will
|
||||
@@ -108,13 +95,6 @@ type UnsafeStreamServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterStreamServiceServer(s grpc.ServiceRegistrar, srv StreamServiceServer) {
|
||||
// If the following call pancis, it indicates UnimplementedStreamServiceServer 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(&StreamService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
@@ -128,7 +108,7 @@ func _StreamService_CountStreamConnection_Handler(srv interface{}, ctx context.C
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: StreamService_CountStreamConnection_FullMethodName,
|
||||
FullMethod: "/proto.StreamService/CountStreamConnection",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(StreamServiceServer).CountStreamConnection(ctx, req.(*CountConnectionRequest))
|
||||
@@ -146,7 +126,7 @@ func _StreamService_PushStream_Handler(srv interface{}, ctx context.Context, dec
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: StreamService_PushStream_FullMethodName,
|
||||
FullMethod: "/proto.StreamService/PushStream",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(StreamServiceServer).PushStream(ctx, req.(*PushStreamRequest))
|
||||
@@ -164,7 +144,7 @@ func _StreamService_PushStreamBatch_Handler(srv interface{}, ctx context.Context
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: StreamService_PushStreamBatch_FullMethodName,
|
||||
FullMethod: "/proto.StreamService/PushStreamBatch",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(StreamServiceServer).PushStreamBatch(ctx, req.(*PushStreamBatchRequest))
|
||||
|
Reference in New Issue
Block a user