cli

package
v0.0.0-...-d504ea7 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 30 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "kronos",
	Short: "kronos time service",
	Long: `
Kronos time service is used for getting synchronized time in a cluster of nodes
`,
}

RootCmd is the main command which contains all the kronos subcommands

Functions

This section is empty.

Types

type NodeInfo

type NodeInfo struct {
	ID           string                `json:"id"`
	RaftAddr     *kronospb.NodeAddr    `json:"raft_addr"`
	GRPCAddr     *kronospb.NodeAddr    `json:"grpc_addr"`
	ServerStatus kronospb.ServerStatus `json:"server_status"`
	OracleState  *kronospb.OracleState `json:"oracle_state"`
	Delta        int64                 `json:"delta"`
	Time         int64                 `json:"time"`
	Uptime       int64                 `json:"uptime"`
	Err          errMap                `json:"error"`
}

NodeInfo stores the information for a node required by cli commands like status, validate and any errors that occurred while fetching it.

Jump to

Keyboard shortcuts

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