Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway interface {
// GetPrice return fee base on fileSize in byte for selected token
GetPrice(fileSize int) (*big.Int, error)
// Upload upload file
Upload(file io.Reader, tags ...Tag) (Transaction, error)
// Download get file with header details
Download(hash string) (*File, error)
// GetMetaData get transaction details
GetMetaData(hash string) (Transaction, error)
}
type Irys ¶
type Irys struct {
// contains filtered or unexported fields
}
func (*Irys) GetMetaData ¶
func (i *Irys) GetMetaData(hash string) (Transaction, error)
type Option ¶
type Option func(irys *Irys)
func WithCustomClient ¶
WithCustomClient set custom http client for irys
type Transaction ¶
type Transaction struct {
ID string `json:"id"`
Currency string `json:"currency"`
Address string `json:"address"`
Owner string `json:"owner"`
Signature string `json:"signature"`
Target string `json:"target"`
Tags []Tag `json:"tags"`
Anchor string `json:"anchor"`
DataSize string `json:"data_size"`
RawSize string `json:"raw_size"`
}
Click to show internal directories.
Click to hide internal directories.