itopo

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package itopo stores a singleton topology for reloading. Client packages that grab a reference with GetCurrentTopology are guaranteed to receive a stable snapshot of the topology.

To change the pointer for future GetCurrentTopology calls, use SetCurrentTopology whenever topology information changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentTopology

func GetCurrentTopology() *topology.Topo

GetCurrentTopology atomically returns a pointer to the package-wide default topology.

func SetCurrentTopology

func SetCurrentTopology(topo *topology.Topo)

SetCurrentTopology atomically sets the package-wide default topology to topo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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