Documentation ¶
Index ¶
- type Apikey
- type Chikito
- type CreateAPIKeyParams
- type CreateChikitoParams
- type CreatePostParams
- type CreateProjectParams
- type DBTX
- type NullPostStatus
- type Post
- type PostStatus
- type Project
- type Queries
- func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) (Apikey, error)
- func (q *Queries) CreateChikito(ctx context.Context, arg CreateChikitoParams) (Chikito, error)
- func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) (Post, error)
- func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (Project, error)
- func (q *Queries) GetAPIKeyByValue(ctx context.Context, key string) (Apikey, error)
- func (q *Queries) GetChikito(ctx context.Context, publicID string) (Chikito, error)
- func (q *Queries) GetPost(ctx context.Context, publicID string) (Post, error)
- func (q *Queries) GetPostBySlug(ctx context.Context, slug string) (Post, error)
- func (q *Queries) GetPosts(ctx context.Context) ([]Post, error)
- func (q *Queries) GetProject(ctx context.Context, publicID string) (Project, error)
- func (q *Queries) GetProjects(ctx context.Context) ([]Project, error)
- func (q *Queries) RevokeAPIKey(ctx context.Context, publicID string) error
- func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) (Post, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdatePostParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAPIKeyParams ¶
type CreateChikitoParams ¶ added in v1.3.0
type CreatePostParams ¶
type CreateProjectParams ¶
type NullPostStatus ¶
type NullPostStatus struct { PostStatus PostStatus Valid bool // Valid is true if PostStatus is not NULL }
func (*NullPostStatus) Scan ¶
func (ns *NullPostStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type PostStatus ¶
type PostStatus string
const ( PostStatusDraft PostStatus = "draft" PostStatusPublished PostStatus = "published" PostStatusArchived PostStatus = "archived" )
func (*PostStatus) Scan ¶
func (e *PostStatus) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAPIKey ¶
func (*Queries) CreateChikito ¶ added in v1.3.0
func (*Queries) CreatePost ¶
func (*Queries) CreateProject ¶
func (*Queries) GetAPIKeyByValue ¶ added in v1.2.0
func (*Queries) GetChikito ¶ added in v1.3.0
func (*Queries) GetPostBySlug ¶
func (*Queries) GetProject ¶
func (*Queries) RevokeAPIKey ¶
func (*Queries) UpdatePost ¶
Click to show internal directories.
Click to hide internal directories.