Documentation
¶
Overview ¶
Package dnetserver implements the DiscoveryNetwork gRPC server. globals.go contains data used by each gRPC handler in dnetserver.
Index ¶
Constants ¶
View Source
const (
PASSWORD_SALT_LENGTH int = 64
)
Variables ¶
View Source
var Log *logger.ParanoidLogger
View Source
var PoolLock sync.RWMutex
PoolLock is locked when acessing the pool map
View Source
var Pools map[string]*Pool
Pools map
View Source
var RenewInterval time.Duration
RenewInterval global containing the time after which the nodes will be marked as inactive
View Source
var StateDirectoryPath string
StateDirectoryPath is the path to the directory in which the discovery server stores its state
View Source
var TempDirectoryPath string
TempDirecotryPath is the path to the directory where temporary state files are stored
Functions ¶
Types ¶
type DiscoveryServer ¶
type DiscoveryServer struct{}
DiscoveryServer struct
func (*DiscoveryServer) Disconnect ¶
func (s *DiscoveryServer) Disconnect(ctx context.Context, req *pb.DisconnectRequest) (*pb.EmptyMessage, error)
Disconnect method for Discovery Server
func (*DiscoveryServer) Join ¶
func (s *DiscoveryServer) Join(ctx context.Context, req *pb.JoinRequest) (*pb.JoinResponse, error)
Join method for Discovery Server
Click to show internal directories.
Click to hide internal directories.