Documentation ¶
Index ¶
- Constants
- type CreateMediafileParams
- type CreatePostParams
- type CreateSpotifyCacheParams
- type CreateYoutubebCacheParams
- type DBTX
- type GetAllTagsRow
- type GetPostPageParams
- type Mediafile
- type Post
- type Queries
- func (q *Queries) Backup(ctx context.Context) (string, error)
- func (q *Queries) CreateMediafile(ctx context.Context, arg CreateMediafileParams) (Mediafile, error)
- func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) (Post, error)
- func (q *Queries) CreateSpotifyCache(ctx context.Context, arg CreateSpotifyCacheParams) (SpotifyCache, error)
- func (q *Queries) CreateYoutubebCache(ctx context.Context, arg CreateYoutubebCacheParams) (YoutubeCache, error)
- func (q *Queries) DeleteMediafile(ctx context.Context, id int64) error
- func (q *Queries) DeletePost(ctx context.Context, createdAt int64) error
- func (q *Queries) GetAllTags(ctx context.Context, private int64) ([]GetAllTagsRow, error)
- func (q *Queries) GetMediaThunbnail(ctx context.Context, filePath string) ([]byte, error)
- func (q *Queries) GetMediafile(ctx context.Context, id int64) (Mediafile, error)
- func (q *Queries) GetPost(ctx context.Context, createdAt int64) (Post, error)
- func (q *Queries) GetPostCount(ctx context.Context, private int64) (int64, error)
- func (q *Queries) GetPostLatest(ctx context.Context) (Post, error)
- func (q *Queries) GetPostPage(ctx context.Context, arg GetPostPageParams) (int64, error)
- func (q *Queries) GetSpotifyCache(ctx context.Context, trackID string) (SpotifyCache, error)
- func (q *Queries) GetYoutubeCache(ctx context.Context, ytID string) (YoutubeCache, error)
- func (q *Queries) ListMediafiles(ctx context.Context) ([]Mediafile, error)
- func (q *Queries) ListPublicPosts(ctx context.Context) ([]Post, error)
- func (q *Queries) QueryPost(ctx context.Context, tags []string, search string, pritvate int, page int) ([]Post, int, error)
- func (q *Queries) RemoveUnusedSpotifyCache(ctx context.Context) (int64, error)
- func (q *Queries) RemoveUnusedYoutubeCache(ctx context.Context) (int64, error)
- func (q *Queries) UpdateMedia(ctx context.Context, arg UpdateMediaParams) error
- func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SpotifyCache
- type UpdateMediaParams
- type UpdatePostParams
- type YoutubeCache
Constants ¶
View Source
const PostsPerPage int = 25
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMediafileParams ¶
type CreatePostParams ¶
type CreatePostParams struct { Tags sql.NullString Content string Private int64 }
type GetAllTagsRow ¶
type GetAllTagsRow struct { Tag interface{} TagCount int64 }
type GetPostPageParams ¶ added in v0.7.0
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func NewQueries ¶
func (*Queries) CreateMediafile ¶
func (*Queries) CreatePost ¶
func (*Queries) CreateSpotifyCache ¶
func (q *Queries) CreateSpotifyCache(ctx context.Context, arg CreateSpotifyCacheParams) (SpotifyCache, error)
func (*Queries) CreateYoutubebCache ¶
func (q *Queries) CreateYoutubebCache(ctx context.Context, arg CreateYoutubebCacheParams) (YoutubeCache, error)
func (*Queries) DeleteMediafile ¶
func (*Queries) DeletePost ¶
func (*Queries) GetAllTags ¶
func (*Queries) GetMediaThunbnail ¶
func (*Queries) GetMediafile ¶
func (*Queries) GetPostCount ¶
func (*Queries) GetPostLatest ¶ added in v0.7.0
func (*Queries) GetPostPage ¶
func (*Queries) GetSpotifyCache ¶
func (*Queries) GetYoutubeCache ¶
func (*Queries) ListMediafiles ¶
func (*Queries) ListPublicPosts ¶ added in v0.7.0
func (*Queries) RemoveUnusedSpotifyCache ¶ added in v0.7.1
func (*Queries) RemoveUnusedYoutubeCache ¶ added in v0.7.1
func (*Queries) UpdateMedia ¶
func (q *Queries) UpdateMedia(ctx context.Context, arg UpdateMediaParams) error
func (*Queries) UpdatePost ¶
func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) error
type SpotifyCache ¶
type UpdateMediaParams ¶
type UpdatePostParams ¶
type UpdatePostParams struct { Tags sql.NullString Content string Private int64 CreatedAt int64 }
Click to show internal directories.
Click to hide internal directories.