storage

package
v0.0.0-...-d400468 Latest Latest
Warning

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

Go to latest
Published: May 21, 2016 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 NounStorage

type NounStorage struct{}

NounStorage stores all nouns

func (*NounStorage) Delete

func (s *NounStorage) Delete(id string) error

Delete

func (NounStorage) GetAllPaginated

func (s NounStorage) GetAllPaginated(constraints constraints.PaginatedConstraints) (model.ResultSet, error)

Get all

func (NounStorage) GetOne

func (s NounStorage) GetOne(id string) (model.Noun, error)

Get one

func (*NounStorage) Insert

func (s *NounStorage) Insert(c model.Noun) (string, error)

Insert

func (*NounStorage) Update

func (s *NounStorage) Update(c model.Noun) error

Update

type TensePresIndStorage

type TensePresIndStorage struct{}

TensePresIndStorage stores all tenses

func (*TensePresIndStorage) Delete

func (t *TensePresIndStorage) Delete(id string) error

Delete

func (TensePresIndStorage) GetAllPaginated

func (t TensePresIndStorage) GetAllPaginated(constraints constraints.PaginatedConstraints) (model.ResultSet, error)

Get all

func (TensePresIndStorage) GetOne

Get one

func (*TensePresIndStorage) Insert

Insert

func (*TensePresIndStorage) Update

Update

type VerbStorage

type VerbStorage struct{}

VerbStorage stores all verbs

func (*VerbStorage) Delete

func (s *VerbStorage) Delete(id string) error

Delete

func (VerbStorage) GetAllPaginated

func (s VerbStorage) GetAllPaginated(constraints constraints.PaginatedConstraints) (model.ResultSet, error)

Get all

func (VerbStorage) GetOne

func (s VerbStorage) GetOne(id string) (model.Verb, error)

Get one

func (*VerbStorage) Insert

func (s *VerbStorage) Insert(c model.Verb) (string, error)

Insert

func (*VerbStorage) Update

func (s *VerbStorage) Update(c model.Verb) error

Update

Jump to

Keyboard shortcuts

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