Documentation ¶
Index ¶
- Constants
- func CamelCaseToUnderscore(str string) string
- func FindString(array []string, str string) int
- func GetLimitFromRequest(req RequestHadLimit) uint64
- func GetOffsetFromRequest(req RequestHadOffset) uint64
- func GetUuid(prefix string) string
- func HttpGet(url string) (*http.Response, error)
- func In(value interface{}, container interface{}) bool
- func StringIn(str string, array []string) bool
- func ToProtoString(str string) *wrappers.StringValue
- func ToProtoTimestamp(t time.Time) (tt *timestamp.Timestamp)
- func ToProtoUInt32(uint32 uint32) *wrappers.UInt32Value
- func WaitForSpecificOrError(f func() (bool, error), timeout time.Duration, waitInterval time.Duration) error
- type Counter
- type RequestHadLimit
- type RequestHadOffset
- type TimeoutError
Constants ¶
View Source
const ( DefaultOffset = uint64(0) DefaultLimit = uint64(20) )
Variables ¶
This section is empty.
Functions ¶
func CamelCaseToUnderscore ¶
func FindString ¶
func GetLimitFromRequest ¶
func GetLimitFromRequest(req RequestHadLimit) uint64
func GetOffsetFromRequest ¶
func GetOffsetFromRequest(req RequestHadOffset) uint64
func ToProtoString ¶
func ToProtoString(str string) *wrappers.StringValue
func ToProtoUInt32 ¶
func ToProtoUInt32(uint32 uint32) *wrappers.UInt32Value
Types ¶
type RequestHadLimit ¶
type RequestHadLimit interface {
GetLimit() uint32
}
type RequestHadOffset ¶
type RequestHadOffset interface {
GetOffset() uint32
}
type TimeoutError ¶
type TimeoutError struct {
// contains filtered or unexported fields
}
Reference: https://github.com/yunify/qingcloud-sdk-go/blob/f1702ea44452e2d6b6048608c070237cd45088d6/utils/wait.go TimeoutError An Error represents a timeout error.
func NewTimeoutError ¶
func NewTimeoutError(timeout time.Duration) *TimeoutError
NewTimeoutError create a new TimeoutError
Source Files ¶
Click to show internal directories.
Click to hide internal directories.