store

package
v0.0.0-...-7504a72 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoteStoreInterface

type NoteStoreInterface interface {
	Create(note *model.Note) (*model.Note, error)
	Get(noteID uint64) (*model.Note, error)
	List() ([]model.Note, error)
	Update(noteID uint64, note *model.Note) (*model.Note, error)
	Delete(noteID uint64) (bool, error)
}

type Store

type Store struct {
	Note NoteStoreInterface
}

func NewStore

func NewStore(db *sqlx.DB) *Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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