store

package
v0.0.0-...-0cd6e3c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalStore

type GlobalStore struct {
	TodoStore *ToDoStore
}

func NewGlobalStore

func NewGlobalStore(db *gorm.DB) *GlobalStore

type ToDoStore

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

func NewToDoStore

func NewToDoStore(db *gorm.DB) *ToDoStore

func (*ToDoStore) Create

func (s *ToDoStore) Create(input *model.Todo) *uint32

func (*ToDoStore) Delete

func (s *ToDoStore) Delete(id uint32) uint32

func (*ToDoStore) Read

func (s *ToDoStore) Read(id uint32) *model.Todo

func (*ToDoStore) ReadAll

func (s *ToDoStore) ReadAll() []model.Todo

func (*ToDoStore) Update

func (s *ToDoStore) Update(id uint32, title string, description string) uint32

Jump to

Keyboard shortcuts

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