Documentation ¶
Index ¶
- func RenderQuery(conn *pgxpool.Conn, w http.ResponseWriter, r *http.Request, ...)
- func RunQuery(conn *pgxpool.Conn, filter SearchFilter, data lbp_xml.PaginationData) (slot.PaginatedSlotList[slot.SearchSlot], error)
- func RunWebQuery(conn *pgxpool.Conn, filter SearchFilter, start, pageSize uint) ([]slot.SearchSlot, error)
- type SearchFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderQuery ¶
func RenderQuery(conn *pgxpool.Conn, w http.ResponseWriter, r *http.Request, filter SearchFilter)
func RunQuery ¶
func RunQuery(conn *pgxpool.Conn, filter SearchFilter, data lbp_xml.PaginationData) (slot.PaginatedSlotList[slot.SearchSlot], error)
func RunWebQuery ¶
func RunWebQuery(conn *pgxpool.Conn, filter SearchFilter, start, pageSize uint) ([]slot.SearchSlot, error)
Types ¶
type SearchFilter ¶
type SearchFilter interface { RunQuery(tx pgx.Tx, domain int, skip, take uint) (slot.PaginatedSlotList[slot.SearchSlot], error) GetQueryBase() string }
Click to show internal directories.
Click to hide internal directories.