Documentation ¶
Index ¶
Constants ¶
View Source
const ( RetryWaitMax = 120 * time.Second RetryMax = 60 )
View Source
const ( // SCRestAPIPrefix represents base URL path to execute smart contract rest points. SCRestAPIPrefix = "v1/screst/" RestPrefix = SCRestAPIPrefix + zcncore.ZCNSCSmartContractAddress PathGetAuthorizerNodes = "/getAuthorizerNodes?active=%t" PathGetGlobalConfig = "/getGlobalConfig" PathGetAuthorizer = "/getAuthorizer" )
Variables ¶
View Source
var Logger logger.Logger
Functions ¶
func CleanClient ¶ added in v1.8.6
func MakeSCRestAPICall ¶
func MakeSCRestAPICall(opCode int, relativePath string, params Params, cb zcncore.GetInfoCallback)
MakeSCRestAPICall calls smart contract with provided address and makes retryable request to smart contract resource with provided relative path using params.
func NewRetryableClient ¶
func NewRetryableClient(verbose bool) *retryablehttp.Client
NewRetryableClient creates default retryablehttp.Client with timeouts and embedded NewClient result.
func SetLogFile ¶ added in v1.11.0
Types ¶
Click to show internal directories.
Click to hide internal directories.