Documentation ¶
Index ¶
- Constants
- func NewGooglePlay(ctx context.Context, sourceConfig *base.SourceConfig, ...) (base.Driver, error)
- func TestGooglePlay(sourceConfig *base.SourceConfig) error
- type GooglePlay
- func (gp *GooglePlay) Close() error
- func (gp *GooglePlay) GetAllAvailableIntervals() ([]*base.TimeInterval, error)
- func (gp *GooglePlay) GetCollectionMetaKey() string
- func (gp *GooglePlay) GetCollectionTable() string
- func (gp *GooglePlay) GetObjectsFor(interval *base.TimeInterval, objectsLoader base.ObjectsLoader) error
- func (gp *GooglePlay) GetRefreshWindow() (time.Duration, error)
- func (gp *GooglePlay) ReplaceTables() bool
- func (gp *GooglePlay) Type() string
- type GooglePlayConfig
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
Click to show internal directories.
Click to hide internal directories.