puller

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryPuller

type BigQueryPuller struct {
	Ctx         context.Context
	Client      *bigquery.Client
	GcpProject  string
	DatasetName string
}

BigQueryPuller BigQueryPuller

func (*BigQueryPuller) GetNew

func (p *BigQueryPuller) GetNew() Puller

GetNew GetNew

func (*BigQueryPuller) Pull

func (p *BigQueryPuller) Pull(query string, params *[]bigquery.QueryParameter) *[][]bigquery.Value

Pull Pull

func (*BigQueryPuller) SetClient

func (p *BigQueryPuller) SetClient(clt *bigquery.Client)

SetClient SetClient

func (*BigQueryPuller) SetContext

func (p *BigQueryPuller) SetContext(ctx context.Context)

SetContext SetContext

type MockPuller

type MockPuller struct {
	Ctx         context.Context
	Client      *bigquery.Client
	GcpProject  string
	DatasetName string
	MockResp    [][]bigquery.Value
}

MockPuller MockPuller

func (*MockPuller) GetNew

func (p *MockPuller) GetNew() Puller

GetNew GetNew

func (*MockPuller) Pull

func (p *MockPuller) Pull(query string, params *[]bigquery.QueryParameter) *[][]bigquery.Value

Pull Pull

func (*MockPuller) SetClient

func (p *MockPuller) SetClient(clt *bigquery.Client)

SetClient SetClient

func (*MockPuller) SetContext

func (p *MockPuller) SetContext(ctx context.Context)

SetContext SetContext

type Puller

type Puller interface {
	Pull(query string, params *[]bigquery.QueryParameter) *[][]bigquery.Value
	SetClient(clt *bigquery.Client)
	SetContext(ctx context.Context)
}

Puller Puller

Jump to

Keyboard shortcuts

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