server

package
v0.0.0-...-f661f07 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2013 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockHandler

func BlockHandler(f func([]byte, net.Conn), lengthMax uint16) func(net.Conn)

func ConnectionError

func ConnectionError(c net.Conn)

func SendBlock

func SendBlock(messageType msg.Type, data []byte, c net.Conn)

func Start

func Start(handlers HandlerMap)

Types

type HandlerMap

type HandlerMap map[msg.Type]func(net.Conn)

Directories

Path Synopsis
Package ballot provides all needed handlers to run a "Ballot Server" A Ballot Server signes (blinded) ballot.
Package ballot provides all needed handlers to run a "Ballot Server" A Ballot Server signes (blinded) ballot.
Package vote provides all needed handlers to run a "Vote Server" A Vote server does the actual collection of all the votes (signed ballots).
Package vote provides all needed handlers to run a "Vote Server" A Vote server does the actual collection of all the votes (signed ballots).
Package voterlist provides all needed handlers to run a "Voter List Server" A "Voter List Server" provides a list of registered voters' public keys.
Package voterlist provides all needed handlers to run a "Voter List Server" A "Voter List Server" provides a list of registered voters' public keys.

Jump to

Keyboard shortcuts

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