Documentation
¶
Index ¶
- Variables
- func BytesToGB(b uint64) float64
- func BytesToKB(b uint64) float64
- func BytesToMB(b uint64) float64
- func BytesToTB(b uint64) float64
- func CelsiusToFahrenheit(c int) int
- func ConvertBytes(b uint64) (float64, string)
- func ConvertBytesString(b uint64) string
- func CopyFile(src, dest string) (written int64, err error)
- func GenToken(l int) string
- func InitLogger(basePath string, fileName string) *log.Logger
- func Launch()
- func Must(i interface{}, err error) interface{}
- func Stop()
- func WarpHandle(fn interface{}) gin.HandlerFunc
- func WriteFile(filename string, reader io.Reader) (written int64, err error)
- type Config
- type Result
- type WaitConn
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CelsiusToFahrenheit ¶
func ConvertBytes ¶
func ConvertBytesString ¶
func WarpHandle ¶
func WarpHandle(fn interface{}) gin.HandlerFunc
Types ¶
type Config ¶
type Config struct { WebAddr string `toml:"WebAddr"` WebIndex string `toml:"WebIndex"` StaticFS bool `json:"staticFS"` FilePath string `toml:"FilePath"` FileDiskTotal uint64 `toml:"FileDiskTotal"` SaveFileMultiple bool `toml:"SaveFileMultiple"` Username string `toml:"Username"` Password string `toml:"Password"` }
func LoadConfig ¶
type Result ¶
type Result struct { Success bool `json:"success"` Message string `json:"message"` Data interface{} `json:"data"` }
应答结构
Click to show internal directories.
Click to hide internal directories.