Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerKnowledgeDocument ¶
type ServerKnowledgeDocument struct {
LastServerKnowledge int `dynamodbav:"lastServerKnowledge"`
}
type StorageAdapter ¶
type StorageAdapter interface { GetLastServerKnowledge(ctx context.Context, budgetId uuid.UUID) (int64, error) SetLastServerKnowledge(ctx context.Context, budgetId uuid.UUID, serverKnowledge int64) error }
func NewLocalStorageAdapter ¶
func NewLocalStorageAdapter() StorageAdapter
Creates a StorageAdapter which stores data in a yaml file. Intended mostly for prototyping or running in environments without "proper" KV storage mechanisms.
Click to show internal directories.
Click to hide internal directories.