diff options
Diffstat (limited to 'server/object/tombstone.go')
| -rw-r--r-- | server/object/tombstone.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/object/tombstone.go b/server/object/tombstone.go index 05d9600..a2872f6 100644 --- a/server/object/tombstone.go +++ b/server/object/tombstone.go @@ -10,7 +10,17 @@ type Tombstone struct { Fields map[string]string } +type TombstoneKind struct {} + +func (t TombstoneKind) Undata(o proto.Object) Object { + return Tombstone {Id: o.Id, Fields: o.Fields} +} + func (t Tombstone) InfoFor(uid string) proto.Object { + return t.Data() +} + +func (t Tombstone) Data() proto.Object { return proto.Object {"gone", t.Id, t.Fields} } |
