Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dynamo ¶
type Dynamo struct {
// contains filtered or unexported fields
}
Dynamo implements the participant Repository class to interact with DynamoDb.
func New ¶
func New(dynamoIface dynamodbiface.ClientAPI, tableName string) *Dynamo
New returns a new dynamo repository.
func (*Dynamo) Delete ¶
func (d *Dynamo) Delete(id string) participant.Error
Delete removes and entry matching the provided id.
func (*Dynamo) Get ¶
func (d *Dynamo) Get(id string) (*participant.Participant, participant.Error)
Get retrieves a participant from DynamoDb.
func (*Dynamo) GetAll ¶
func (d *Dynamo) GetAll() ([]*participant.Participant, participant.Error)
GetAll retrieves all participants from DynamoDb.
func (*Dynamo) Save ¶
func (d *Dynamo) Save(p participant.Participant) (*participant.Participant, participant.Error)
Save persists a participant to DynamoDb.
Click to show internal directories.
Click to hide internal directories.