topology

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClientHost = "0.0.0.0"
	DefaultClientPort = "42"
)

Variables

This section is empty.

Functions

func GetClientPKI

func GetClientPKI(providerPresence ProviderPresence) ([]config.ClientConfig, error)

GetClientPKI returns a map of the current client PKI from the PKI database

func GetNetworkTopology

func GetNetworkTopology(endpoint string) (*models.Topology, error)

func ProviderPresenceToConfig

func ProviderPresenceToConfig(presence models.MixProviderPresence) (config.MixConfig, error)

func RegisteredClientToConfig

func RegisteredClientToConfig(client models.RegisteredClient) (config.ClientConfig, error)

Types

type LayeredMixes

type LayeredMixes map[uint][]config.MixConfig

LayeredMixes defines map of list of mix nodes corresponding to particular layer in given topology.

func GetMixesPKI

func GetMixesPKI(mixPresence MixPresence) (LayeredMixes, error)

GetMixesPKI returns PKI data for mix nodes, grouped by layer

type MixPresence

type MixPresence []models.MixNodePresence

MixPresence defines map containing presence information of all mix nodes in given topology.

type ProviderPresence

type ProviderPresence []models.MixProviderPresence

MixPresence defines map containing presence information of all providers in given topology.

Jump to

Keyboard shortcuts

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