Documentation ¶
Index ¶
- type SourceDynamoDBRepository
- func (repo SourceDynamoDBRepository) CreateRoute(source handlers.Source) error
- func (repo SourceDynamoDBRepository) GetAllSources() ([]handlers.Source, error)
- func (repo SourceDynamoDBRepository) GetRouteForSource(sourceName string, routeName string) (handlers.Route, error)
- func (repo SourceDynamoDBRepository) GetSource(source handlers.Source) (handlers.Source, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceDynamoDBRepository ¶
type SourceDynamoDBRepository struct { Svc dynamodbiface.DynamoDBAPI TableName string }
SourceDynamoDBRepository struct containing in dynamodb connection
func (SourceDynamoDBRepository) CreateRoute ¶
func (repo SourceDynamoDBRepository) CreateRoute(source handlers.Source) error
CreateRoute method to create a route
func (SourceDynamoDBRepository) GetAllSources ¶
func (repo SourceDynamoDBRepository) GetAllSources() ([]handlers.Source, error)
GetAllSources method to get a slice of Sources
func (SourceDynamoDBRepository) GetRouteForSource ¶
func (repo SourceDynamoDBRepository) GetRouteForSource(sourceName string, routeName string) (handlers.Route, error)
GetRouteForSource method to retrieve a route for a given source
Click to show internal directories.
Click to hide internal directories.