Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ToGrpcError ¶
Types ¶
type Entry ¶
type Entry struct { // Term is the term of the log entry Term uint64 `json:"term"` // Index is the index of the log entry Index uint64 `json:"index"` // Data is the command of the log entry as an array of strings // Example: ["SET", "key", "value"], ["DEL", "key"] Data []string `json:"data"` }
func EntryFromBytes ¶
Click to show internal directories.
Click to hide internal directories.