Documentation ¶
Index ¶
- Constants
- Variables
- func HandleFiles(w http.ResponseWriter, _ *http.Request, dirTemplate fs.FS)
- func HandleWs(w http.ResponseWriter, r *http.Request)
- func IsImageExt(filename string) bool
- func PreCheck(w http.ResponseWriter, r *http.Request)
- func Upload(w http.ResponseWriter, r *http.Request)
- type PreCheckParam
- type ResponseData
Constants ¶
View Source
const ( SuccessCode = 10000 ErrorCodePassword = 20001 ErrorCodeOnceToken = 20002 ErrorCodeUsernameRepeat = 20003 )
Variables ¶
View Source
var OnceTokenMap = make(map[string]map[string]string)
Functions ¶
func HandleFiles ¶
Types ¶
type PreCheckParam ¶
Click to show internal directories.
Click to hide internal directories.