db

package
v0.0.0-...-a07eed6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(ctx context.Context) (int64, error)

Types

type Entry

type Entry struct {
	Size     Size                   `bigquery:"size" json:"size"`
	Image    bigquery.NullString    `bigquery:"image" json:"image"`
	Title    bigquery.NullString    `bigquery:"title" json:"title"`
	Modified bigquery.NullTimestamp `bigquery:"modified" json:"modified"`
	URL      bigquery.NullString    `bigquery:"url" json:"url"`
}

func Get

func Get(ctx context.Context, urls []string) ([]*Entry, error)

func Page

func Page(ctx context.Context, n, perPage int64) ([]*Entry, error)

type Size

type Size struct {
	Height bigquery.NullInt64 `bigquery:"height" json:"height"`
	Width  bigquery.NullInt64 `bigquery:"width" json:"width"`
}

Jump to

Keyboard shortcuts

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