loaders

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	Phone        string
	BatchSize    int
	Overlap      time.Duration
	WithReceipts bool
}

func (Accounts) Load

func (l Accounts) Load(ctx jobs.Context, client Client, db database.DB) (ls []Interface, errs error)

func (Accounts) TableName

func (l Accounts) TableName() string

type Client

type Client interface {
	AccountsLightIb(ctx context.Context) (tinkoff.AccountsLightIbOut, error)
	AccountRequisites(ctx context.Context, in *tinkoff.AccountRequisitesIn) (*tinkoff.AccountRequisitesOut, error)
	Statements(ctx context.Context, in *tinkoff.StatementsIn) (tinkoff.StatementsOut, error)
	Operations(ctx context.Context, in *tinkoff.OperationsIn) (tinkoff.OperationsOut, error)
	ShoppingReceipt(ctx context.Context, in *tinkoff.ShoppingReceiptIn) (*tinkoff.ShoppingReceiptOut, error)
	ClientOfferEssences(ctx context.Context) (tinkoff.ClientOfferEssencesOut, error)
	InvestOperationTypes(ctx context.Context) (*tinkoff.InvestOperationTypesOut, error)
	InvestAccounts(ctx context.Context, in *tinkoff.InvestAccountsIn) (*tinkoff.InvestAccountsOut, error)
	InvestOperations(ctx context.Context, in *tinkoff.InvestOperationsIn) (*tinkoff.InvestOperationsOut, error)
}

type ClientOffers

type ClientOffers struct {
	Phone     string
	BatchSize int
}

func (ClientOffers) Load

func (l ClientOffers) Load(ctx jobs.Context, client Client, db database.DB) (ls []Interface, errs error)

func (ClientOffers) TableName

func (l ClientOffers) TableName() string

type Interface

type Interface interface {
	schema.Tabler
	Load(ctx jobs.Context, client Client, db database.DB) ([]Interface, error)
}

type InvestAccounts

type InvestAccounts struct {
	Phone     string
	BatchSize int
	Overlap   time.Duration
	Now       time.Time
}

func (InvestAccounts) Load

func (l InvestAccounts) Load(ctx jobs.Context, client Client, db database.DB) (ls []Interface, errs error)

func (InvestAccounts) TableName

func (l InvestAccounts) TableName() string

type InvestOperationTypes

type InvestOperationTypes struct {
	BatchSize int
}

func (InvestOperationTypes) Load

func (l InvestOperationTypes) Load(ctx jobs.Context, client Client, db database.DB) (ls []Interface, errs error)

func (InvestOperationTypes) TableName

func (l InvestOperationTypes) TableName() string

Jump to

Keyboard shortcuts

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