authority: github.com/katzenpost/authority/nonvoting/server Index | Files | Directories

package server

import "github.com/katzenpost/authority/nonvoting/server"

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

Package Files

server.go state.go wire_handler.go

Variables

var ErrGenerateOnly = errors.New("server: GenerateOnly set")

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

type Server Uses

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

Server is a non-voting authority server instance.

func New Uses

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

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

func (*Server) IdentityKey Uses

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

IdentityKey returns the running Server's identity public key.

func (*Server) RotateLog Uses

func (s *Server) RotateLog()

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

func (*Server) Shutdown Uses

func (s *Server) Shutdown()

Shutdown cleanly shuts down a given Server instance.

func (*Server) Wait Uses

func (s *Server) Wait()

Wait waits till the server is terminated for any reason.

Directories

PathSynopsis
configPackage config implements the Katzenpost non-voting authority server configuration.

Package server imports 23 packages (graph) and is imported by 1 packages. Updated 2019-04-14. Refresh now. Tools for package owners.