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.
Click to show internal directories.
Click to hide internal directories.