Versions in this module Expand all Collapse all v0 v0.5.3 Aug 30, 2023 v0.5.2 Aug 23, 2023 v0.5.1 Aug 10, 2023 Changes in this version + func MustInt(n json.Number) int + type BasicResp struct + ErrorCode IntNumber + ErrorCode2 int + ErrorCode3 int + ErrorCode4 int + ErrorCode5 int + ErrorMessage string + ErrorMessage2 string + ErrorMessage3 string + State bool + func (r *BasicResp) Err() error + type Boolean bool + func (b *Boolean) UnmarshalJSON(data []byte) (err error) + type FloatNumner float64 + func (n *FloatNumner) UnmarshalJSON(b []byte) (err error) + func (n FloatNumner) Float64() float64 + type IntNumber int64 + func (n *IntNumber) UnmarshalJSON(b []byte) (err error) + func (n IntNumber) Int() int + func (n IntNumber) Int64() int64 + func (n IntNumber) String() string + type JsonApiSpec struct + Result D + func (s *JsonApiSpec) EnableCrypto() + func (s *JsonApiSpec) IsCrypto() bool + func (s *JsonApiSpec) QueryGet(key string) string + func (s *JsonApiSpec) QuerySet(key, value string) + func (s *JsonApiSpec) QuerySetInt(key string, value int) + func (s *JsonApiSpec) QuerySetInt64(key string, value int64) + func (s *JsonApiSpec) QuerySetNow(key string) + func (s *JsonApiSpec) SetBaseUrl(baseUrl string) + func (s *JsonApiSpec) SetCryptoKey(key string) + func (s *JsonApiSpec) Url() string + func (s *JsonApiSpec[D, R]) FormSet(key, value string) + func (s *JsonApiSpec[D, R]) FormSetAll(params map[string]string) + func (s *JsonApiSpec[D, R]) FormSetInt(key string, value int) + func (s *JsonApiSpec[D, R]) FormSetInt64(key string, value int64) + func (s *JsonApiSpec[D, R]) Init(baseUrl string) + func (s *JsonApiSpec[D, R]) Parse(r io.Reader) (err error) + func (s *JsonApiSpec[D, R]) Payload() protocol.Payload + type JsonpApiSpec struct + Result D + func (s *JsonpApiSpec) EnableCrypto() + func (s *JsonpApiSpec) IsCrypto() bool + func (s *JsonpApiSpec) QueryGet(key string) string + func (s *JsonpApiSpec) QuerySet(key, value string) + func (s *JsonpApiSpec) QuerySetInt(key string, value int) + func (s *JsonpApiSpec) QuerySetInt64(key string, value int64) + func (s *JsonpApiSpec) QuerySetNow(key string) + func (s *JsonpApiSpec) SetBaseUrl(baseUrl string) + func (s *JsonpApiSpec) SetCryptoKey(key string) + func (s *JsonpApiSpec) Url() string + func (s *JsonpApiSpec[D, R]) Init(baseUrl, cb string) + func (s *JsonpApiSpec[D, R]) Parse(r io.Reader) (err error) + func (s *JsonpApiSpec[D, R]) Payload() protocol.Payload + type M115ApiSpec struct + Result D + func (s *M115ApiSpec) EnableCrypto() + func (s *M115ApiSpec) IsCrypto() bool + func (s *M115ApiSpec) QueryGet(key string) string + func (s *M115ApiSpec) QuerySet(key, value string) + func (s *M115ApiSpec) QuerySetInt(key string, value int) + func (s *M115ApiSpec) QuerySetInt64(key string, value int64) + func (s *M115ApiSpec) QuerySetNow(key string) + func (s *M115ApiSpec) SetBaseUrl(baseUrl string) + func (s *M115ApiSpec) SetCryptoKey(key string) + func (s *M115ApiSpec) Url() string + func (s *M115ApiSpec[D]) Init(baseUrl string, ex M115Extractor[D]) + func (s *M115ApiSpec[D]) ParamSet(key, value string) + func (s *M115ApiSpec[D]) ParamSetAll(params map[string]string) + func (s *M115ApiSpec[D]) Parse(r io.Reader) (err error) + func (s *M115ApiSpec[D]) Payload() protocol.Payload + type M115Extractor func([]byte, *D) error + type PayloadImpl struct + func (pi *PayloadImpl) ContentLength() int64 + func (pi *PayloadImpl) ContentType() string + func (pi *PayloadImpl) Read(p []byte) (int, error) + type StandardResp struct + Data json.RawMessage + func (r *StandardResp) Extract(v any) error + type VoidResult struct