Documentation ¶ Index ¶ type Storage func New() *Storage func (s *Storage) Create(c model.Comment) (string, error) func (s *Storage) Delete(id string) error func (s *Storage) Get(id string) (model.Comment, error) func (s *Storage) GetAll() ([]model.Comment, error) func (s *Storage) Update(c model.Comment) error 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 Source Files ¶ View all Source files memory.go Click to show internal directories. Click to hide internal directories.