Documentation
¶
Index ¶
- Variables
- type Bookmark
- type InsertBookmarkReq
- type InsertQueryResultsReq
- type OptOptionsSetter
- type Options
- type QueryResult
- type Service
- func (s *Service) Conn(ctx context.Context) qrm.DB
- func (*Service) DeleteBookmark(conn qrm.DB, uid config.UserID, bookmarkID uuid6.UUID) error
- func (s *Service) DoInTx(ctx context.Context, transactionCallback func(conn qrm.DB) error) error
- func (*Service) GetQueryResultsByID(conn qrm.DB, queryID uuid6.UUID) (*model.QueryResults, error)
- func (*Service) InsertBookmark(conn qrm.DB, req InsertBookmarkReq) error
- func (*Service) InsertQueryResults(conn qrm.DB, req InsertQueryResultsReq) error
- func (*Service) ListBookmarks(conn qrm.DB, uid config.UserID, targetID config.TargetID) ([]Bookmark, error)
- func (*Service) ListBookmarksByUser(conn qrm.DB, uid config.UserID) ([]Bookmark, error)
- func (*Service) ListQueryResults(conn qrm.DB, limit, offset int64) ([]QueryResult, error)
- func (*Service) ListQueryResultsByUser(conn qrm.DB, uid config.UserID, limit int64) ([]QueryResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrIntegrityViolation = errors.New("integrity violation") )
Functions ¶
This section is empty.
Types ¶
type InsertBookmarkReq ¶ added in v0.17.1
type InsertQueryResultsReq ¶
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
type QueryResult ¶ added in v0.17.3
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DeleteBookmark ¶ added in v0.17.1
func (*Service) GetQueryResultsByID ¶ added in v0.17.11
func (*Service) InsertBookmark ¶ added in v0.17.1
func (*Service) InsertBookmark(conn qrm.DB, req InsertBookmarkReq) error
func (*Service) InsertQueryResults ¶
func (*Service) InsertQueryResults(conn qrm.DB, req InsertQueryResultsReq) error
func (*Service) ListBookmarks ¶ added in v0.17.1
func (*Service) ListBookmarksByUser ¶ added in v0.17.1
func (*Service) ListQueryResults ¶ added in v0.17.11
func (*Service) ListQueryResultsByUser ¶ added in v0.17.3
Source Files
¶
Click to show internal directories.
Click to hide internal directories.