consul: Adding new request to reap tombstones

This commit is contained in:
Armon Dadgar 2014-12-15 15:01:04 -08:00
parent 9f30ffbf9a
commit 02e984e4c4
1 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,7 @@ const (
KVSRequestType
SessionRequestType
ACLRequestType
TombstoneReapRequestType
)
const (
@ -531,6 +532,17 @@ type EventFireResponse struct {
QueryMeta
}
// TombstoneReapRequest is used to trigger a reaping of the tombstones
type TombstoneReapRequest struct {
Datacenter string
ReapIndex uint64
WriteRequest
}
func (r *TombstoneReapRequest) RequestDatacenter() string {
return r.Datacenter
}
// msgpackHandle is a shared handle for encoding/decoding of structs
var msgpackHandle = &codec.MsgpackHandle{}