Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUserAgent ¶
func BuildUserAgent() string
BuildUserAgent returns the user agent string used by the application. e.g. "AgoraRESTClient Language/go LanguageVersion/1.22.2 Arch/arm64 OS/darwin SDKVersion/0.0.2"
Types ¶
type BaseResponse ¶
func (*BaseResponse) GetRequestID ¶
func (r *BaseResponse) GetRequestID() string
func (*BaseResponse) UnmarshalToTarget ¶
func (r *BaseResponse) UnmarshalToTarget(target interface{}) error
UnmarshalToTarget unmarshal body into target var successful if err is nil
type GatewayErr ¶
func NewGatewayErr ¶
func NewGatewayErr(code int, msg string) *GatewayErr
func (*GatewayErr) Error ¶
func (g *GatewayErr) Error() string
type InternalErr ¶
type InternalErr struct {
ErrMsg string
}
func NewInternalErr ¶
func NewInternalErr(msg string) *InternalErr
func (*InternalErr) Error ¶
func (i *InternalErr) Error() string
type ResponseInterface ¶
type ResponseInterface interface {
IsSuccess() bool
}
type RetryErr ¶
type RetryErr struct { Err error // contains filtered or unexported fields }
func NewRetryErr ¶
Click to show internal directories.
Click to hide internal directories.