daemon

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIAddress

func APIAddress(listen string) string

APIAddress returns the API address to listen on, based on the provided address. Addresses with missing or zero port are returned with the default daemon port. All other addresses are returned without modification. If the input is garbage, the output will also be garbage.

func InitTracer

func InitTracer(tracing env.Tracing, id string) (io.Closer, error)

InitTracer initializes the global tracer.

func NewServer

func NewServer(cfg ServerConfig) *servers.DaemonServer

NewServer constructs a daemon API server.

func TrustEngine

func TrustEngine(
	cfgDir string,
	ia addr.IA,
	db trust.DB,
	dialer libgrpc.Dialer,
) (trust.Engine, error)

TrustEngine builds the trust engine backed by the trust database.

Types

type ServerConfig

type ServerConfig struct {
	IA       addr.IA
	MTU      uint16
	Fetcher  fetcher.Fetcher
	RevCache revcache.RevCache
	Engine   trust.Engine
	Topology servers.Topology
}

ServerConfig is the configuration for the daemon API server.

Directories

Path Synopsis
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
Package config contains the configuration of the SCION Daemon.
Package config contains the configuration of the SCION Daemon.
Package fetcher implements path segment fetching, verification and combination logic for SCIOND.
Package fetcher implements path segment fetching, verification and combination logic for SCIOND.
mock_fetcher
Package mock_fetcher is a generated GoMock package.
Package mock_fetcher is a generated GoMock package.
internal

Jump to

Keyboard shortcuts

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