server

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 14 Imported by: 2

Documentation

Index

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 NewServer

func NewServer(ctx context.Context, meter metric.Meter) (*Server, error)

NewServer creates a new 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 (s *Server) DeregisterPeer(p *peer.Peer)

func (*Server) RegisterPeer added in v0.29.0

func (s *Server) RegisterPeer(stream proto.SignalExchange_ConnectStreamServer) (*peer.Peer, error)

func (*Server) Send

Send forwards a message to the signal peer

Jump to

Keyboard shortcuts

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