reader

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostStorage

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

func NewPostStorage

func NewPostStorage(conn postgres.Conn) *PostStorage

func (*PostStorage) Count

func (s *PostStorage) Count() (int, error)

func (*PostStorage) CountSearch

func (s *PostStorage) CountSearch(search string) (int, error)

func (*PostStorage) List

func (s *PostStorage) List(limit, offset int) ([]*reader.Post, error)

func (*PostStorage) ListSearch

func (s *PostStorage) ListSearch(search string, limit, offset int) ([]*reader.Post, error)

type Storage

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

func New

func New(conn postgres.Conn) *Storage

func (*Storage) Post

func (s *Storage) Post() *PostStorage

Jump to

Keyboard shortcuts

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