response

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentResponse

type ContentResponse struct {
	Redirect bool
	Content  RSCloser
	URL      string
	MaxAge   int
}

ContentResponse 获取文件内容类方法的通用返回值。 有些上传策略需要重定向, 有些直接写文件数据到浏览器

type Object

type Object struct {
	Name         string    `json:"name"`
	RelativePath string    `json:"relative_path"`
	Source       string    `json:"source"`
	Size         uint64    `json:"size"`
	IsDir        bool      `json:"is_dir"`
	LastModify   time.Time `json:"last_modify"`
}

Object 列出文件、目录时返回的对象

type RSCloser

type RSCloser interface {
	io.ReadSeeker
	io.Closer
}

RSCloser 存储策略适配器返回的文件流,有些策略需要带有Closer

Jump to

Keyboard shortcuts

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