Documentation ¶
Index ¶
- type Repository
- func (r Repository) CreateUser(user models.User, ctx context.Context) error
- func (r Repository) DeletePost(id int, c context.Context) error
- func (r Repository) DeleteTag(id int, ctx context.Context) error
- func (r Repository) FindAllPost(c context.Context) ([]*models.Post, error)
- func (r Repository) FindAllTag(ctx context.Context) ([]*models.Tag, error)
- func (r *Repository) FindPostById(id int, c context.Context) (*models.Post, error)
- func (r *Repository) FindTagById(id int, ctx context.Context) (*models.Tag, error)
- func (r Repository) InsertPost(post models.Post, c context.Context) error
- func (r Repository) InsertTag(tag models.Tag, ctx context.Context) error
- func (r Repository) UpdatePost(post models.Post, c context.Context) error
- func (r Repository) UpdateTag(tag models.Tag, ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
func NewRepository ¶
func NewRepository(db *sqlx.DB) Repository
func (Repository) CreateUser ¶
func (Repository) DeletePost ¶
func (r Repository) DeletePost(id int, c context.Context) error
func (Repository) FindAllPost ¶
func (Repository) FindAllTag ¶
func (*Repository) FindPostById ¶
func (*Repository) FindTagById ¶
func (Repository) InsertPost ¶
func (Repository) UpdatePost ¶
Click to show internal directories.
Click to hide internal directories.