repository

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 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 BlogRepository

type BlogRepository struct {
	Core *core.Core
}

func NewBlogRepository

func NewBlogRepository(c *core.Core) *BlogRepository

func (*BlogRepository) Delete

func (r *BlogRepository) Delete(ctx context.Context, id uint64) (err error)

func (*BlogRepository) GetAll

func (r *BlogRepository) GetAll(ctx context.Context) (res []model.Blog, err error)

func (*BlogRepository) GetByID

func (r *BlogRepository) GetByID(ctx context.Context, id uint64) (res model.Blog, err error)

func (*BlogRepository) Insert

func (r *BlogRepository) Insert(ctx context.Context, data *model.Blog) (err error)

func (*BlogRepository) Update

func (r *BlogRepository) Update(ctx context.Context, id uint64, data *model.Blog) (err error)

type UserRepository

type UserRepository struct {
	Core *core.Core
}

func NewUserRepository

func NewUserRepository(c *core.Core) *UserRepository

func (*UserRepository) GetByEmail

func (r *UserRepository) GetByEmail(ctx context.Context, email string) (res model.User, err error)

func (*UserRepository) Insert

func (r *UserRepository) Insert(ctx context.Context, data *model.User) (err error)

Jump to

Keyboard shortcuts

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