repository

package
v0.0.0-...-6281d58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateExcludedDomainParams

type CreateExcludedDomainParams struct {
	Domain string
	Now    int64
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type MozHost

type MozHost struct {
	ID                 int64
	Host               sql.NullString
	Type               sql.NullString
	Permission         sql.NullInt64
	Expiretype         sql.NullInt64
	Expiretime         sql.NullInt64
	Modificationtime   sql.NullInt64
	Isinbrowserelement sql.NullInt64
}

type MozPerm

type MozPerm struct {
	ID               int64
	Origin           sql.NullString
	Type             sql.NullString
	Permission       sql.NullInt64
	Expiretype       sql.NullInt64
	Expiretime       sql.NullInt64
	Modificationtime sql.NullInt64
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) CountExcludedDomain

func (q *Queries) CountExcludedDomain(ctx context.Context, domain string) (int64, error)

func (*Queries) CreateExcludedDomain

func (q *Queries) CreateExcludedDomain(ctx context.Context, arg CreateExcludedDomainParams) error

func (*Queries) DeleteAll

func (q *Queries) DeleteAll(ctx context.Context) (int64, error)

func (*Queries) ListExcludedOrigins

func (q *Queries) ListExcludedOrigins(ctx context.Context) ([]sql.NullString, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL