Documentation
¶
Index ¶
- func FetchSource(uri string) []byte
- func JsonToByte(t interface{}) []byte
- func JsonToString(t interface{}) string
- func PostBufferFileWithField(path, name string, file io.Reader, fileName string, fields map[string]string, ...) ([]byte, error)
- func ReduceUrl(uri string, params Query) (string, error)
- type App
- type Config
- type ContextToken
- type Domain
- type JsonResponse
- type MapBoolean
- type MapInterface
- type MapStr
- type Query
- type Read
- type Response
- func Get(path string, extends ...interface{}) (Response, error)
- func PostBody(path string, body []byte, extends ...interface{}) (Response, error)
- func PostBufferFile(path, name string, file io.Reader, fileName string, extends ...interface{}) (Response, error)
- func PostPathFile(path, name string, file io.Reader, filePath string, extends ...interface{}) (Response, error)
- type Token
- type Write
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonToByte ¶
func JsonToByte(t interface{}) []byte
func JsonToString ¶
func JsonToString(t interface{}) string
func PostBufferFileWithField ¶
Types ¶
type ContextToken ¶
type JsonResponse ¶
type MapBoolean ¶
type MapInterface ¶
type MapInterface map[string]interface{}
type Response ¶
type Response []byte
func Get ¶
Get *
- @param path string,params param,app App,domain string
- @author struggler
- @description client get 注意:当传递App的时候会自动获取token 并添加到 param里
- @date 10:52 下午 2021/2/23
- @return []byte,error *
func PostBody ¶
PostBody *
- @param path string,params param,app App,domain string
- @author struggler
- @description client postJson 注意:当传递App的时候会自动获取token 并添加到 param里
- @date 10:52 下午 2021/2/23
- @return string,error *
func PostBufferFile ¶
func PostBufferFile(path, name string, file io.Reader, fileName string, extends ...interface{}) (Response, error)
PostBufferFile *
- @param path,name string, file multipart.File,fileName *multipart.fileName,params param,app App,domain string
- @author struggler
- @description client postBufferFile 注意:当传递App的时候会自动获取token 并添加到 param里
- @date 10:52 下午 2021/2/23
- @return string,error *
func PostPathFile ¶
func PostPathFile(path, name string, file io.Reader, filePath string, extends ...interface{}) (Response, error)
PostPathFile *
- @param path,name string, file io.Reader,filePath string,params param,app App,domain string
- @author struggler
- @description client postFilePath 注意:当传递App的时候会自动获取token 并添加到 param里
- @date 10:52 下午 2021/2/23
- @return string,error *
func (*Response) Map ¶
func (r *Response) Map() (MapInterface, error)
Click to show internal directories.
Click to hide internal directories.