github.com/diadata-org/diadata@v1.4.593/pkg/dia/helpers/hydration-helper/client.go (about) 1 package hydrationhelper 2 3 import ( 4 "github.com/sirupsen/logrus" 5 "time" 6 ) 7 8 const ( 9 AssetAddressURI = "AssetRegistry:Assets" 10 Blockchain = "polkadot" 11 GetAssetsPath = "assets" 12 ) 13 14 type HydrationClient struct { 15 logger *logrus.Entry 16 sleepBetweenCalls time.Duration 17 debug bool 18 } 19 20 func NewHydrationClient(logger *logrus.Entry, sleepBetweenCalls time.Duration, isDebug bool) *HydrationClient { 21 return &HydrationClient{ 22 logger: logger, 23 sleepBetweenCalls: sleepBetweenCalls, 24 debug: isDebug, 25 } 26 }