Documentation ¶
Index ¶
- type AddUserParams
- type DBTX
- type Post
- type PostAuthor
- type PostStatus
- type PostTag
- type PostTopic
- type Queries
- func (q *Queries) AddUser(ctx context.Context, arg AddUserParams) (User, error)
- func (q *Queries) DeleteUser(ctx context.Context, id int32) error
- func (q *Queries) FetchAllUsers(ctx context.Context) ([]User, error)
- func (q *Queries) FetchUser(ctx context.Context, id int32) (User, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Setting
- type Subscriber
- type Tag
- type Topic
- type UpdateUserParams
- type UpdateUserPasswordParams
- type User
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUserParams ¶
type Post ¶
type Post struct { ID int32 `db:"id"` Title string `db:"title"` Slug string `db:"slug"` Summary string `db:"summary"` FeatureImg sql.NullString `db:"feature_img"` Content string `db:"content"` Status string `db:"status"` Likes int64 `db:"likes"` Views int64 `db:"views"` PublishedAt sql.NullTime `db:"published_at"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` }
type PostAuthor ¶
type PostStatus ¶
type PostStatus string
const ( PostStatusDraft PostStatus = "draft" PostStatusPublish PostStatus = "publish" PostStatusArchive PostStatus = "archive" )
func (*PostStatus) Scan ¶
func (e *PostStatus) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) FetchAllUsers ¶
func (*Queries) UpdateUser ¶
func (*Queries) UpdateUserPassword ¶
type Subscriber ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.