github.com/kula/etcd@v0.2.1-0.20131226070625-e96234382ac0/store/response_v1.go (about) 1 package store 2 3 import ( 4 "time" 5 ) 6 7 // The response from the store to the user who issue a command 8 type Response struct { 9 Action string `json:"action"` 10 Key string `json:"key"` 11 Dir bool `json:"dir,omitempty"` 12 PrevValue string `json:"prevValue,omitempty"` 13 Value string `json:"value,omitempty"` 14 15 // If the key did not exist before the action, 16 // this field should be set to true 17 NewKey bool `json:"newKey,omitempty"` 18 19 Expiration *time.Time `json:"expiration,omitempty"` 20 21 // Time to live in second 22 TTL int64 `json:"ttl,omitempty"` 23 24 // The command index of the raft machine when the command is executed 25 Index uint64 `json:"index"` 26 }