Documentation ¶
Index ¶
- func CombineHostAndPath(host string, path string) string
- func DoJson(r *httpclient.Request, o interface{}) error
- func GetHost(rawurl string) string
- func GetPath(rawurl string) string
- func GetPort(rawurl string) int
- func HasSchema(rawurl string) bool
- func RmProto(url string) string
- func WrapHttp(addr string) string
- func WrapHttps(addr string) string
- func WrapProto(addr string) string
- type RespForRead
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineHostAndPath ¶
func DoJson ¶
func DoJson(r *httpclient.Request, o interface{}) error
Types ¶
type RespForRead ¶
type RespForRead struct { Success bool `json:"success"` Data json.RawMessage `json:"data,omitempty"` Err *apistructs.ErrorResponse `json:"err,omitempty"` }
Click to show internal directories.
Click to hide internal directories.