Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2023 Changes in this version + const DefaultMetricPath + const DefaultMetricPort + const ErrorCode + func BigToHex(bigInt big.Int) string + func Bytes2BigInt(bytes []byte) *big.Int + func Bytes2Hex(bytes []byte) string + func Bytes2HexP(bytes []byte) string + func Debugf(format string, v ...interface{}) + func DecimalToBigInt(d decimal.Decimal) *big.Int + func Errorf(format string, v ...interface{}) + func Hex2BigInt(str string) *big.Int + func Hex2Bytes(str string) []byte + func Hex2Int(hex string) uint64 + func Infof(format string, v ...interface{}) + func Int2Bytes(i uint64) []byte + func Int2Hex(number uint64) string + func IntToDecimal(value interface{}) decimal.Decimal + func IntToHex(i int) string + func LeftPadBytes(slice []byte, l int) []byte + func NumberToString(number interface{}) string + func ParseInt(number string, defaultNumber int) int + func RightPadBytes(slice []byte, l int) []byte + func StartMetrics() + func String2BigInt(str string) big.Int + func StringToDecimal(str string) decimal.Decimal + func ToJsonString(o interface{}) string + type HttpClient struct + func NewHttpClient(transport *http.Transport) *HttpClient + func (h *HttpClient) Delete(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + func (h *HttpClient) Get(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + func (h *HttpClient) Post(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + func (h *HttpClient) Put(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + func (h *HttpClient) Request(method, u string, params []KeyValue, requestBody interface{}, ...) (err error, code int, respBody []byte) + type IHttpClient interface + Delete func(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + Get func(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + Post func(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + Put func(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + Request func(method, url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) + type KeyValue struct + Key string + Value string + type MetricsHandler struct + func (MetricsHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)