mixnode

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package mixnode implements the mix server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MixServer

type MixServer struct {
	*node.Mix
	// contains filtered or unexported fields
}

MixServer is the data of a mix server

func CreateTestMixnode

func CreateTestMixnode() (*MixServer, error)

func NewMixServer

func NewMixServer(id string,
	host string,
	port string,
	prvKey *sphinx.PrivateKey,
	pubKey *sphinx.PublicKey,
	layer int,
) (*MixServer, error)

NewMixServer constructor TODO: Identical case to 'NewClient'

func (*MixServer) GetConfig

func (m *MixServer) GetConfig() config.MixConfig

GetConfig returns the config of the given mix server

func (*MixServer) Shutdown

func (m *MixServer) Shutdown()

Shutdown cleanly shuts down a given mixserver instance.

func (*MixServer) Start

func (m *MixServer) Start() error

Start runs a mix server

func (*MixServer) Wait

func (m *MixServer) Wait()

Wait waits till the mixserver is terminated for any reason.

type MixServerIt

type MixServerIt interface {
	networker.NetworkServer
	networker.NetworkClient
	GetConfig() config.MixConfig
	Start() error
}

MixServerIt is the interface of a mix server.

Jump to

Keyboard shortcuts

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