Documentation ¶
Index ¶
- type Server
- func (s *Server) ConnectStream(stream proto.SignalExchange_ConnectStreamServer) error
- func (s *Server) DeregisterPeer(p *peer.Peer)
- func (s *Server) RegisterPeer(stream proto.SignalExchange_ConnectStreamServer) (*peer.Peer, error)
- func (s *Server) Send(ctx context.Context, msg *proto.EncryptedMessage) (*proto.EncryptedMessage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { proto.UnimplementedSignalExchangeServer // contains filtered or unexported fields }
Server an instance of a Signal server
func (*Server) ConnectStream ¶
func (s *Server) ConnectStream(stream proto.SignalExchange_ConnectStreamServer) error
ConnectStream connects to the exchange stream
func (*Server) DeregisterPeer ¶ added in v0.29.0
func (*Server) RegisterPeer ¶ added in v0.29.0
func (*Server) Send ¶
func (s *Server) Send(ctx context.Context, msg *proto.EncryptedMessage) (*proto.EncryptedMessage, error)
Send forwards a message to the signal peer
Click to show internal directories.
Click to hide internal directories.