server

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

type Server struct {
	bifrost.Crypto
	// contains filtered or unexported fields
}

func New

func New(key bifrost.KeyOpts, crypto bifrost.Crypto, metaData map[string]string) *Server

func (Server) BifrostStream

func (s Server) BifrostStream(streamServer pb.StreamService_BifrostStreamServer) error

func (*Server) Listen

func (s *Server) Listen(ip string)

func (*Server) OnConnection

func (s *Server) OnConnection(handler OnConnectionHandler)

func (*Server) OnError

func (s *Server) OnError(handler OnErrorHandler)

func (*Server) Stop added in v0.1.2

func (s *Server) Stop()

func (Server) ValidatePeerInfo added in v0.2.0

func (s Server) ValidatePeerInfo(envelope *pb.Envelope) (bool, string, bifrost.Key)

func (Server) ValidateResponsePeerInfo added in v0.2.0

func (s Server) ValidateResponsePeerInfo(envelope *pb.Envelope) (bool, string, bifrost.Key)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL