storage

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: Apache-2.0 Imports: 9 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.UnimplementedStorageServer
	// contains filtered or unexported fields
}

Server is the webmesh storage server.

func NewServer

func NewServer(ctx context.Context, raft raft.Raft, rbac rbac.Evaluator, wg wireguard.Interface) *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(req *v1.QueryRequest, stream v1.Storage_QueryServer) error

func (*Server) Subscribe

func (s *Server) Subscribe(req *v1.SubscribeRequest, srv v1.Storage_SubscribeServer) error

Jump to

Keyboard shortcuts

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