cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package cli provide command line interface helpers for hotstuff.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.3.0

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GenerateGoLatencyMatrix added in v0.5.0

func GenerateGoLatencyMatrix(srcFile string, allToAllMatrix map[string]map[string]string) ([]byte, error)

GenerateGoLatencyMatrix generates Go code for the latency matrix so that it can be compiled into the binary.

func LatencyMatrix added in v0.5.0

func LatencyMatrix(allToAllMatrix map[string]map[string]string) ([]string, [][]time.Duration)

LatencyMatrix returns the location names and the full latency matrix. Currently not used, but it could be used if we want to load latency data at runtime.

func ParseCSVLatencies added in v0.5.0

func ParseCSVLatencies(csvData string) (map[string]map[string]string, error)

ParseCSVLatencies reads a CSV string and returns a map of maps representing the latency matrix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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