Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultPollInterval = 30 * time.Second DefaultExpiry = 30 * 24 * time.Hour )
Enumerate default options.
Functions ¶
This section is empty.
Types ¶
type Confirmer ¶
type Confirmer struct {
// contains filtered or unexported fields
}
Confirmer handles requests that have been validated. It checks if requests have reached sufficient confirmations and stores those that have not to be checked later.
type Options ¶
Options to configure the precise behaviour of the confirmer.
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns new options with default configurations that should work for the majority of use cases.
func (Options) WithExpiry ¶
WithExpiry returns new options with the given transaction expiry.
func (Options) WithLogger ¶
func (opts Options) WithLogger(logger logrus.FieldLogger) Options
WithLogger returns new options with the given logger.
Click to show internal directories.
Click to hide internal directories.