package
0.0.1
Repository: https://github.com/karlmutch/go-service.git
Documentation: pkg.go.dev

# Functions

ConfigK8s is used to pull the values from a named config map in k8s This function will return an empty map and and error value on failure.
Allows testing software to query which port is being used by the prometheus metrics server resident inside the current server process.
initiateK8s runs until either ctx is Done or the listener is running successfully.
IsAliveK8s is used to extract any kv.in the state of the k8s client api connection.
No description provided by the author
No description provided by the author
ListenK8s will register a listener to watch for pod specific configMaps in k8s and will relay state changes to a channel, the global state map should exist at the bare minimum.
MonitorK8s is used to send appropriate errors into an error reporting channel on a regular basis if the k8s connectivity state changes .
NewStateBroadcast is used to instantiate a Kubernetes event broadcaster.
StartPrometheusExporter loops doing prometheus exports for resource consumption statistics etc on a regular basis The update interval must be equal to or large than five seconds or an error will be returned .
StartTelemetry is used to initialize OpenTelemetry tracing, the ctx (context) is used to close the root span when the sever closes the channel.

# Structs

K8sStateUpdate encapsulates the known kubernetes state within which the server finds itself.
Listeners is used to handle the broadcasting of cluster events when Kubernetes is being used.
Resource describes the needed resources for a runner task in a data structure that can be marshalled as json .
Resources is a receiver for resource related methods used to describe machine level capabilities .
StartTelemetryOpts is used to specify parameters for starting the OpenTelemetry module.

# Interfaces

No description provided by the author