google_play

package
v0.0.0-...-8aeb8a1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SalesCollection    = "sales"
	EarningsCollection = "earnings"
)

Variables

This section is empty.

Functions

func NewGooglePlay

func NewGooglePlay(ctx context.Context, sourceConfig *base.SourceConfig, collection *base.Collection) (base.Driver, error)

NewGooglePlay returns configured Google Play driver instance

func TestGooglePlay

func TestGooglePlay(sourceConfig *base.SourceConfig) error

TestGooglePlay tests connection to Google Play without creating Driver instance

Types

type GooglePlay

type GooglePlay struct {
	base.IntervalDriver
	// contains filtered or unexported fields
}

func (*GooglePlay) Close

func (gp *GooglePlay) Close() error

func (*GooglePlay) GetAllAvailableIntervals

func (gp *GooglePlay) GetAllAvailableIntervals() ([]*base.TimeInterval, error)

func (*GooglePlay) GetCollectionMetaKey

func (gp *GooglePlay) GetCollectionMetaKey() string

func (*GooglePlay) GetCollectionTable

func (gp *GooglePlay) GetCollectionTable() string

func (*GooglePlay) GetObjectsFor

func (gp *GooglePlay) GetObjectsFor(interval *base.TimeInterval, objectsLoader base.ObjectsLoader) error

func (*GooglePlay) GetRefreshWindow

func (gp *GooglePlay) GetRefreshWindow() (time.Duration, error)

func (*GooglePlay) ReplaceTables

func (gp *GooglePlay) ReplaceTables() bool

func (*GooglePlay) Type

func (gp *GooglePlay) Type() string

type GooglePlayConfig

type GooglePlayConfig struct {
	AccountID  string                 `mapstructure:"account_id" json:"account_id,omitempty" yaml:"account_id,omitempty"`
	AccountKey *base.GoogleAuthConfig `mapstructure:"auth" json:"auth,omitempty" yaml:"auth,omitempty"`
}

func (*GooglePlayConfig) Validate

func (gpc *GooglePlayConfig) Validate() error

Jump to

Keyboard shortcuts

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