Documentation
¶
Index ¶
- Constants
- func CheckFileMaxLength(fileItem *os.File, maxLength int, fieldName string) *taobao.ApiRuleError
- func CheckMaxLength(value string, maxLength int, fieldName string) *taobao.ApiRuleError
- func CheckMaxListSize(list []string, maxSize int, fieldName string) *taobao.ApiRuleError
- func CheckMaxValue(value int, maxValue int, fieldName string) *taobao.ApiRuleError
- func CheckMinValue(value, minValue int, fieldName string) *taobao.ApiRuleError
- func CheckNotEmpty(value interface{}, fieldName string) *taobao.ApiRuleError
- func CheckObjectMaxListSize(value string, maxSize int, fieldName string) *taobao.ApiRuleError
- func CheckStringMaxListSize(value string, maxSize int, fieldName string) *taobao.ApiRuleError
- func ComputeSignature(accessSecret, data string) (string, *taobao.ApiRuleError)
- func CurrentTimeMillis() int64
- func FormatTime(t time.Time) string
- func GetCanonicalStringForIsv(timestamp int64, suiteTicket string) string
- func Int64S(i int64) string
- func IsEmpty(s string) bool
- func ParamToQueryString(m map[string]string) string
Constants ¶
View Source
const ( ERROR_CODE_ARGUMENTS_INVALID = "41" ERROR_CODE_ARGUMENTS_MISSING = "40" )
Variables ¶
This section is empty.
Functions ¶
func CheckFileMaxLength ¶
func CheckMaxLength ¶
func CheckMaxLength(value string, maxLength int, fieldName string) *taobao.ApiRuleError
func CheckMaxListSize ¶
func CheckMaxListSize(list []string, maxSize int, fieldName string) *taobao.ApiRuleError
func CheckMaxValue ¶
func CheckMaxValue(value int, maxValue int, fieldName string) *taobao.ApiRuleError
func CheckMinValue ¶
func CheckMinValue(value, minValue int, fieldName string) *taobao.ApiRuleError
func CheckNotEmpty ¶
func CheckNotEmpty(value interface{}, fieldName string) *taobao.ApiRuleError
func CheckObjectMaxListSize ¶
func CheckObjectMaxListSize(value string, maxSize int, fieldName string) *taobao.ApiRuleError
func CheckStringMaxListSize ¶
func CheckStringMaxListSize(value string, maxSize int, fieldName string) *taobao.ApiRuleError
func ComputeSignature ¶
func ComputeSignature(accessSecret, data string) (string, *taobao.ApiRuleError)
func CurrentTimeMillis ¶
func CurrentTimeMillis() int64
func FormatTime ¶
func ParamToQueryString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.