memory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func New

func New() *Storage

func (*Storage) Create

func (s *Storage) Create(c model.Comment) (string, error)

func (*Storage) Delete

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

func (*Storage) Get

func (s *Storage) Get(id string) (model.Comment, error)

func (*Storage) GetAll

func (s *Storage) GetAll() ([]model.Comment, error)

func (*Storage) Update

func (s *Storage) Update(c model.Comment) error

Jump to

Keyboard shortcuts

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