http

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package http contains the HTTP server implementation for the demo project

Index

Constants

View Source
const ConsoleEndpointName = "ep.httpConsole"

ConsoleEndpointName is the name of the HTTP endpoint in the cluster

View Source
const MetricsEndpointName = "ep.metrics"

MetricsEndpointName is the name of the metrics endpoint for each node

Variables

This section is empty.

Functions

func ClusterOperational

func ClusterOperational(cluster funk.Cluster, shards sharding.ShardMap)

ClusterOperational sends notification to the connected HTTP clients TODO: naming. It makes zero sense.

func StartWebserver

func StartWebserver(endpoint string, cluster funk.Cluster, shards sharding.ShardMap)

StartWebserver starts the web server that hosts the status page.

func UpdateClusterStatus

func UpdateClusterStatus(cluster funk.Cluster)

UpdateClusterStatus updates the cluster status

Types

This section is empty.

Jump to

Keyboard shortcuts

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