storj/satellite/payments/storjscan/storjscan.go
Yaroslav Vorobiov 62774768d9 satellite/payments/storjscan: update config and wrap service errors
Change-Id: I4f75375e9499119cbcce78c5e77d1950e4bae38b
2022-06-07 14:21:42 +00:00

19 lines
559 B
Go

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
package storjscan
import "github.com/spacemonkeygo/monkit/v3"
var mon = monkit.Package()
// Config stores needed information for storjscan service initialization.
type Config struct {
Endpoint string `help:"storjscan API endpoint"`
Auth struct {
Identifier string `help:"basic auth identifier"`
Secret string `help:"basic auth secret"`
}
Confirmations int `help:"required number of following blocks in the chain to accept payment as confirmed" default:"12"`
}