pusher

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: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticPusher

type AnalyticPusher interface {
	Push(recs interface{}, table string) bool
	SetClient(clt *bigquery.Client)
	SetContext(ctx context.Context)
}

AnalyticPusher AnalyticPusher

type MockPusher

type MockPusher struct {
	Ctx             context.Context
	Client          *bigquery.Client
	GcpProject      string
	DatasetName     string
	MockPushSuccess bool
}

MockPusher MockPusher

func (*MockPusher) GetNew

func (p *MockPusher) GetNew() AnalyticPusher

GetNew GetNew

func (*MockPusher) Push

func (p *MockPusher) Push(recs interface{}, table string) bool

Push Push

func (*MockPusher) SetClient

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

SetClient SetClient

func (*MockPusher) SetContext

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

SetContext SetContext

type Pusher

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

Pusher Pusher

func (*Pusher) GetNew

func (p *Pusher) GetNew() AnalyticPusher

GetNew GetNew

func (*Pusher) Push

func (p *Pusher) Push(recs interface{}, table string) bool

Push Push

func (*Pusher) SetClient

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

SetClient SetClient

func (*Pusher) SetContext

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

SetContext SetContext

Jump to

Keyboard shortcuts

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