structs

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Zlib Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileBase

type FileBase struct {
	Dir    string
	Key    string
	Bucket string
}

type FileChunk

type FileChunk struct {
	Number int   `json:"number"` // Chunk number
	Offset int64 `json:"offset"` // Chunk offset
	Size   int64 `json:"size"`   // Chunk size.
}

type FileChunkResult

type FileChunkResult struct {
	Key    string      `json:"key,omitempty"`
	Chunks []FileChunk `json:"chunks"`
}

type FileName

type FileName struct {
	FileBase
	Name string
}

FileName 文件名

type FilePath

type FilePath struct {
	Product string `json:"product"` //产品名
	Biz     string `json:"biz"`     //业务
	Type    string `json:"type"`    //类型
	File    string `json:"file"`    //文件名
	Id      string `json:"id"`      //作品ID: vid-nums, 其它id
}

func (*FilePath) IsValid

func (p *FilePath) IsValid() bool

type FileResult

type FileResult struct {
	Key      string `json:"key"`
	Url      string `json:"url"`
	Duration int64  `json:"duration"`     //豪秒
	Id       string `json:"id,omitempty"` //断点续传=UploadId
}

type FileResults

type FileResults struct {
	Results []FileResult `json:"results"`
}

type FileStream

type FileStream struct {
	FileBase
	Seeker io.Seeker
	Reader io.Reader
	Size   int64
}

FileStream 文件流

Jump to

Keyboard shortcuts

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