repository

package
v0.0.0-...-42846c8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDBGameRepository

type DynamoDBGameRepository struct {
	// contains filtered or unexported fields
}

func NewDynamoDBGameRepository

func NewDynamoDBGameRepository(sess *session.Session, tableName string) (*DynamoDBGameRepository, error)

func (*DynamoDBGameRepository) Get

func (repo *DynamoDBGameRepository) Get(ID string) (*game.Game, error)

func (*DynamoDBGameRepository) Persist

func (repo *DynamoDBGameRepository) Persist(g *game.Game) error

type MongoGameRepository

type MongoGameRepository struct {
	// contains filtered or unexported fields
}

func NewMongoGameRepository

func NewMongoGameRepository(URI string) (*MongoGameRepository, error)

func (*MongoGameRepository) Get

func (r *MongoGameRepository) Get(GameID string) (*game.Game, error)

func (*MongoGameRepository) Persist

func (r *MongoGameRepository) Persist(g *game.Game) error

Jump to

Keyboard shortcuts

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