service

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DealMakerService

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

func NewDealMakerService

func NewDealMakerService(db *gorm.DB, lotusURL string, lotusToken string) (*DealMakerService, error)

func (DealMakerService) Run

func (d DealMakerService) Run(parent context.Context) error

type DealMakerWorker

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

func NewDealMakerWorker

func NewDealMakerWorker(db *gorm.DB,
	dealMaker *replication.DealMaker,
	walletChooser replication.WalletChooser,
	workerID uuid.UUID) *DealMakerWorker

func (*DealMakerWorker) Run

func (w *DealMakerWorker) Run(ctx context.Context, schedule model.Schedule)

type SpadeAPI

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

func NewSpadeAPIService

func NewSpadeAPIService(db *gorm.DB, dealMaker *replication.DealMaker, walletChooser replication.WalletChooser, bind string) *SpadeAPI

func (SpadeAPI) GetEligiblePieces

func (s SpadeAPI) GetEligiblePieces(c echo.Context) error

func (SpadeAPI) RequestPiece

func (s SpadeAPI) RequestPiece(c echo.Context) error

func (SpadeAPI) Start

func (s SpadeAPI) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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