storage

package
v0.0.0-...-f59f382 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 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 {
	GetPosts() ([]*models.Post, error)
	GetPostById(id uint) (*models.Post, error)
	CreatePost(post *models.Post) (*models.Post, error)
	CreateComment(comment *models.Comment) (*models.Comment, error)
	GetComments(postID uint, limit *int, offset *int) ([]models.Comment, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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