Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBodyJSON ¶
ParseBodyJSON reads the body and then Unmarshal it into T.
func RunWithRetry ¶
RunWithRetry runs the fn until it returns err nil or reaches the maxRetry. If maxRetry is set to 0 or lower, it will keep retrying until success.
func UnmarshalJSON ¶
UnmarshalJSON create a new object T, unmarshal the data into the object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.