Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(server *grpc.Server, service unistream.CentrifugoUniStreamServer) error
RegisterService ...
Types ¶
type Config ¶
type Config struct { // ProtocolVersion used by default. If not set then we use centrifuge.ProtocolVersion1. ProtocolVersion centrifuge.ProtocolVersion }
type RawCodec ¶
type RawCodec struct{}
RawCodec allows sending Protobuf encoded Pushes without additional wrapping and marshaling.
type Service ¶
type Service struct { unistream.UnimplementedCentrifugoUniStreamServer // contains filtered or unexported fields }
Service can work with client GRPC connections.
func NewService ¶
func NewService(n *centrifuge.Node, c Config) *Service
NewService creates new Service.
func (*Service) Consume ¶
func (s *Service) Consume(req *unistream.ConnectRequest, stream unistream.CentrifugoUniStream_ConsumeServer) error
Consume is a unidirectional server->client stream with real-time data.
Click to show internal directories.
Click to hide internal directories.