service

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PostgresURI string

	LotusGatewayURL         string
	LotusExportedWalletAddr string

	AllowUnverifiedDeals             bool
	MaxVerifiedPricePerGiBPerEpoch   int64
	MaxUnverifiedPricePerGiBPerEpoch int64
	RelayMaddr                       string

	Mock bool
}

Config defines params for Service configuration.

type Service

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

Service is a gRPC service wrapper around an packer.

func New

func New(mb mbroker.MsgBroker, conf Config) (*Service, error)

New returns a new Service.

func (*Service) Close

func (s *Service) Close() error

Close the service.

func (*Service) OnReadyToCreateDeals

func (s *Service) OnReadyToCreateDeals(ctx context.Context, ads dealeri.AuctionDeals) error

OnReadyToCreateDeals process an event for deals to be executed.

Jump to

Keyboard shortcuts

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