Documentation
¶
Index ¶
- func AnyifyMapValue(a map[string]*string) map[string]interface{}
- func AssertAsArray(a interface{}) (_result []interface{}, _err error)
- func AssertAsBoolean(a interface{}) (_result *bool, _err error)
- func AssertAsBytes(a interface{}) (_result []byte, _err error)
- func AssertAsInteger(value interface{}) (_result *int, _err error)
- func AssertAsMap(a interface{}) (_result map[string]interface{}, _err error)
- func AssertAsNumber(a interface{}) (_result *int, _err error)
- func AssertAsReadable(a interface{}) (_result io.Reader, _err error)
- func AssertAsString(a interface{}) (_result *string, _err error)
- func DefaultNumber(reaNum, defaultNum *int) *int
- func DefaultString(reaStr, defaultStr *string) *string
- func Empty(val *string) *bool
- func EqualNumber(val1, val2 *int) *bool
- func EqualString(val1, val2 *string) *bool
- func GetDateUTCString() *string
- func GetNonce() *string
- func GetUserAgent(userAgent *string) *string
- func Is2xx(code *int) *bool
- func Is3xx(code *int) *bool
- func Is4xx(code *int) *bool
- func Is5xx(code *int) *bool
- func IsUnset(val interface{}) *bool
- func ParseJSON(a *string) interface{}
- func ReadAsBytes(body io.Reader) ([]byte, error)
- func ReadAsJSON(body io.Reader) (result interface{}, err error)
- func ReadAsSSE(body io.ReadCloser) (<-chan SSEEvent, <-chan error)
- func ReadAsString(body io.Reader) (*string, error)
- func Sleep(millisecond *int) error
- func StringifyMapValue(a map[string]interface{}) map[string]*string
- func ToArray(in interface{}) []map[string]interface{}
- func ToBytes(a *string) []byte
- func ToFormString(a map[string]interface{}) *string
- func ToJSONString(a interface{}) *string
- func ToMap(in interface{}) map[string]interface{}
- func ToString(a []byte) *string
- func ValidateModel(a interface{}) error
- type ExtendsParameters
- type RuntimeOptions
- func (s RuntimeOptions) GoString() string
- func (s *RuntimeOptions) SetAutoretry(v bool) *RuntimeOptions
- func (s *RuntimeOptions) SetBackoffPeriod(v int) *RuntimeOptions
- func (s *RuntimeOptions) SetBackoffPolicy(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetCa(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetCert(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetConnectTimeout(v int) *RuntimeOptions
- func (s *RuntimeOptions) SetExtendsParameters(v *ExtendsParameters) *RuntimeOptions
- func (s *RuntimeOptions) SetHttpProxy(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetHttpsProxy(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetIgnoreSSL(v bool) *RuntimeOptions
- func (s *RuntimeOptions) SetKeepAlive(v bool) *RuntimeOptions
- func (s *RuntimeOptions) SetKey(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetLocalAddr(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetMaxAttempts(v int) *RuntimeOptions
- func (s *RuntimeOptions) SetMaxIdleConns(v int) *RuntimeOptions
- func (s *RuntimeOptions) SetNoProxy(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetReadTimeout(v int) *RuntimeOptions
- func (s *RuntimeOptions) SetSocks5NetWork(v string) *RuntimeOptions
- func (s *RuntimeOptions) SetSocks5Proxy(v string) *RuntimeOptions
- func (s RuntimeOptions) String() string
- type SSEEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyifyMapValue ¶
func AssertAsArray ¶
func AssertAsArray(a interface{}) (_result []interface{}, _err error)
func AssertAsBoolean ¶
func AssertAsBytes ¶
func AssertAsInteger ¶ added in v2.0.3
*
- Assert a value, if it is a integer, return it, otherwise throws
- @return the integer value
func AssertAsMap ¶
func AssertAsNumber ¶
func AssertAsReadable ¶
func AssertAsString ¶
func DefaultNumber ¶
func DefaultString ¶
func EqualNumber ¶
func EqualString ¶
func GetDateUTCString ¶
func GetDateUTCString() *string
func GetUserAgent ¶
func ReadAsJSON ¶
func StringifyMapValue ¶
func ToFormString ¶
func ToJSONString ¶
func ToJSONString(a interface{}) *string
func ValidateModel ¶
func ValidateModel(a interface{}) error
Types ¶
type ExtendsParameters ¶ added in v2.0.5
type ExtendsParameters struct { Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` Queries map[string]*string `json:"queries,omitempty" xml:"queries,omitempty"` }
func (ExtendsParameters) GoString ¶ added in v2.0.5
func (s ExtendsParameters) GoString() string
func (*ExtendsParameters) SetHeaders ¶ added in v2.0.5
func (s *ExtendsParameters) SetHeaders(v map[string]*string) *ExtendsParameters
func (*ExtendsParameters) SetQueries ¶ added in v2.0.6
func (s *ExtendsParameters) SetQueries(v map[string]*string) *ExtendsParameters
func (ExtendsParameters) String ¶ added in v2.0.5
func (s ExtendsParameters) String() string
type RuntimeOptions ¶
type RuntimeOptions struct { Autoretry *bool `json:"autoretry" xml:"autoretry"` IgnoreSSL *bool `json:"ignoreSSL" xml:"ignoreSSL"` Key *string `json:"key,omitempty" xml:"key,omitempty"` Cert *string `json:"cert,omitempty" xml:"cert,omitempty"` Ca *string `json:"ca,omitempty" xml:"ca,omitempty"` MaxAttempts *int `json:"maxAttempts" xml:"maxAttempts"` BackoffPolicy *string `json:"backoffPolicy" xml:"backoffPolicy"` BackoffPeriod *int `json:"backoffPeriod" xml:"backoffPeriod"` ReadTimeout *int `json:"readTimeout" xml:"readTimeout"` ConnectTimeout *int `json:"connectTimeout" xml:"connectTimeout"` LocalAddr *string `json:"localAddr" xml:"localAddr"` HttpProxy *string `json:"httpProxy" xml:"httpProxy"` HttpsProxy *string `json:"httpsProxy" xml:"httpsProxy"` NoProxy *string `json:"noProxy" xml:"noProxy"` MaxIdleConns *int `json:"maxIdleConns" xml:"maxIdleConns"` Socks5Proxy *string `json:"socks5Proxy" xml:"socks5Proxy"` Socks5NetWork *string `json:"socks5NetWork" xml:"socks5NetWork"` KeepAlive *bool `json:"keepAlive" xml:"keepAlive"` ExtendsParameters *ExtendsParameters `json:"extendsParameters,omitempty" xml:"extendsParameters,omitempty"` }
func (RuntimeOptions) GoString ¶
func (s RuntimeOptions) GoString() string
func (*RuntimeOptions) SetAutoretry ¶
func (s *RuntimeOptions) SetAutoretry(v bool) *RuntimeOptions
func (*RuntimeOptions) SetBackoffPeriod ¶
func (s *RuntimeOptions) SetBackoffPeriod(v int) *RuntimeOptions
func (*RuntimeOptions) SetBackoffPolicy ¶
func (s *RuntimeOptions) SetBackoffPolicy(v string) *RuntimeOptions
func (*RuntimeOptions) SetCa ¶ added in v2.0.1
func (s *RuntimeOptions) SetCa(v string) *RuntimeOptions
func (*RuntimeOptions) SetCert ¶ added in v2.0.1
func (s *RuntimeOptions) SetCert(v string) *RuntimeOptions
func (*RuntimeOptions) SetConnectTimeout ¶
func (s *RuntimeOptions) SetConnectTimeout(v int) *RuntimeOptions
func (*RuntimeOptions) SetExtendsParameters ¶ added in v2.0.5
func (s *RuntimeOptions) SetExtendsParameters(v *ExtendsParameters) *RuntimeOptions
func (*RuntimeOptions) SetHttpProxy ¶
func (s *RuntimeOptions) SetHttpProxy(v string) *RuntimeOptions
func (*RuntimeOptions) SetHttpsProxy ¶
func (s *RuntimeOptions) SetHttpsProxy(v string) *RuntimeOptions
func (*RuntimeOptions) SetIgnoreSSL ¶
func (s *RuntimeOptions) SetIgnoreSSL(v bool) *RuntimeOptions
func (*RuntimeOptions) SetKeepAlive ¶
func (s *RuntimeOptions) SetKeepAlive(v bool) *RuntimeOptions
func (*RuntimeOptions) SetKey ¶ added in v2.0.1
func (s *RuntimeOptions) SetKey(v string) *RuntimeOptions
func (*RuntimeOptions) SetLocalAddr ¶
func (s *RuntimeOptions) SetLocalAddr(v string) *RuntimeOptions
func (*RuntimeOptions) SetMaxAttempts ¶
func (s *RuntimeOptions) SetMaxAttempts(v int) *RuntimeOptions
func (*RuntimeOptions) SetMaxIdleConns ¶
func (s *RuntimeOptions) SetMaxIdleConns(v int) *RuntimeOptions
func (*RuntimeOptions) SetNoProxy ¶
func (s *RuntimeOptions) SetNoProxy(v string) *RuntimeOptions
func (*RuntimeOptions) SetReadTimeout ¶
func (s *RuntimeOptions) SetReadTimeout(v int) *RuntimeOptions
func (*RuntimeOptions) SetSocks5NetWork ¶
func (s *RuntimeOptions) SetSocks5NetWork(v string) *RuntimeOptions
func (*RuntimeOptions) SetSocks5Proxy ¶
func (s *RuntimeOptions) SetSocks5Proxy(v string) *RuntimeOptions
func (RuntimeOptions) String ¶
func (s RuntimeOptions) String() string
Click to show internal directories.
Click to hide internal directories.