A Patch represents a difference between a base snapshot and the patched snapshot. Patch implements View so either a patch or a base snapshot can be traversed in the same manner. Furthermore, patches can be easily chained to implement a sequence of patches to a base snapshot.
| 16 | // can be traversed in the same manner. Furthermore, patches can be easily |
| 17 | // chained to implement a sequence of patches to a base snapshot. |
| 18 | type Patch struct { |
| 19 | base View |
| 20 | diff *Snapshot |
| 21 | deletedObjects []ksuid.KSUID |
| 22 | deletedVectors []ksuid.KSUID |
| 23 | } |
| 24 | |
| 25 | var _ View = (*Patch)(nil) |
| 26 | var _ Writeable = (*Patch)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected