Storage is an interface to a kite storage. A storage should be safe to concurrent access.
| 8 | // Storage is an interface to a kite storage. A storage should be safe to |
| 9 | // concurrent access. |
| 10 | type Storage interface { |
| 11 | // Get retrieves the Kites with the given query |
| 12 | Get(query *protocol.KontrolQuery) (Kites, error) |
| 13 | |
| 14 | // Add inserts the given kite with the given value |
| 15 | Add(kite *protocol.Kite, value *kontrolprotocol.RegisterValue) error |
| 16 | |
| 17 | // Update updates the value for the given kite |
| 18 | Update(kite *protocol.Kite, value *kontrolprotocol.RegisterValue) error |
| 19 | |
| 20 | // Delete deletes the given kite from the storage |
| 21 | Delete(kite *protocol.Kite) error |
| 22 | |
| 23 | // Upsert inserts or updates the value for the given kite |
| 24 | Upsert(kite *protocol.Kite, value *kontrolprotocol.RegisterValue) error |
| 25 | } |
no outgoing calls
no test coverage detected