Documentation
¶
Index ¶
- type Bookmark
- type BookmarkStatus
- type CountBookmarksSearchResultsParams
- type CreateBookmarkParams
- type CreateUserParams
- type DBTX
- type FetchArchivedBookmarksListParams
- type FetchBookmarksListParams
- type MarkBookmarkFetchedParams
- type NullBookmarkStatus
- type Queries
- func (q *Queries) ArchiveBookmark(ctx context.Context, id int64) error
- func (q *Queries) CountArchivedBookmarksList(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) CountBookmarksList(ctx context.Context, userID int64) (int64, error)
- func (q *Queries) CountBookmarksSearchResults(ctx context.Context, arg CountBookmarksSearchResultsParams) (int64, error)
- func (q *Queries) CreateBookmark(ctx context.Context, arg CreateBookmarkParams) (Bookmark, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteBookmarks(ctx context.Context, agehours int32) error
- func (q *Queries) FetchArchivedBookmarksList(ctx context.Context, arg FetchArchivedBookmarksListParams) ([]Bookmark, error)
- func (q *Queries) FetchBookmarkByID(ctx context.Context, id int64) (Bookmark, error)
- func (q *Queries) FetchBookmarksList(ctx context.Context, arg FetchBookmarksListParams) ([]Bookmark, error)
- func (q *Queries) FetchCategories(ctx context.Context, userID int64) ([]pgtype.Text, error)
- func (q *Queries) FetchUserByUsername(ctx context.Context, email string) (User, error)
- func (q *Queries) MarkBookmarkFetched(ctx context.Context, arg MarkBookmarkFetchedParams) error
- func (q *Queries) SearchBookmarks(ctx context.Context, arg SearchBookmarksParams) ([]Bookmark, error)
- func (q *Queries) UnarchiveBookmark(ctx context.Context, id int64) error
- func (q *Queries) UpdateBookmarkCategory(ctx context.Context, arg UpdateBookmarkCategoryParams) error
- func (q *Queries) UpdateBookmarkDetails(ctx context.Context, arg UpdateBookmarkDetailsParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SchemaMigration
- type SearchBookmarksParams
- type UpdateBookmarkCategoryParams
- type UpdateBookmarkDetailsParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bookmark ¶
type Bookmark struct { ID int64 UserID int64 Url string Title pgtype.Text Html pgtype.Text FilePath pgtype.Text Status BookmarkStatus CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz Category pgtype.Text DeletedAt pgtype.Timestamptz }
type BookmarkStatus ¶
type BookmarkStatus string
const ( BookmarkStatusPending BookmarkStatus = "pending" BookmarkStatusFetched BookmarkStatus = "fetched" BookmarkStatusArchived BookmarkStatus = "archived" )
func (*BookmarkStatus) Scan ¶
func (e *BookmarkStatus) Scan(src interface{}) error
type CreateBookmarkParams ¶
type CreateUserParams ¶
type NullBookmarkStatus ¶
type NullBookmarkStatus struct { BookmarkStatus BookmarkStatus Valid bool // Valid is true if BookmarkStatus is not NULL }
func (*NullBookmarkStatus) Scan ¶
func (ns *NullBookmarkStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ArchiveBookmark ¶
func (*Queries) CountArchivedBookmarksList ¶
func (*Queries) CountBookmarksList ¶
func (*Queries) CountBookmarksSearchResults ¶
func (*Queries) CreateBookmark ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteBookmarks ¶
func (*Queries) FetchArchivedBookmarksList ¶
func (*Queries) FetchBookmarkByID ¶
func (*Queries) FetchBookmarksList ¶
func (*Queries) FetchCategories ¶
func (*Queries) FetchUserByUsername ¶
func (*Queries) MarkBookmarkFetched ¶
func (q *Queries) MarkBookmarkFetched(ctx context.Context, arg MarkBookmarkFetchedParams) error
func (*Queries) SearchBookmarks ¶
func (*Queries) UnarchiveBookmark ¶
func (*Queries) UpdateBookmarkCategory ¶
func (q *Queries) UpdateBookmarkCategory(ctx context.Context, arg UpdateBookmarkCategoryParams) error
func (*Queries) UpdateBookmarkDetails ¶
func (q *Queries) UpdateBookmarkDetails(ctx context.Context, arg UpdateBookmarkDetailsParams) error
type SchemaMigration ¶
type SearchBookmarksParams ¶
Click to show internal directories.
Click to hide internal directories.