StoreObject is an abstract object that can be handled by the store.
| 17 | |
| 18 | // StoreObject is an abstract object that can be handled by the store. |
| 19 | type StoreObject interface { |
| 20 | GetID() string // Get ID |
| 21 | GetMeta() Meta // Retrieve metadata |
| 22 | SetMeta(Meta) // Set metadata |
| 23 | CopyStoreObject() StoreObject // Return a copy of this object |
| 24 | EventCreate() Event // Return a creation event |
| 25 | EventUpdate(oldObject StoreObject) Event // Return an update event |
| 26 | EventDelete() Event // Return a deletion event |
| 27 | } |
| 28 | |
| 29 | // Event is the type used for events passed over watcher channels, and also |
| 30 | // the type used to specify filtering in calls to Watch. |
no outgoing calls
no test coverage detected