storage

package
v0.0.0-...-b0feb97 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

Repository is a concrete implementation of the repository

func NewRepository

func NewRepository() Repository

NewRepository is a constructor for the repository implementation

func (Repository) GetBoxesByEmail

func (r Repository) GetBoxesByEmail(email string) ([]*domain.Box, error)

GetBoxesByEmail gets the boxes of a user by email

func (Repository) GetThingsByBox

func (r Repository) GetThingsByBox(boxID string) ([]*domain.Thing, error)

GetThingsByBox gets the things by box id

Jump to

Keyboard shortcuts

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