Documentation ¶
Index ¶
- func CheckFileName(fileName string) error
- func CheckFileType(allSupportedType []string, fileName string) error
- func DecodeURI(encoded string) (string, error)
- func EncodeURI(rawString string) string
- func RespToBean(resp *req.Resp, returnObj interface{}) error
- func RespToResult(resp *req.Resp) (*bean.RespResult, error)
- type EscapeError
- type Headers
- type ServiceClient
- func (o *ServiceClient) Delete(url string, v ...interface{}) *req.Resp
- func (o *ServiceClient) Get(url string, v ...interface{}) *req.Resp
- func (o *ServiceClient) Head(url string, v ...interface{}) *req.Resp
- func (o *ServiceClient) Post(url string, v ...interface{}) *req.Resp
- func (o *ServiceClient) Put(url string, v ...interface{}) *req.Resp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileType ¶
CheckFileType ***
func RespToBean ¶
RespToBean : the obj must be pointer, and will be populated by resp
Types ¶
type EscapeError ¶
type EscapeError string
EscapeError ***
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type Headers ¶
Headers ***
func (*Headers) AddBasicAuthHeader ¶
AddBasicAuthHeader ***
func (*Headers) AddOAuth2Header ¶
AddOAuth2Header ***
type ServiceClient ¶
type ServiceClient struct {
// contains filtered or unexported fields
}
ServiceClient ***
func (*ServiceClient) Delete ¶
func (o *ServiceClient) Delete(url string, v ...interface{}) *req.Resp
Delete ***
func (*ServiceClient) Get ¶
func (o *ServiceClient) Get(url string, v ...interface{}) *req.Resp
Get ***
func (*ServiceClient) Head ¶
func (o *ServiceClient) Head(url string, v ...interface{}) *req.Resp
Head ***
Click to show internal directories.
Click to hide internal directories.