Skip to content

Commit

Permalink
MLPAB-2321 fix interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
acsauk committed Nov 26, 2024
1 parent 834ee60 commit a819bb3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/event-received/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type uidEvent struct {

type dynamodbClient interface {
AnyByPK(ctx context.Context, pk dynamo.PK, v interface{}) error
AllByLpaUIDAndPartialSK(ctx context.Context, uid string, v interface{}) error
AllByLpaUIDAndPartialSK(ctx context.Context, uid, partialSK string, v interface{}) error
CreateOnly(ctx context.Context, v interface{}) error
DeleteOne(ctx context.Context, pk dynamo.PK, sk dynamo.SK) error
DeleteManyByUID(ctx context.Context, keys []dynamo.Keys, uid string) error
Expand Down
2 changes: 1 addition & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type DynamoClient interface {
AllByKeys(ctx context.Context, keys []dynamo.Keys) ([]map[string]dynamodbtypes.AttributeValue, error)
AllByPartialSK(ctx context.Context, pk dynamo.PK, partialSK dynamo.SK, v interface{}) error
AllBySK(ctx context.Context, sk dynamo.SK, v interface{}) error
AllByLpaUIDAndPartialSK(ctx context.Context, uid string, v interface{}) error
AllByLpaUIDAndPartialSK(ctx context.Context, uid, partialSK string, v interface{}) error
AllKeysByPK(ctx context.Context, pk dynamo.PK) ([]dynamo.Keys, error)
AnyByPK(ctx context.Context, pk dynamo.PK, v interface{}) error
BatchPut(ctx context.Context, items []interface{}) error
Expand Down
2 changes: 1 addition & 1 deletion internal/dynamo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (c *Client) OneByUID(ctx context.Context, uid string, v interface{}) error
return attributevalue.UnmarshalMap(response.Items[0], v)
}

func (c *Client) AllByLpaUIDAndPartialSK(ctx context.Context, uid string, partialSK string, v interface{}) error {
func (c *Client) AllByLpaUIDAndPartialSK(ctx context.Context, uid, partialSK string, v interface{}) error {
response, err := c.svc.Query(ctx, &dynamodb.QueryInput{
TableName: aws.String(c.table),
IndexName: aws.String(lpaUIDIndex),
Expand Down
2 changes: 1 addition & 1 deletion internal/scheduled/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

type DynamoClient interface {
AllByLpaUIDAndPartialSK(ctx context.Context, uid string, partialSK string, v interface{}) error
AllByLpaUIDAndPartialSK(ctx context.Context, uid, partialSK string, v interface{}) error
AnyByPK(ctx context.Context, pk dynamo.PK, v interface{}) error
DeleteManyByUID(ctx context.Context, keys []dynamo.Keys, uid string) error
Move(ctx context.Context, oldKeys dynamo.Keys, value any) error
Expand Down

0 comments on commit a819bb3

Please sign in to comment.