botNotify

package
v0.0.0-...-cd6a17b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const REMOWED_WORKERS_TEMP_TABLE_NAME = "wallet_workers_to_be_removed"

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangedUserWorker

type ChangedUserWorker struct {
	// contains filtered or unexported fields
}

type ChangedUserWorkers

type ChangedUserWorkers struct {
	// contains filtered or unexported fields
}

type ChangedWorkersDB

type ChangedWorkersDB struct {
	// contains filtered or unexported fields
}

type PayoutInfo

type PayoutInfo struct {
	// contains filtered or unexported fields
}

type Payouts

type Payouts struct {
	// contains filtered or unexported fields
}

func (*Payouts) Check

func (p *Payouts) Check(ctx context.Context)

type PlannedJob

type PlannedJob struct {
	// contains filtered or unexported fields
}

type PoolPayouts

type PoolPayouts struct {
	// contains filtered or unexported fields
}

type PoolPayoutsRequests

type PoolPayoutsRequests struct {
	// contains filtered or unexported fields
}

type PoolSoloPayouts

type PoolSoloPayouts struct {
	// contains filtered or unexported fields
}

type PoolWorkers

type PoolWorkers struct {
	// contains filtered or unexported fields
}

type PoolWorkersRequests

type PoolWorkersRequests struct {
	// contains filtered or unexported fields
}

type RemovalWorkerDB

type RemovalWorkerDB struct {
	WalletID int64  `json:"wallet_id"`
	Worker   string `json:"worker"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	pgConn *sqlx.DB,
	blockchainsService *blockchains.Service,
	b *bot.Bot,
	languages *languages.Languages,
	config *botConfig.NotifyConfig,
) *Service

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop() error

type SoloPayoutInfo

type SoloPayoutInfo struct {
	// contains filtered or unexported fields
}

type UserChangedWorkers

type UserChangedWorkers struct {
	// contains filtered or unexported fields
}

type UserInfo

type UserInfo struct {
	// contains filtered or unexported fields
}

type UserPayouts

type UserPayouts struct {
	// contains filtered or unexported fields
}

type UserWallet

type UserWallet struct {
	// contains filtered or unexported fields
}

type UserWalletPayouts

type UserWalletPayouts struct {
	UserPayouts
	// contains filtered or unexported fields
}

type UserWalletSoloPayouts

type UserWalletSoloPayouts struct {
	UserPayouts
	// contains filtered or unexported fields
}

type UserWalletWorkers

type UserWalletWorkers struct {
	// contains filtered or unexported fields
}

type WalletInfo

type WalletInfo struct {
	// contains filtered or unexported fields
}

type WorkerDB

type WorkerDB struct {
	RemovalWorkerDB
	Region      string    `json:"region"`
	Solo        bool      `json:"solo"`
	ConnectedAt time.Time `json:"connected_at"`
}

type WorkerInfo

type WorkerInfo struct {
	// contains filtered or unexported fields
}

func (WorkerInfo) Hash

func (w WorkerInfo) Hash() string

type Workers

type Workers struct {
	// contains filtered or unexported fields
}

func (*Workers) Check

func (w *Workers) Check(ctx context.Context)

Jump to

Keyboard shortcuts

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