| 30 | } |
| 31 | |
| 32 | type Engine interface { |
| 33 | ID() string |
| 34 | Leader() string |
| 35 | LeaderChange() <-chan bool |
| 36 | IsReady(ctx context.Context) bool |
| 37 | |
| 38 | Get(ctx context.Context, key string) ([]byte, error) |
| 39 | Exists(ctx context.Context, key string) (bool, error) |
| 40 | Set(ctx context.Context, key string, value []byte) error |
| 41 | Delete(ctx context.Context, key string) error |
| 42 | List(ctx context.Context, prefix string) ([]Entry, error) |
| 43 | |
| 44 | Close() error |
| 45 | } |
no outgoing calls
no test coverage detected