meshapi

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Overview

Package meshapi contains the webmesh Mesh API service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	v1.UnimplementedMeshServer
	// contains filtered or unexported fields
}

Server is the webmesh Mesh service.

func NewServer

func NewServer(store meshdb.Store) *Server

NewServer returns a new Server.

func (*Server) GetMeshGraph

func (s *Server) GetMeshGraph(ctx context.Context, _ *emptypb.Empty) (*v1.MeshGraph, error)

func (*Server) GetNode

func (s *Server) GetNode(ctx context.Context, req *v1.GetNodeRequest) (*v1.MeshNode, error)

func (*Server) ListNodes

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

Jump to

Keyboard shortcuts

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