Documentation ¶
Overview ¶
Package node contains the webmesh node service.
Index ¶
- type Server
- func (s *Server) GetStatus(ctx context.Context, req *v1.GetStatusRequest) (*v1.Status, error)
- func (s *Server) NegotiateDataChannel(stream v1.Node_NegotiateDataChannelServer) error
- func (s *Server) Publish(ctx context.Context, req *v1.PublishRequest) (*v1.PublishResponse, error)
- func (s *Server) Query(req *v1.QueryRequest, stream v1.Node_QueryServer) error
- func (s *Server) Subscribe(req *v1.SubscribeRequest, srv v1.Node_SubscribeServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { v1.UnimplementedNodeServer // contains filtered or unexported fields }
Server is the webmesh node service.
func NewServer ¶
NewServer returns a new Server. Features are used for returning what features are enabled. It is the callers responsibility to ensure those servers are registered on the node. Insecure is used to disable authorization.
func (*Server) NegotiateDataChannel ¶
func (s *Server) NegotiateDataChannel(stream v1.Node_NegotiateDataChannelServer) error
func (*Server) Publish ¶ added in v0.2.0
func (s *Server) Publish(ctx context.Context, req *v1.PublishRequest) (*v1.PublishResponse, error)
func (*Server) Query ¶ added in v0.2.0
func (s *Server) Query(req *v1.QueryRequest, stream v1.Node_QueryServer) error
func (*Server) Subscribe ¶ added in v0.2.0
func (s *Server) Subscribe(req *v1.SubscribeRequest, srv v1.Node_SubscribeServer) error
Click to show internal directories.
Click to hide internal directories.