package
3.2.6+incompatible
Repository: https://github.com/openark/orchestrator.git
Documentation: pkg.go.dev
# Functions
AcquireAccessToken attempts to acquire a hopefully free token; returning in such case the secretToken as proof of ownership.
AttemptElection tries to grab leadership (become active node).
ContinuousRegistration will continuously update the node_health table showing that the current process is still running.
ElectedNode returns the details of the elected node, as well as answering the question "is this process the elected one"?.
ExpireAccessTokens removes old, known to be uneligible tokens.
ExpireAvailableNodes is an aggressive purging method to remove node entries who have skipped their keepalive for two times.
ExpireNodesHistory cleans up the nodes history and is run by the orchestrator active node.
GenerateAccessToken attempts to generate a new access token and returns the public part of the token.
GrabElection forcibly grabs leadership.
HealthTest attempts to write to the backend database and get a result.
No description provided by the author
No description provided by the author
Reelect clears the way for re-elections.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TokenIsValid checks to see whether a given token exists and is not outdated.
RegisterNode writes down this node in the node_health table.
# Constants
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author