Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Key *ecdsa.PrivateKey PollDelay time.Duration DWH sonm.DWHClient Eth blockchain.API QueryLimit uint64 Log *zap.SugaredLogger }
type Matcher ¶
type Matcher interface {
CreateDealByOrder(ctx context.Context, order *sonm.Order) (*sonm.Deal, error)
}
func NewDisabledMatcher ¶
func NewDisabledMatcher() Matcher
NewDisabledMatcher return `Matcher` interface implementation that does nothing.
func NewMatcher ¶
type YAMLConfig ¶
type YAMLConfig struct { PollDelay time.Duration `yaml:"poll_delay" default:"30s"` QueryLimit uint64 `yaml:"query_limit" default:"50"` }
YAMLConfig is embeddable config that can be integrated with another component's config.
Click to show internal directories.
Click to hide internal directories.