coordinator

package
v0.0.0-...-4e8f7d9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: AGPL-3.0-or-later Imports: 21 Imported by: 0

Documentation

Overview

Package coordinator implements the entry/coordinator server.

Index

Constants

This section is empty.

Variables

View Source
var ErrServerClosed = errors.New("coordinator: server closed")

Functions

This section is empty.

Types

type GlobalAnnouncement

type GlobalAnnouncement struct {
	Message string
}

type NewRound

type NewRound struct {
	Round         uint32
	ConfigHash    string
	MixSettings   mixnet.RoundSettings
	MixSignatures [][]byte
	EndTime       time.Time
}

type OnionMsg

type OnionMsg struct {
	Round  uint32
	Onions [][]byte
}

type RoundError

type RoundError struct {
	Round uint32
	Err   string
}

type Server

type Server struct {
	Service    string
	PrivateKey ed25519.PrivateKey

	ConfigClient *config.Client

	RoundDelay time.Duration

	PersistPath string
	// contains filtered or unexported fields
}

Server is the coordinator (entry) server for the Vuvuzela conversation protocol.

func (*Server) Close

func (srv *Server) Close() error

func (*Server) LoadPersistedState

func (srv *Server) LoadPersistedState() error

func (*Server) Persist

func (srv *Server) Persist() error

func (*Server) Run

func (srv *Server) Run() error

func (*Server) ServeHTTP

func (srv *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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