store

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	User() UserRepository
	Update() UpdateRepository
}

Store is responsible for data manipulation.

type UpdateRepository

type UpdateRepository interface {
	Create(update *model.Update) error
	FindByID(id int) (*model.Update, error)
}

type UserRepository

type UserRepository interface {
	Create(user *model.User) error
	FindByID(id int) (*model.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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