Documentation
¶
Index ¶
- type OnConnectionHandler
- type OnErrorHandler
- type Server
- func (s Server) BifrostStream(streamServer pb.StreamService_BifrostStreamServer) error
- func (s *Server) Listen(ip string)
- func (s *Server) OnConnection(handler OnConnectionHandler)
- func (s *Server) OnError(handler OnErrorHandler)
- func (s *Server) Stop()
- func (s Server) ValidatePeerInfo(envelope *pb.Envelope) (bool, string, bifrost.Key)
- func (s Server) ValidateResponsePeerInfo(envelope *pb.Envelope) (bool, string, bifrost.Key)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnConnectionHandler ¶
type OnConnectionHandler func(connection bifrost.Connection)
type OnErrorHandler ¶
type OnErrorHandler func(err error)
type Server ¶
func (Server) BifrostStream ¶
func (s Server) BifrostStream(streamServer pb.StreamService_BifrostStreamServer) error
func (*Server) OnConnection ¶
func (s *Server) OnConnection(handler OnConnectionHandler)
func (*Server) OnError ¶
func (s *Server) OnError(handler OnErrorHandler)
func (Server) ValidatePeerInfo ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.