repository

package
v0.0.0-...-3e6e532 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func (SourceDynamoDBRepository) GetSource

func (repo SourceDynamoDBRepository) GetSource(source handlers.Source) (handlers.Source, error)

GetSource method to get a slice of routes for a Source

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL