Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Get(ctx context.Context, key model.Key) (model.Value, error) Put(ctx context.Context, key model.Key, value model.Value) error Delete(ctx context.Context, key model.Key) error }
Database represents a database which has no insert and update method. We can use MySQL for inserting and updating but this is just an example.
Click to show internal directories.
Click to hide internal directories.