Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMysqlConnection ¶
Types ¶
type CategoryCommand ¶
type CategoryCommand struct {
// contains filtered or unexported fields
}
func NewCategoryCommand ¶
func NewCategoryCommand(connection *sql.DB) *CategoryCommand
func (*CategoryCommand) Delete ¶
func (c *CategoryCommand) Delete(categoryId int64) error
type CategoryQuery ¶
type CategoryQuery struct {
// contains filtered or unexported fields
}
func NewCategoryQuery ¶
func NewCategoryQuery(connection *sql.DB) *CategoryQuery
type CommentCommand ¶
type CommentCommand struct {
// contains filtered or unexported fields
}
func NewCommentCommand ¶
func NewCommentCommand(connection *sql.DB) *CommentCommand
func (*CommentCommand) Delete ¶
func (c *CommentCommand) Delete(commentId int64) error
type CommentQuery ¶
type CommentQuery struct {
// contains filtered or unexported fields
}
func NewCommentQuery ¶
func NewCommentQuery(connection *sql.DB) *CommentQuery
func (*CommentQuery) FindAllByPost ¶
func (q *CommentQuery) FindAllByPost(postId int64) ([]domain.Comment, error)
type MysqlConfig ¶
type MysqlConnection ¶
type PostCommand ¶
type PostCommand struct {
// contains filtered or unexported fields
}
func NewPostCommand ¶
func NewPostCommand(connection *sql.DB) *PostCommand
func (*PostCommand) Delete ¶
func (c *PostCommand) Delete(postId int64) error
type PostQuery ¶
type PostQuery struct {
// contains filtered or unexported fields
}
func NewPostQuery ¶
type UserCommand ¶
type UserCommand struct {
// contains filtered or unexported fields
}
func NewUserCommand ¶
func NewUserCommand(connection *sql.DB) *UserCommand
func (*UserCommand) Delete ¶
func (userCmd *UserCommand) Delete(userId int64) error
type UserQuery ¶
type UserQuery struct {
// contains filtered or unexported fields
}
func NewUserQuery ¶
func (*UserQuery) FindByEmail ¶
Click to show internal directories.
Click to hide internal directories.