storage

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package storage provides the storage server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the webmesh storage server.

func NewServer

func NewServer(ctx context.Context, storage storage.Provider, rbac rbac.Evaluator, mnet meshnet.Manager) *Server

NewServer returns a new storage Server.

func (*Server) Publish

func (s *Server) Publish(ctx context.Context, req *v1.PublishRequest) (*v1.PublishResponse, error)

func (*Server) Query

func (s *Server) Query(ctx context.Context, req *v1.QueryRequest) (*v1.QueryResponse, error)

func (*Server) Subscribe

Jump to

Keyboard shortcuts

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