package
0.0.0-20241120074608-6378e9d597be
Repository: https://github.com/orcfax/oracle-suite.git
Documentation: pkg.go.dev
# Functions
DetectCycle returns a cycle path in the given graph if a cycle is detected, otherwise returns an empty slice.
NewDevCircuitBreakerNode creates a new DevCircuitBreakerNode instance.
NewOriginNode creates a new OriginNode instance.
NewProvider creates a new price data.
NewReferenceNode creates a new ReferenceNode instance.
NewTickAliasNode creates a new TickAliasNode instance.
NewTickIndirectNode creates a new TickIndirectNode instance.
NewTickInvertNode creates a new TickInvertNode instance.
NewTickMedianNode creates a new TickMedianNode instance.
NewUpdater returns a new Updater instance.
NewWrapperNode creates a new WrapperNode instance.
Walk walks through the graph recursively and calls the given function for each node.
# Constants
No description provided by the author
# Structs
DevCircuitBreakerNode is a circuit breaker that tips if the value deviation between two nodes is greater than the breaker value.
No description provided by the author
OriginNode is a node that provides a data point for a specific origin.
Provider is a data provider which uses a graph structure to provide data points.
ReferenceNode is a node that references another node.
TickAliasNode is a node that aliases another tick's asset pair.
TickIndirectNode is a node that calculates cross rate from the list of price ticks from its nodes.
TickInvertNode is a node that inverts a price.
TickMedianNode is a node that calculates median value from its nodes.
Updater updates the origin nodes using points from the origins.
WrapperNode is a node that wraps another node with a custom meta.
# Interfaces
Node represents a node in a graph.
# Type aliases
MapMeta is a map that contains meta information as a key-value pairs.