endpoints

package
v0.0.0-...-b84eec1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

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 AccountExport(c echo.Context) error

func AccountExportByAddress

func AccountExportByAddress(c echo.Context) error

func AccountImportAndLogin

func AccountImportAndLogin(c echo.Context) error

func AccountRemove

func AccountRemove(c echo.Context) error

func FileDownload

func FileDownload(c echo.Context) error

func FileDownloadThumb

func FileDownloadThumb(c echo.Context) error

func FileList

func FileList(c echo.Context) error

func FileQuote

func FileQuote(c echo.Context) error

Returns an estimation of cost

func FileRemove

func FileRemove(c echo.Context) error

func FileRemoveEstimateGas

func FileRemoveEstimateGas(c echo.Context) error

func FileRemoveFromDiskKeepMeta

func FileRemoveFromDiskKeepMeta(c echo.Context) error

func FileRemoveLocal

func FileRemoveLocal(c echo.Context) error

func FileRevokeHash

func FileRevokeHash(c echo.Context) error

func FileRevokeHashEstimateGas

func FileRevokeHashEstimateGas(c echo.Context) error

func FileShare

func FileShare(c echo.Context) error

func FileShareEstimateGas

func FileShareEstimateGas(c echo.Context) error

func FileSign

func FileSign(c echo.Context) error

func FileSignEstimateGas

func FileSignEstimateGas(c echo.Context) error

func FileSigningRequest

func FileSigningRequest(c echo.Context) error

func FileSigningRequestEstimateGas

func FileSigningRequestEstimateGas(c echo.Context) error

func NewFile

func NewFile(c echo.Context) error

func NewFileEstimateGas

func NewFileEstimateGas(c echo.Context) error

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

Jump to

Keyboard shortcuts

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