middleware

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*bigquery.Client
	// contains filtered or unexported fields
}

func New

func New(client *bigquery.Client, opts ...Opt) *Client

func (*Client) Read

func (client *Client) Read(ctx context.Context, query *bigquery.Query) (it *bigquery.RowIterator, err error)

func (*Client) Run

func (client *Client) Run(ctx context.Context, query *bigquery.Query) (*bigquery.Job, error)

type Opt

type Opt func(*Client)

func WithKeyAndValues

func WithKeyAndValues(keyAndValues ...any) Opt

func WithLogger

func WithLogger(logger loggerMW) Opt

func WithSince

func WithSince(since func(time.Time) time.Duration) Opt

func WithSlowQueryThreshold

func WithSlowQueryThreshold(slowQueryThreshold time.Duration) Opt

Jump to

Keyboard shortcuts

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