database

package
v0.0.0-...-04f13a7 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Endpoint string
View Source
var TableName string

Functions

func InitSession

func InitSession() *dynamodb.DynamoDB

Types

type ClientDatabase

type ClientDatabase struct {
	DynamodbClient dynamodbiface.DynamoDBAPI
}

func (*ClientDatabase) InitDb

func (c *ClientDatabase) InitDb() error

type DAL

type DAL struct {
	DynamodbClient dynamodbiface.DynamoDBAPI
}

func (*DAL) GetPokemonByID

func (d *DAL) GetPokemonByID(id string) (*model.Pokemon, error)

func (*DAL) ListPokemon

func (d *DAL) ListPokemon(query model.PokemonsQueryInput) (*model.PokemonConnection, error)

func (*DAL) ListPokemonTypes

func (d *DAL) ListPokemonTypes() ([]string, error)

func (*DAL) UpdateFavoritePokemon

func (d *DAL) UpdateFavoritePokemon(id string, isFavorite *bool) (*model.Pokemon, error)

type DataLoader

type DataLoader struct {
	BaseUrl        string
	ImageUrl       string
	DynamodbClient dynamodbiface.DynamoDBAPI
}

func (DataLoader) Populate

func (d DataLoader) Populate() error

type ScanAttributes

type ScanAttributes struct {
	FilterExpression          *string
	ExpressionAttributeValues map[string]*dynamodb.AttributeValue
	ExpressionAttributeNames  map[string]*string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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