Client is the interface that must be implemented for a remote state driver. It supports dumb put/get/delete, and the higher level structs handle persisting the state properly here.
| 15 | // driver. It supports dumb put/get/delete, and the higher level structs |
| 16 | // handle persisting the state properly here. |
| 17 | type Client interface { |
| 18 | Get(context.Context) (*Payload, error) |
| 19 | Put(context.Context, []byte) error |
| 20 | Delete(context.Context) error |
| 21 | } |
| 22 | |
| 23 | // ClientForcePusher is an optional interface that allows a remote |
| 24 | // state to force push by managing a flag on the client that is |
no outgoing calls
no test coverage detected