daemon

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 23 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
	DRKeyClient *drkey.ClientEngine
}

ServerConfig is the configuration for the daemon API server.

Directories

Path Synopsis
cmd
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
Package mgmtapi provides primitives to interact with the openapi HTTP API.
Package mgmtapi provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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