server

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: AGPL-3.0 Imports: 25 Imported by: 2

Documentation

Overview

Package server implements the Katzenpost non-voting authority server.

The non-voting authority server is intended to be a stop gap for debugging and testing and is likely only suitable for very small networks where the lack of distributed trust and or quality of life features is a non-issue.

Index

Constants

This section is empty.

Variables

View Source
var (
	MixPublishDeadline = epochtime.Period / 4

	WarpedEpoch string
)
View Source
var ErrGenerateOnly = errors.New("server: GenerateOnly set")

ErrGenerateOnly is the error returned when the server initialization terminates due to the `GenerateOnly` debug config option.

Functions

This section is empty.

Types

type Server

type Server struct {
	sync.WaitGroup
	// contains filtered or unexported fields
}

Server is a non-voting authority server instance.

func New

func New(cfg *config.Config) (*Server, error)

New returns a new Server instance parameterized with the specific configuration.

func (*Server) IdentityKey

func (s *Server) IdentityKey() *eddsa.PublicKey

IdentityKey returns the running Server's identity public key.

func (*Server) RotateLog added in v0.0.3

func (s *Server) RotateLog()

RotateLog rotates the log file if logging to a file is enabled.

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown cleanly shuts down a given Server instance.

func (*Server) Wait

func (s *Server) Wait()

Wait waits till the server is terminated for any reason.

Directories

Path Synopsis
Package config implements the Katzenpost non-voting authority server configuration.
Package config implements the Katzenpost non-voting authority server configuration.

Jump to

Keyboard shortcuts

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