os2

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadFile

func UploadFile(req *http.Request, key string) (info map[string]string, err error)

上传批量文件(支持断点续传) todo 2020年12月15日21:48:39

Types

type Storage

type Storage struct {
	Name       string
	FileSystem string
	Total      uint64
	Free       uint64
}

func GetStorageInfo

func GetStorageInfo() []Storage

获取磁盘信息 仅WIN生效

type SystemInfo

type SystemInfo struct {
	HostName        string          `json:"host_name"`
	PageSize        int             `json:"page_size"`
	NumCPU          int             `json:"num_cpu"`
	NumCgoCall      int64           `json:"num_cgo_call"`
	Version         string          `json:"version"`
	OS              string          `json:"os"`
	GOARCH          string          `json:"goarch"`
	InterfaceAdders []net.Addr      `json:"interface_adders"`
	Interfaces      []net.Interface `json:"interfaces"`
}

func GetSystemInfo

func GetSystemInfo() (info SystemInfo)

返回系统信息

type TempFileInfo

type TempFileInfo struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	Position int    `json:"position"` // 上传偏移量
}

临时文件结构体

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL