node

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package node contains the webmesh node service.

Index

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

func NewServer(store mesh.Mesh, features []v1.Feature, insecure bool) *Server

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) GetStatus

func (s *Server) GetStatus(ctx context.Context, req *v1.GetStatusRequest) (*v1.Status, error)

func (*Server) Join

func (s *Server) Join(ctx context.Context, req *v1.JoinRequest) (*v1.JoinResponse, error)

func (*Server) Leave

func (s *Server) Leave(ctx context.Context, req *v1.LeaveRequest) (*emptypb.Empty, error)

func (*Server) NegotiateDataChannel

func (s *Server) NegotiateDataChannel(stream v1.Node_NegotiateDataChannelServer) error

func (*Server) Snapshot

func (s *Server) Snapshot(ctx context.Context, req *v1.SnapshotRequest) (*v1.SnapshotResponse, error)

func (*Server) Update added in v0.1.2

func (s *Server) Update(ctx context.Context, req *v1.UpdateRequest) (*v1.UpdateResponse, error)

Jump to

Keyboard shortcuts

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