Documentation ¶
Index ¶
- func AllowRetry(retry interface{}, retryTimes *int) *bool
- func AssertAsMap(a interface{}) (_result map[string]interface{}, _err error)
- func Bool(a bool) *bool
- func BoolSlice(a []bool) []*bool
- func BoolSliceValue(a []*bool) []bool
- func BoolValue(a *bool) bool
- func Convert(in interface{}, out interface{}) error
- func ConvertToSuzakuResp(in interface{}, out interface{}) error
- func DefaultNumber(reaNum, defaultNum *int) *int
- func DefaultString(reaStr, defaultStr *string) *string
- func Float32(a float32) *float32
- func Float32Slice(a []float32) []*float32
- func Float32Value(a *float32) float32
- func Float32ValueSlice(a []*float32) []float32
- func Float64(a float64) *float64
- func Float64Slice(a []float64) []*float64
- func Float64Value(a *float64) float64
- func Float64ValueSlice(a []*float64) []float64
- func GetBackoffTime(backoff interface{}, retrytimes *int) *int
- func InitConfig(endpointList *[]string, ...)
- func Int(a int) *int
- func Int16(a int16) *int16
- func Int16Slice(a []int16) []*int16
- func Int16Value(a *int16) int16
- func Int16ValueSlice(a []*int16) []int16
- func Int32(a int32) *int32
- func Int32Slice(a []int32) []*int32
- func Int32Value(a *int32) int32
- func Int32ValueSlice(a []*int32) []int32
- func Int64(a int64) *int64
- func Int64Slice(a []int64) []*int64
- func Int64Value(a *int64) int64
- func Int64ValueSlice(a []*int64) []int64
- func Int8(a int8) *int8
- func Int8Slice(a []int8) []*int8
- func Int8Value(a *int8) int8
- func Int8ValueSlice(a []*int8) []int8
- func IntSlice(a []int) []*int
- func IntValue(a *int) int
- func IntValueSlice(a []*int) []int
- func IsUnset(val interface{}) *bool
- func Merge(args ...interface{}) map[string]*string
- func Prettify(i interface{}) string
- func ReadAsJSON(body io.Reader) (result interface{}, err error)
- func Recover(in interface{}) error
- func Retryable(err error) *bool
- func Sleep(backoffTime *int)
- func String(a string) *string
- func StringSlice(a []string) []*string
- func StringSliceValue(a []*string) []string
- func StringValue(a *string) string
- func Substring(s string, pos, length int) string
- func ToInt(a *int32) *int
- func ToInt32(a *int) *int32
- func ToJSONString(a interface{}) *string
- func ToMap(args ...interface{}) map[string]interface{}
- func ToObject(obj interface{}) map[string]interface{}
- func ToReader(obj interface{}) io.Reader
- func ToString(val interface{}) string
- func TransInterfaceToBool(val interface{}) *bool
- func TransInterfaceToInt(val interface{}) *int
- func TransInterfaceToString(val interface{}) *string
- func Uint(a uint) *uint
- func Uint16(a uint16) *uint16
- func Uint16Slice(a []uint16) []*uint16
- func Uint16Value(a *uint16) uint16
- func Uint16ValueSlice(a []*uint16) []uint16
- func Uint32(a uint32) *uint32
- func Uint32Slice(a []uint32) []*uint32
- func Uint32Value(a *uint32) uint32
- func Uint32ValueSlice(a []*uint32) []uint32
- func Uint64(a uint64) *uint64
- func Uint64Slice(a []uint64) []*uint64
- func Uint64Value(a *uint64) uint64
- func Uint64ValueSlice(a []*uint64) []uint64
- func Uint8(a uint8) *uint8
- func Uint8Slice(a []uint8) []*uint8
- func Uint8Value(a *uint8) uint8
- func Uint8ValueSlice(a []*uint8) []uint8
- func UintSlice(a []uint) []*uint
- func UintValue(a *uint) uint
- func UintValueSlice(a []*uint) []uint
- func Validate(params interface{}) error
- type Config
- type Request
- func (request *Request) GetApiVersion() *string
- func (request *Request) GetEndpoint() *string
- func (request *Request) GetMethod() *string
- func (request *Request) GetPath() *string
- func (request *Request) GetPort() *int
- func (request *Request) GetQuery() map[string]*string
- func (request *Request) GetRequestId() *string
- func (request *Request) SetApiVersion(apiVersion *string)
- func (request *Request) SetBody(body interface{})
- func (request *Request) SetEndpoint(endpoint *string)
- func (request *Request) SetMethodDELETE()
- func (request *Request) SetMethodGET()
- func (request *Request) SetMethodPOST()
- func (request *Request) SetMethodPUT()
- func (request *Request) SetPath(path string)
- func (request *Request) SetPort(port *int)
- func (request *Request) SetQuery(query map[string]*string)
- func (request *Request) UpdateQuery(query map[string]*string)
- type Response
- type RuntimeObject
- type SDKError
- type Sorter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowRetry ¶
func AssertAsMap ¶
func BoolSliceValue ¶
func ConvertToSuzakuResp ¶
func ConvertToSuzakuResp(in interface{}, out interface{}) error
func DefaultNumber ¶
func DefaultString ¶
func Float32Slice ¶
func Float32Value ¶
func Float32ValueSlice ¶
func Float64Slice ¶
func Float64Value ¶
func Float64ValueSlice ¶
func GetBackoffTime ¶
func InitConfig ¶ added in v0.1.5
func Int16Slice ¶
func Int16Value ¶
func Int16ValueSlice ¶
func Int32Slice ¶
func Int32Value ¶
func Int32ValueSlice ¶
func Int64Slice ¶
func Int64Value ¶
func Int64ValueSlice ¶
func Int8ValueSlice ¶
func IntValueSlice ¶
func ReadAsJSON ¶
func StringSlice ¶
func StringSliceValue ¶
func StringValue ¶
func ToJSONString ¶
func ToJSONString(a interface{}) *string
func TransInterfaceToBool ¶
func TransInterfaceToBool(val interface{}) *bool
func TransInterfaceToInt ¶
func TransInterfaceToInt(val interface{}) *int
func TransInterfaceToString ¶
func TransInterfaceToString(val interface{}) *string
func Uint16Slice ¶
func Uint16Value ¶
func Uint16ValueSlice ¶
func Uint32Slice ¶
func Uint32Value ¶
func Uint32ValueSlice ¶
func Uint64Slice ¶
func Uint64Value ¶
func Uint64ValueSlice ¶
func Uint8Slice ¶
func Uint8Value ¶
func Uint8ValueSlice ¶
func UintValueSlice ¶
Types ¶
type Config ¶ added in v0.1.5
type Config struct { Port *int `json:"port"` ConnectTimeout *int `json:"connectTimeout"` ReadTimeout *int `json:"readTimeout"` Backoff *int `json:"backoff"` RetryCount *int `json:"retryCount"` EndpointList *[]string `json:"endpointList"` CurrentEndpoint *string `json:"currentEndpoint"` ApiVersion *string `json:"api_version"` ApiQPS *int `json:"api_qps"` }
var GlobalConfig *Config
func (*Config) SwitchEndpoint ¶ added in v0.1.5
func (c *Config) SwitchEndpoint()
type Request ¶
Request is used wrap http request
func NewRequest ¶
func (*Request) GetApiVersion ¶
func (*Request) GetEndpoint ¶
func (*Request) GetRequestId ¶
func (*Request) SetApiVersion ¶
func (*Request) SetEndpoint ¶
func (*Request) SetMethodDELETE ¶
func (request *Request) SetMethodDELETE()
func (*Request) SetMethodGET ¶
func (request *Request) SetMethodGET()
func (*Request) SetMethodPOST ¶
func (request *Request) SetMethodPOST()
func (*Request) SetMethodPUT ¶
func (request *Request) SetMethodPUT()
func (*Request) UpdateQuery ¶
type Response ¶
type Response struct { Body io.ReadCloser StatusCode *int StatusMessage *string Headers map[string]*string }
Response is use d wrap http response
func NewResponse ¶
NewResponse is create response with http response
type RuntimeObject ¶
type RuntimeObject struct { ConnectTimeout *int `json:"connectTimeout"` ReadTimeout *int `json:"readTimeout"` Backoff *int `json:"backoff"` Retry *int `json:"retry"` }
RuntimeObject is used for converting http configuration
func NewRuntimeObject ¶
func NewRuntimeObject(runtime map[string]interface{}) *RuntimeObject
type SDKError ¶
type SDKError struct { StatusCode *int Code *int Message *string Data *string RequestId *string // contains filtered or unexported fields }
SDKError struct is used save error code and message
func NewSDKError ¶
NewSDKError is used for shortly create SDKError object
func (*SDKError) IsNotExists ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.