pnetserver

package
v0.0.0-...-1a6bc1e Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package pnetserver implements the ParanoidNetwork gRPC server. globals.go contains data used by each gRPC handler in pnetserver.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ParanoidServer

type ParanoidServer struct{}

func (*ParanoidServer) JoinCluster

func (s *ParanoidServer) JoinCluster(ctx context.Context, req *pb.JoinClusterRequest) (*pb.EmptyMessage, error)

JoinCluster recieves requests from nodes asking to join raft cluster

func (*ParanoidServer) NewGeneration

NewGeneration recieves requests from nodes asking to create a new KeyPiece generation in preparation for joining the cluster.

func (*ParanoidServer) Ping

func (s *ParanoidServer) Ping(ctx context.Context, req *pb.Node) (*pb.EmptyMessage, error)

func (*ParanoidServer) RequestKeyPiece

func (s *ParanoidServer) RequestKeyPiece(ctx context.Context, req *pb.KeyPieceRequest) (*pb.KeyPiece, error)

func (*ParanoidServer) SendKeyPiece

func (s *ParanoidServer) SendKeyPiece(ctx context.Context, req *pb.KeyPieceSend) (*pb.SendKeyPieceResponse, error)

Jump to

Keyboard shortcuts

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