...

Package service

import "github.com/alibabacloud-go/tea-utils/service"
Overview
Index

Overview ▾

Index ▾

func AnyifyMapValue(a map[string]*string) map[string]interface{}
func AssertAsArray(a interface{}) []interface{}
func AssertAsBoolean(a interface{}) *bool
func AssertAsBytes(a interface{}) []byte
func AssertAsMap(a interface{}) map[string]interface{}
func AssertAsNumber(a interface{}) *int
func AssertAsReadable(a interface{}) io.Reader
func AssertAsString(a interface{}) *string
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 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 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) SetConnectTimeout(v int) *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) 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 UUID

Package files

service.go util.go

func AnyifyMapValue

func AnyifyMapValue(a map[string]*string) map[string]interface{}

func AssertAsArray

func AssertAsArray(a interface{}) []interface{}

func AssertAsBoolean

func AssertAsBoolean(a interface{}) *bool

func AssertAsBytes

func AssertAsBytes(a interface{}) []byte

func AssertAsMap

func AssertAsMap(a interface{}) map[string]interface{}

func AssertAsNumber

func AssertAsNumber(a interface{}) *int

func AssertAsReadable

func AssertAsReadable(a interface{}) io.Reader

func AssertAsString

func AssertAsString(a interface{}) *string

func DefaultNumber

func DefaultNumber(reaNum, defaultNum *int) *int

func DefaultString

func DefaultString(reaStr, defaultStr *string) *string

func Empty

func Empty(val *string) *bool

func EqualNumber

func EqualNumber(val1, val2 *int) *bool

func EqualString

func EqualString(val1, val2 *string) *bool

func GetDateUTCString

func GetDateUTCString() *string

func GetNonce

func GetNonce() *string

func GetUserAgent

func GetUserAgent(userAgent *string) *string

func Is2xx

func Is2xx(code *int) *bool

func Is3xx

func Is3xx(code *int) *bool

func Is4xx

func Is4xx(code *int) *bool

func Is5xx

func Is5xx(code *int) *bool

func IsUnset

func IsUnset(val interface{}) *bool

func ParseJSON

func ParseJSON(a *string) interface{}

func ReadAsBytes

func ReadAsBytes(body io.Reader) ([]byte, error)

func ReadAsJSON

func ReadAsJSON(body io.Reader) (result interface{}, err error)

func ReadAsString

func ReadAsString(body io.Reader) (*string, error)

func Sleep

func Sleep(millisecond *int) error

func StringifyMapValue

func StringifyMapValue(a map[string]interface{}) map[string]*string

func ToArray

func ToArray(in interface{}) []map[string]interface{}

func ToBytes

func ToBytes(a *string) []byte

func ToFormString

func ToFormString(a map[string]interface{}) *string

func ToJSONString

func ToJSONString(a interface{}) *string

func ToMap

func ToMap(in interface{}) map[string]interface{}

func ToString

func ToString(a []byte) *string

func ValidateModel

func ValidateModel(a interface{}) error

type RuntimeOptions

type RuntimeOptions struct {
    Autoretry      *bool   `json:"autoretry" xml:"autoretry"`
    IgnoreSSL      *bool   `json:"ignoreSSL" xml:"ignoreSSL"`
    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"`
}

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) SetConnectTimeout

func (s *RuntimeOptions) SetConnectTimeout(v int) *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) 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

type UUID

type UUID [16]byte