repository

package
v0.0.0-...-76fdd16 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 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 ItemTemplatesRepository

type ItemTemplatesRepository interface {
	FindAll() ([]entities.ItemTemplate, error)
	FindByTemplateID(templateID string) (*entities.ItemTemplate, error)
}

ItemTemplatesRepository repository interface

func NewItemTemplatesRepository

func NewItemTemplatesRepository(dungeonDataDir string) ItemTemplatesRepository

NewItemTemplatesRepository creates a new itemTemplatesRepository

type ItemsRepository

type ItemsRepository interface {
	FindAll() ([]*entities.Item, error)
	FindByID(id string) (*entities.Item, error)
	Store(item *entities.Item) (*entities.Item, error)
	Update(item *entities.Item) error
}

ItemsRepository repository interface

func NewMongoItemsRepository

func NewMongoItemsRepository(db *db.Client) ItemsRepository

NewMongoItemsRepository creates a new mongodb ItemsRepository

Jump to

Keyboard shortcuts

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