Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileNotBlock = errors.New("文件同步中")
Functions ¶
Types ¶
type File ¶
File handler
func (*File) CleanCache ¶
CleanCache 清理文件缓存 @Summary 清理文件缓存 @Description clean file cache @Tags File @Produce json @Success 200 {string} string "ok" @Failure 500 {string} string @Router /v1/file-clean-cache [get]
func (*File) GetFile ¶
GetFile 获取上链文件 @Summary 获取上链文件 @Description get file @Tags File @Produce json @Param hash query string true "文件哈希" @Param name path string true "文件名称" @Success 200 {array} byte @Failure 500 {string} string @Router /v1/file/{hash} [get]
func (*File) NewChainGRPCConnect ¶
func (f *File) NewChainGRPCConnect() (types.Chain33Client, error)
Click to show internal directories.
Click to hide internal directories.