Skip to content

Commit

Permalink
Merge pull request #43 from twharmon/iface-guard
Browse files Browse the repository at this point in the history
Add interface guard and update interface
  • Loading branch information
twharmon authored Jun 15, 2023
2 parents 399b46b + 38d17d4 commit a83b587
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dynago.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ import (
// dynago.Dynago service client's API operations. This make unit
// testing your code easier.
type DynagoAPI interface {
DeleteItem(interface{}) *DeleteItem
PutItem(interface{}) *PutItem
GetItem(interface{}) *GetItem
DeleteItem(Keyer) *DeleteItem
PutItem(Keyer) *PutItem
GetItem(Keyer) *GetItem
Query(interface{}) *Query
Scan(interface{}) *Scan
UpdateItem(interface{}) *UpdateItem
ConditionCheck(interface{}) *ConditionCheck
UpdateItem(Keyer) *UpdateItem
ConditionCheck(Keyer) *ConditionCheck
TransactionWriteItems() *TransactionWriteItems
Marshal(interface{}) (map[string]*dynamodb.AttributeValue, error)
Unmarshal(map[string]*dynamodb.AttributeValue, interface{}) error
}

var _ DynagoAPI = (*Dynago)(nil)

type Keyer interface {
PrimaryKeys() []string
}
Expand Down

0 comments on commit a83b587

Please sign in to comment.