Documentation ¶
Index ¶
- type LisServer
- type RPCServer
- type Server
- func (s *Server) CleanUp()
- func (s *Server) Publish(ctx context.Context, data *rpc.PublishData) (*rpc.Response, error)
- func (s *Server) RegisterToPublish(ctx context.Context, info *rpc.PeerTopicInfo) (*rpc.Response, error)
- func (s *Server) Shutdown()
- func (s *Server) Start()
- func (s *Server) Subscribe(info *rpc.PeerTopicInfo, stream rpc.Mesh_SubscribeServer) error
- func (s *Server) UnregisterToPublish(ctx context.Context, info *rpc.PeerTopicInfo) (*rpc.Response, error)
- func (s *Server) Unsubscribe(ctx context.Context, info *rpc.PeerTopicInfo) (*rpc.Response, error)
- type WrapperHTTP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the RPC server and contains variables needed for RPC to work.
func (*Server) RegisterToPublish ¶
func (s *Server) RegisterToPublish(ctx context.Context, info *rpc.PeerTopicInfo) (*rpc.Response, error)
RegisterToPublish register a peer and topic with the remote access server.
func (*Server) Subscribe ¶
func (s *Server) Subscribe(info *rpc.PeerTopicInfo, stream rpc.Mesh_SubscribeServer) error
Subscribe serves a subscribe request over RPC
func (*Server) UnregisterToPublish ¶ added in v0.1.0
func (s *Server) UnregisterToPublish(ctx context.Context, info *rpc.PeerTopicInfo) (*rpc.Response, error)
UnregisterToPublish unregister a peer and topic with the remote access server.
func (*Server) Unsubscribe ¶ added in v0.1.0
Unsubscribe serves an unsubscribe request over RPC
type WrapperHTTP ¶
type WrapperHTTP struct {
// contains filtered or unexported fields
}
func (*WrapperHTTP) Stop ¶
func (wh *WrapperHTTP) Stop()
Click to show internal directories.
Click to hide internal directories.