upload

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upload

func Upload(fileBytes []byte, srvAddr string) (string, error)

Upload 上传

Types

type SeaweedfsConf

type SeaweedfsConf struct {
	SrvAddr       string
	MaxUploadSize int64
	AllowType     string
}

SeaweedfsConf 上传配置

func InitSeaweedfs

func InitSeaweedfs() *SeaweedfsConf

InitSeaweedfs 初始化

type SeaweedfsDir

type SeaweedfsDir struct {
	Fid       string `json:"fid"`
	Url       string `json:"url"`
	Publicurl string `json:"publicUrl"`
	Count     int64  `json:"count"`
}

SeaweedfsDir ...

type SeaweedfsUpload

type SeaweedfsUpload struct {
	Etag string `json:"eTag"`
	Name string `json:"name"`
	Size int64  `json:"size"`
}

SeaweedfsUpload ...

Jump to

Keyboard shortcuts

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