Documentation ¶
Index ¶
- func CreateLocalClient() *dynamodb.Client
- func CreateTableIfNotExists(d *dynamodb.Client, tableName string)
- type DynamoDBStore
- func (s *DynamoDBStore) GetBattle(code habit.BattleCode) (*habit.Battle, error)
- func (s *DynamoDBStore) GetHabit(username habit.Username, habitID habit.HabitID) (*habit.Habit, error)
- func (s *DynamoDBStore) ListBattlesByUser(username habit.Username) ([]*habit.Battle, error)
- func (s *DynamoDBStore) ListHabits(username habit.Username) ([]*habit.Habit, error)
- func (s *DynamoDBStore) UpdateBattle(b *habit.Battle) error
- func (s *DynamoDBStore) UpdateBattleStubs(b habit.Battle, h habit.Habit) error
- func (s *DynamoDBStore) UpdateHabit(h *habit.Habit) error
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLocalClient ¶
func CreateTableIfNotExists ¶
Types ¶
type DynamoDBStore ¶
type DynamoDBStore struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(addr string, tablename string) *DynamoDBStore
func (*DynamoDBStore) GetBattle ¶
func (s *DynamoDBStore) GetBattle(code habit.BattleCode) (*habit.Battle, error)
func (*DynamoDBStore) ListBattlesByUser ¶
func (*DynamoDBStore) ListHabits ¶
func (*DynamoDBStore) UpdateBattle ¶
func (s *DynamoDBStore) UpdateBattle(b *habit.Battle) error
func (*DynamoDBStore) UpdateBattleStubs ¶
func (*DynamoDBStore) UpdateHabit ¶
func (s *DynamoDBStore) UpdateHabit(h *habit.Habit) error
Click to show internal directories.
Click to hide internal directories.