Versions in this module Expand all Collapse all v0 v0.1.0 Oct 31, 2026 v0.0.17 Jul 14, 2026 v0.0.16 Jun 17, 2026 v0.0.15 Feb 18, 2026 v0.0.14 May 13, 2024 Changes in this version + type AddDomainParams struct + Active bool + Domain string + type AddRedirectParams struct + Active bool + Code int64 + Description string + Destination string + Flags target.Flags + Source string + type AddRouteParams struct + Active bool + Description string + Destination string + Flags target.Flags + Source string + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type Domain struct + Active bool + Domain string + ID int64 + type Favicon struct + Host string + ID int64 + Ico sql.NullString + Png sql.NullString + Svg sql.NullString + type GetActiveRedirectsRow struct + Code int64 + Destination string + Flags target.Flags + Source string + type GetActiveRoutesRow struct + Destination string + Flags target.Flags + Source string + type GetAllRedirectsRow struct + Active bool + Code int64 + Description string + Destination string + Flags target.Flags + Source string + type GetAllRoutesRow struct + Active bool + Description string + Destination string + Flags target.Flags + Source string + type GetFaviconsRow struct + Host string + Ico sql.NullString + Png sql.NullString + Svg sql.NullString + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) AddDomain(ctx context.Context, arg AddDomainParams) error + func (q *Queries) AddRedirect(ctx context.Context, arg AddRedirectParams) error + func (q *Queries) AddRoute(ctx context.Context, arg AddRouteParams) error + func (q *Queries) DeleteDomain(ctx context.Context, domain string) error + func (q *Queries) GetActiveDomains(ctx context.Context) ([]string, error) + func (q *Queries) GetActiveRedirects(ctx context.Context) ([]GetActiveRedirectsRow, error) + func (q *Queries) GetActiveRoutes(ctx context.Context) ([]GetActiveRoutesRow, error) + func (q *Queries) GetAllRedirects(ctx context.Context) ([]GetAllRedirectsRow, error) + func (q *Queries) GetAllRoutes(ctx context.Context) ([]GetAllRoutesRow, error) + func (q *Queries) GetFavicons(ctx context.Context) ([]GetFaviconsRow, error) + func (q *Queries) RemoveRedirect(ctx context.Context, source string) error + func (q *Queries) RemoveRoute(ctx context.Context, source string) error + func (q *Queries) UpdateFaviconCache(ctx context.Context, arg UpdateFaviconCacheParams) error + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Redirect struct + Active bool + Code int64 + Description string + Destination string + Flags target.Flags + ID int64 + Source string + type Route struct + Active bool + Description string + Destination string + Flags target.Flags + ID int64 + Source string + type UpdateFaviconCacheParams struct + Host string + Ico sql.NullString + Png sql.NullString + Svg sql.NullString