Documentation ¶
Index ¶
- type ArSeedCli
- func (a *ArSeedCli) BroadcastTxData(arId string) error
- func (a *ArSeedCli) BroadcastTxMeta(arId string) error
- func (a *ArSeedCli) BundleFee(size int64, currency string) (schema.RespFee, error)
- func (a *ArSeedCli) GetApiKey(addr string) (schema.RespApiKey, error)
- func (a *ArSeedCli) GetBroadcastMetaTask(arId string) (schema.Task, error)
- func (a *ArSeedCli) GetBroadcastTask(arId string) (schema.Task, error)
- func (a *ArSeedCli) GetBundler() (string, error)
- func (a *ArSeedCli) GetItemData(itemId string) ([]byte, error)
- func (a *ArSeedCli) GetItemIds(arId string) ([]string, error)
- func (a *ArSeedCli) GetItemMeta(itemId string) (types.BundleItem, error)
- func (a *ArSeedCli) GetOrders(addr string, startId int) ([]schema.Order, error)
- func (a *ArSeedCli) GetSyncTask(arId string) (schema.Task, error)
- func (a *ArSeedCli) KillBroadcastMetaTask(arId string) error
- func (a *ArSeedCli) KillBroadcastTask(arId string) error
- func (a *ArSeedCli) KillSyncTask(arId string) error
- func (a *ArSeedCli) SubmitItem(itemBinary []byte, currency string, apikey string, needSequence bool) (*schema.RespOrder, error)
- func (a *ArSeedCli) SubmitItemStream(itemBinary io.Reader, currency string, apikey string, needSequence bool) (*schema.RespOrder, error)
- func (a *ArSeedCli) SubmitNativeData(apiKey string, currency string, data []byte, contentType string, ...) (*schema.RespItemId, error)
- func (a *ArSeedCli) SubmitNativeDataStream(apiKey string, currency string, data io.Reader, contentType string, ...) (*schema.RespItemId, error)
- func (a *ArSeedCli) SubmitTx(arTx types.Transaction) error
- func (a *ArSeedCli) SubmitTxConcurrent(ctx context.Context, concurrentNum int, arTx types.Transaction) error
- func (a *ArSeedCli) SyncTx(arId string) error
- type SDK
- func (s *SDK) BatchPayOrders(orders []*arseedSchema.RespOrder) (everTxs []*paySchema.Transaction, err error)
- func (s *SDK) PayApikey(tokenTag string, amount *big.Int) (everHash string, err error)
- func (s *SDK) PayOrders(orders []*arseedSchema.RespOrder) (everTx *paySchema.Transaction, err error)
- func (s *SDK) SendData(data []byte, currency string, apikey string, option *schema.OptionItem, ...) (order *arseedSchema.RespOrder, err error)
- func (s *SDK) SendDataAndPay(data []byte, currency string, option *schema.OptionItem, needSequence bool) (everTx *paySchema.Transaction, itemId string, err error)
- func (s *SDK) SendDataStream(data *os.File, currency string, apikey string, option *schema.OptionItem, ...) (order *arseedSchema.RespOrder, err error)
- func (s *SDK) SendDataStreamAndPay(data *os.File, currency string, option *schema.OptionItem, needSequence bool) (everTx *paySchema.Transaction, itemId string, err error)
- func (s *SDK) UploadFolder(rootPath string, batchSize int, indexFile string, currency string) (orders []*seedSchema.RespOrder, manifestId string, err error)
- func (s *SDK) UploadFolderAndPay(rootPath string, batchSize int, indexFile string, currency string) (orders []*seedSchema.RespOrder, manifestId string, ...)
- func (s *SDK) UploadFolderWithNoFee(rootPath string, batchSize int, indexFile string, noFeeApikey string) (orders []*seedSchema.RespOrder, manifestId string, err error)
- func (s *SDK) UploadFolderWithSequence(rootPath string, batchSize int, indexFile string, noFeeApikey string) (orders []*seedSchema.RespOrder, manifestId string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArSeedCli ¶
func (*ArSeedCli) BroadcastTxData ¶
func (*ArSeedCli) BroadcastTxMeta ¶
func (*ArSeedCli) GetBroadcastMetaTask ¶
func (*ArSeedCli) GetBroadcastTask ¶
func (*ArSeedCli) GetBundler ¶
func (*ArSeedCli) GetItemMeta ¶
func (a *ArSeedCli) GetItemMeta(itemId string) (types.BundleItem, error)
func (*ArSeedCli) KillBroadcastMetaTask ¶
func (*ArSeedCli) KillBroadcastTask ¶
func (*ArSeedCli) KillSyncTask ¶
func (*ArSeedCli) SubmitItem ¶
func (*ArSeedCli) SubmitItemStream ¶
func (*ArSeedCli) SubmitNativeData ¶
func (*ArSeedCli) SubmitNativeDataStream ¶
func (*ArSeedCli) SubmitTxConcurrent ¶
type SDK ¶
type SDK struct { ItemSigner *goar.ItemSigner Cli *ArSeedCli Pay *paySdk.SDK }
func (*SDK) BatchPayOrders ¶
func (s *SDK) BatchPayOrders(orders []*arseedSchema.RespOrder) (everTxs []*paySchema.Transaction, err error)
func (*SDK) PayOrders ¶
func (s *SDK) PayOrders(orders []*arseedSchema.RespOrder) (everTx *paySchema.Transaction, err error)
func (*SDK) SendData ¶
func (s *SDK) SendData(data []byte, currency string, apikey string, option *schema.OptionItem, needSequence bool) (order *arseedSchema.RespOrder, err error)
func (*SDK) SendDataAndPay ¶
func (s *SDK) SendDataAndPay(data []byte, currency string, option *schema.OptionItem, needSequence bool) (everTx *paySchema.Transaction, itemId string, err error)
func (*SDK) SendDataStream ¶
func (*SDK) SendDataStreamAndPay ¶
func (*SDK) UploadFolder ¶
func (*SDK) UploadFolderAndPay ¶
func (*SDK) UploadFolderWithNoFee ¶
Click to show internal directories.
Click to hide internal directories.