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 ¶
GetCurrentTopology atomically returns a pointer to the package-wide default topology.
func SetCurrentTopology ¶
SetCurrentTopology atomically sets the package-wide default topology to topo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.