Documentation
¶
Index ¶
- Variables
- func AccountExport(c echo.Context) error
- func AccountExportByAddress(c echo.Context) error
- func AccountImportAndLogin(c echo.Context) error
- func AccountRemove(c echo.Context) error
- func FileDownload(c echo.Context) error
- func FileDownloadThumb(c echo.Context) error
- func FileList(c echo.Context) error
- func FileQuote(c echo.Context) error
- func FileRemove(c echo.Context) error
- func FileRemoveEstimateGas(c echo.Context) error
- func FileRemoveFromDiskKeepMeta(c echo.Context) error
- func FileRemoveLocal(c echo.Context) error
- func FileRevokeHash(c echo.Context) error
- func FileRevokeHashEstimateGas(c echo.Context) error
- func FileShare(c echo.Context) error
- func FileShareEstimateGas(c echo.Context) error
- func FileSign(c echo.Context) error
- func FileSignEstimateGas(c echo.Context) error
- func FileSigningRequest(c echo.Context) error
- func FileSigningRequestEstimateGas(c echo.Context) error
- func NewFile(c echo.Context) error
- func NewFileEstimateGas(c echo.Context) error
- type FileUploadRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var App *core.App
View Source
var ErrDurationNegative = errors.New("duration negative")
View Source
var ErrDurationNotSet = errors.New("duration not set")
View Source
var ErrDurationOutOfRange = errors.New("duration out of range")
View Source
var ErrNoFileUploaded = errors.New("no file uploaded")
View Source
var ErrNoSppSelected = errors.New("no service provider selected")
Functions ¶
func AccountExport ¶
func AccountExportByAddress ¶
func AccountImportAndLogin ¶
func AccountRemove ¶
func FileDownload ¶
func FileDownloadThumb ¶
func FileRemove ¶
func FileRemoveEstimateGas ¶
func FileRemoveLocal ¶
func FileRevokeHash ¶
func FileShareEstimateGas ¶
func FileSignEstimateGas ¶
func FileSigningRequest ¶
func NewFileEstimateGas ¶
Types ¶
type FileUploadRequest ¶
type FileUploadRequest struct { Register file.Register DefinedSignerList []account.AddressBookEntry UndefinedSignersCount int64 ProviderInfo models.StorageProviderInfo XesAmount *big.Int }
An incoming File upload request should be parsed to FileUploadRequest
func ParseFileUpload ¶
func ParseFileUpload(c echo.Context) (FileUploadRequest, error)
Parses the request and returns a FileUploadRequest with basic checks. If required attributes are missing will return an error. It's up to the caller to check on non-required properties
Click to show internal directories.
Click to hide internal directories.