cli

package
v0.0.0-...-7f30880 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 30 Imported by: 0

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"`
	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