Documentation
¶
Index ¶
- Constants
- func CheckTransaction(txid string, client *goar.Client) (bool, error)
- func Download(itemID string, client *goar.Client) (*goarSchema.BundleItem, error)
- func Downloads(itemsIds []string, client *goar.Client) (items []*goarSchema.BundleItem, err error)
- func GetBundledInId(txid string, client *goar.Client) (parentTxid string, err error)
- func GraphQL(query string, client *goar.Client) ([]byte, error)
- type BundledInResponse
- type OptGoar
- func (o *OptGoar) CheckTransaction(txid string) (bool, error)
- func (o *OptGoar) Download(itemID string) (*goarSchema.BundleItem, error)
- func (o *OptGoar) Downloads(itemsIds []string) (items []*goarSchema.BundleItem, err error)
- func (o *OptGoar) GraphQL(query string) (result []byte, err error)
- func (o *OptGoar) Upload(items []goarSchema.BundleItem) (txid string, err error)
Constants ¶
View Source
const (
BundledInQueryTemplate = `{
transaction(id: "%s") {
bundledIn {
id
}
}
}`
)
Variables ¶
This section is empty.
Functions ¶
func CheckTransaction ¶ added in v0.4.3
func Download ¶ added in v0.4.3
func Download(itemID string, client *goar.Client) (*goarSchema.BundleItem, error)
func Downloads ¶ added in v0.4.3
func Downloads(itemsIds []string, client *goar.Client) (items []*goarSchema.BundleItem, err error)
func GetBundledInId ¶ added in v0.4.3
Types ¶
type BundledInResponse ¶
type BundledInResponse struct {
Transaction struct {
BundledIn struct {
ID string `json:"id"`
} `json:"bundledIn"`
} `json:"transaction"`
}
BundledInResponse GraphQL response structure
type OptGoar ¶
type OptGoar struct {
// contains filtered or unexported fields
}
func (*OptGoar) Download ¶
func (o *OptGoar) Download(itemID string) (*goarSchema.BundleItem, error)
func (*OptGoar) Downloads ¶
func (o *OptGoar) Downloads(itemsIds []string) (items []*goarSchema.BundleItem, err error)
func (*OptGoar) Upload ¶
func (o *OptGoar) Upload(items []goarSchema.BundleItem) (txid string, err error)
Click to show internal directories.
Click to hide internal directories.