Documentation ¶
Index ¶
- func ByteToBase64(d []byte) string
- func FetchSource(uri string) []byte
- func Get(path string, extends ...interface{}) ([]byte, error)
- func JsonToByte(t interface{}) []byte
- func JsonToString(t interface{}) string
- func PostBody(path string, body []byte, extends ...interface{}) ([]byte, error)
- func PostBufferFile(path, name string, file io.Reader, fileName string, extends ...interface{}) ([]byte, error)
- func PostBufferFileWithField(path, name string, file io.Reader, fileName string, fields map[string]string, ...) ([]byte, error)
- func PostPathFile(path, name string, file io.Reader, filePath string, extends ...interface{}) ([]byte, error)
- func ReduceUrl(uri string, params Query) (string, error)
- type App
- type Config
- type ContextToken
- type Domain
- type Hook
- type MapBoolean
- type MapInterface
- type MapStr
- type Query
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 JsonToByte ¶
func JsonToByte(t interface{}) []byte
func JsonToString ¶
func JsonToString(t interface{}) string
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{}) ([]byte, 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 PostBufferFileWithField ¶
func PostPathFile ¶
func PostPathFile(path, name string, file io.Reader, filePath string, extends ...interface{}) ([]byte, 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 *
Types ¶
type App ¶
func ContextApp ¶
type ContextToken ¶
func ExtractAppidAndAccessToken ¶
func ExtractAppidAndAccessToken(appidAndAccessToken ...string) (ContextToken, error)
ExtractAppidAndAccessToken 提取appid 和 accessToken
type MapBoolean ¶
type MapInterface ¶
type MapInterface map[string]interface{}
Click to show internal directories.
Click to hide internal directories.