Documentation ¶
Index ¶
- Variables
- func AskFile(requester Request) (respStatusCode int, respBytes io.ReadCloser, respHeader http.Header, err error)
- func CheckFileRespStatus(resp *http.Response) (io.ReadCloser, http.Header, error)
- func LoginAuth(username, password string) smtp.Auth
- func NewMailService() *mailService
- func NewUidGroup() (map[string]*Uid, error)
- type Request
- type Response
- type Uid
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Client *http.Client //HTTPClient
)
Functions ¶
func AskFile ¶
func AskFile(requester Request) (respStatusCode int, respBytes io.ReadCloser, respHeader http.Header, err error)
AskFile 建立http请求,返回header信息
func CheckFileRespStatus ¶
CheckFileRespStatus 状态检查
func NewMailService ¶
func NewMailService() *mailService
func NewUidGroup ¶
Types ¶
type Response ¶
type Response struct { Code int `json:"code"` Msg string `json:"message"` Data json.RawMessage `json:"data"` Total int64 `json:"total,omitempty"` }
Click to show internal directories.
Click to hide internal directories.