repository

package
v0.0.0-...-9d5fb5c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogRepo

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

BlogRepo implements models.BlogRepository

func NewBlogRepo

func NewBlogRepo(db *sql.DB) *BlogRepo

NewBlogRepo ..

func (*BlogRepo) Categories

func (r *BlogRepo) Categories() ([]*model.Category, error)

func (*BlogRepo) Close

func (r *BlogRepo) Close()

func (*BlogRepo) GetAll

func (r *BlogRepo) GetAll() ([]*model.Blog, error)

func (*BlogRepo) Run

func (r *BlogRepo) Run(sql string) error

func (*BlogRepo) Save

func (r *BlogRepo) Save(blog *model.Blog) error
func (r *BlogRepo) SocialLinks() ([]*model.SocialLink, error)

Jump to

Keyboard shortcuts

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