✨ List related relatives
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.4.0
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v5.27.1
|
||||
// source: stream.proto
|
||||
|
||||
@ -15,8 +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.62.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion8
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
StreamController_CountStreamConnection_FullMethodName = "/proto.StreamController/CountStreamConnection"
|
||||
@ -85,7 +85,7 @@ func (c *streamControllerClient) EmitStreamEvent(ctx context.Context, in *Stream
|
||||
|
||||
// StreamControllerServer is the server API for StreamController service.
|
||||
// All implementations must embed UnimplementedStreamControllerServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type StreamControllerServer interface {
|
||||
CountStreamConnection(context.Context, *CountConnectionRequest) (*CountConnectionResponse, error)
|
||||
PushStream(context.Context, *PushStreamRequest) (*PushStreamResponse, error)
|
||||
@ -94,9 +94,12 @@ type StreamControllerServer interface {
|
||||
mustEmbedUnimplementedStreamControllerServer()
|
||||
}
|
||||
|
||||
// UnimplementedStreamControllerServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedStreamControllerServer struct {
|
||||
}
|
||||
// UnimplementedStreamControllerServer 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 UnimplementedStreamControllerServer struct{}
|
||||
|
||||
func (UnimplementedStreamControllerServer) CountStreamConnection(context.Context, *CountConnectionRequest) (*CountConnectionResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountStreamConnection not implemented")
|
||||
@ -111,6 +114,7 @@ func (UnimplementedStreamControllerServer) EmitStreamEvent(context.Context, *Str
|
||||
return nil, status.Errorf(codes.Unimplemented, "method EmitStreamEvent not implemented")
|
||||
}
|
||||
func (UnimplementedStreamControllerServer) mustEmbedUnimplementedStreamControllerServer() {}
|
||||
func (UnimplementedStreamControllerServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeStreamControllerServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to StreamControllerServer will
|
||||
@ -120,6 +124,13 @@ type UnsafeStreamControllerServer interface {
|
||||
}
|
||||
|
||||
func RegisterStreamControllerServer(s grpc.ServiceRegistrar, srv StreamControllerServer) {
|
||||
// If the following call pancis, it indicates UnimplementedStreamControllerServer 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(&StreamController_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user