argraphql

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BatchGetItemsBundleIn_Operation = `` /* 245-byte string literal not displayed */

The query or mutation executed by BatchGetItemsBundleIn.

View Source
const GetTransaction_Operation = `` /* 335-byte string literal not displayed */

The query or mutation executed by GetTransaction.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARGraphQL

type ARGraphQL struct {
	Client graphql.Client
}

func NewARGraphQL

func NewARGraphQL(endpoint string, httpClient http.Client) *ARGraphQL

func (*ARGraphQL) BatchGetItemsBundleIn

func (g *ARGraphQL) BatchGetItemsBundleIn(ctx context.Context, ids []string, first int, after string) (res *BatchGetItemsBundleInResponse, err error)

func (*ARGraphQL) QueryTransaction

func (g *ARGraphQL) QueryTransaction(ctx context.Context, id string) (res *GetTransactionResponse, err error)

type BatchGetItemsBundleInResponse

type BatchGetItemsBundleInResponse struct {
	Transactions BatchGetItemsBundleInTransactionsTransactionConnection `json:"transactions"`
}

BatchGetItemsBundleInResponse is returned by BatchGetItemsBundleIn on success.

func BatchGetItemsBundleIn

func BatchGetItemsBundleIn(
	ctx context.Context,
	client graphql.Client,
	ids []string,
	first int,
	after string,
) (*BatchGetItemsBundleInResponse, error)

func (*BatchGetItemsBundleInResponse) GetTransactions

GetTransactions returns BatchGetItemsBundleInResponse.Transactions, and is useful for accessing the field via an interface.

type BatchGetItemsBundleInTransactionsTransactionConnection

type BatchGetItemsBundleInTransactionsTransactionConnection struct {
	PageInfo BatchGetItemsBundleInTransactionsTransactionConnectionPageInfo               `json:"pageInfo"`
	Edges    []BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge `json:"edges"`
}

BatchGetItemsBundleInTransactionsTransactionConnection includes the requested fields of the GraphQL type TransactionConnection.

func (*BatchGetItemsBundleInTransactionsTransactionConnection) GetEdges

GetEdges returns BatchGetItemsBundleInTransactionsTransactionConnection.Edges, and is useful for accessing the field via an interface.

func (*BatchGetItemsBundleInTransactionsTransactionConnection) GetPageInfo

GetPageInfo returns BatchGetItemsBundleInTransactionsTransactionConnection.PageInfo, and is useful for accessing the field via an interface.

type BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge

type BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge struct {
	Cursor string                                                                                    `json:"cursor"`
	Node   BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction `json:"node"`
}

BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge includes the requested fields of the GraphQL type TransactionEdge.

func (*BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge) GetCursor

GetCursor returns BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge.Cursor, and is useful for accessing the field via an interface.

func (*BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge) GetNode

GetNode returns BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdge.Node, and is useful for accessing the field via an interface.

type BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction

type BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction struct {
	Id        string                                                                                                   `json:"id"`
	BundledIn BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransactionBundledInBundle `json:"bundledIn"`
}

BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction includes the requested fields of the GraphQL type Transaction.

func (*BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction) GetBundledIn

GetBundledIn returns BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction.BundledIn, and is useful for accessing the field via an interface.

func (*BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction) GetId

GetId returns BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransaction.Id, and is useful for accessing the field via an interface.

type BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransactionBundledInBundle

type BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransactionBundledInBundle struct {
	Id string `json:"id"`
}

BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransactionBundledInBundle includes the requested fields of the GraphQL type Bundle.

func (*BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransactionBundledInBundle) GetId

GetId returns BatchGetItemsBundleInTransactionsTransactionConnectionEdgesTransactionEdgeNodeTransactionBundledInBundle.Id, and is useful for accessing the field via an interface.

type BatchGetItemsBundleInTransactionsTransactionConnectionPageInfo

type BatchGetItemsBundleInTransactionsTransactionConnectionPageInfo struct {
	HasNextPage bool `json:"hasNextPage"`
}

BatchGetItemsBundleInTransactionsTransactionConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*BatchGetItemsBundleInTransactionsTransactionConnectionPageInfo) GetHasNextPage

GetHasNextPage returns BatchGetItemsBundleInTransactionsTransactionConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

type GetTransactionResponse

type GetTransactionResponse struct {
	Transaction GetTransactionTransaction `json:"transaction"`
}

GetTransactionResponse is returned by GetTransaction on success.

func GetTransaction

func GetTransaction(
	ctx context.Context,
	client graphql.Client,
	id string,
) (*GetTransactionResponse, error)

Write your query or mutation here

func (*GetTransactionResponse) GetTransaction

GetTransaction returns GetTransactionResponse.Transaction, and is useful for accessing the field via an interface.

type GetTransactionTransaction

type GetTransactionTransaction struct {
	Id        string                                   `json:"id"`
	Anchor    string                                   `json:"anchor"`
	Signature string                                   `json:"signature"`
	Recipient string                                   `json:"recipient"`
	Owner     GetTransactionTransactionOwner           `json:"owner"`
	Fee       GetTransactionTransactionFeeAmount       `json:"fee"`
	Quantity  GetTransactionTransactionQuantityAmount  `json:"quantity"`
	Data      GetTransactionTransactionDataMetaData    `json:"data"`
	Tags      []GetTransactionTransactionTagsTag       `json:"tags"`
	Block     GetTransactionTransactionBlock           `json:"block"`
	BundledIn GetTransactionTransactionBundledInBundle `json:"bundledIn"`
}

GetTransactionTransaction includes the requested fields of the GraphQL type Transaction.

func (*GetTransactionTransaction) GetAnchor

func (v *GetTransactionTransaction) GetAnchor() string

GetAnchor returns GetTransactionTransaction.Anchor, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetBlock

GetBlock returns GetTransactionTransaction.Block, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetBundledIn

GetBundledIn returns GetTransactionTransaction.BundledIn, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetData

GetData returns GetTransactionTransaction.Data, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetFee

GetFee returns GetTransactionTransaction.Fee, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetId

func (v *GetTransactionTransaction) GetId() string

GetId returns GetTransactionTransaction.Id, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetOwner

GetOwner returns GetTransactionTransaction.Owner, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetQuantity

GetQuantity returns GetTransactionTransaction.Quantity, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetRecipient

func (v *GetTransactionTransaction) GetRecipient() string

GetRecipient returns GetTransactionTransaction.Recipient, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetSignature

func (v *GetTransactionTransaction) GetSignature() string

GetSignature returns GetTransactionTransaction.Signature, and is useful for accessing the field via an interface.

func (*GetTransactionTransaction) GetTags

GetTags returns GetTransactionTransaction.Tags, and is useful for accessing the field via an interface.

type GetTransactionTransactionBlock

type GetTransactionTransactionBlock struct {
	Id        string `json:"id"`
	Timestamp int    `json:"timestamp"`
	Height    int    `json:"height"`
	Previous  string `json:"previous"`
}

GetTransactionTransactionBlock includes the requested fields of the GraphQL type Block.

func (*GetTransactionTransactionBlock) GetHeight

func (v *GetTransactionTransactionBlock) GetHeight() int

GetHeight returns GetTransactionTransactionBlock.Height, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionBlock) GetId

GetId returns GetTransactionTransactionBlock.Id, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionBlock) GetPrevious

func (v *GetTransactionTransactionBlock) GetPrevious() string

GetPrevious returns GetTransactionTransactionBlock.Previous, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionBlock) GetTimestamp

func (v *GetTransactionTransactionBlock) GetTimestamp() int

GetTimestamp returns GetTransactionTransactionBlock.Timestamp, and is useful for accessing the field via an interface.

type GetTransactionTransactionBundledInBundle

type GetTransactionTransactionBundledInBundle struct {
	Id string `json:"id"`
}

GetTransactionTransactionBundledInBundle includes the requested fields of the GraphQL type Bundle.

func (*GetTransactionTransactionBundledInBundle) GetId

GetId returns GetTransactionTransactionBundledInBundle.Id, and is useful for accessing the field via an interface.

type GetTransactionTransactionDataMetaData

type GetTransactionTransactionDataMetaData struct {
	Type string `json:"type"`
	Size string `json:"size"`
}

GetTransactionTransactionDataMetaData includes the requested fields of the GraphQL type MetaData.

func (*GetTransactionTransactionDataMetaData) GetSize

GetSize returns GetTransactionTransactionDataMetaData.Size, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionDataMetaData) GetType

GetType returns GetTransactionTransactionDataMetaData.Type, and is useful for accessing the field via an interface.

type GetTransactionTransactionFeeAmount

type GetTransactionTransactionFeeAmount struct {
	Winston string `json:"winston"`
	Ar      string `json:"ar"`
}

GetTransactionTransactionFeeAmount includes the requested fields of the GraphQL type Amount.

func (*GetTransactionTransactionFeeAmount) GetAr

GetAr returns GetTransactionTransactionFeeAmount.Ar, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionFeeAmount) GetWinston

GetWinston returns GetTransactionTransactionFeeAmount.Winston, and is useful for accessing the field via an interface.

type GetTransactionTransactionOwner

type GetTransactionTransactionOwner struct {
	Address string `json:"address"`
	Key     string `json:"key"`
}

GetTransactionTransactionOwner includes the requested fields of the GraphQL type Owner.

func (*GetTransactionTransactionOwner) GetAddress

func (v *GetTransactionTransactionOwner) GetAddress() string

GetAddress returns GetTransactionTransactionOwner.Address, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionOwner) GetKey

GetKey returns GetTransactionTransactionOwner.Key, and is useful for accessing the field via an interface.

type GetTransactionTransactionQuantityAmount

type GetTransactionTransactionQuantityAmount struct {
	Winston string `json:"winston"`
	Ar      string `json:"ar"`
}

GetTransactionTransactionQuantityAmount includes the requested fields of the GraphQL type Amount.

func (*GetTransactionTransactionQuantityAmount) GetAr

GetAr returns GetTransactionTransactionQuantityAmount.Ar, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionQuantityAmount) GetWinston

GetWinston returns GetTransactionTransactionQuantityAmount.Winston, and is useful for accessing the field via an interface.

type GetTransactionTransactionTagsTag

type GetTransactionTransactionTagsTag struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

GetTransactionTransactionTagsTag includes the requested fields of the GraphQL type Tag.

func (*GetTransactionTransactionTagsTag) GetName

GetName returns GetTransactionTransactionTagsTag.Name, and is useful for accessing the field via an interface.

func (*GetTransactionTransactionTagsTag) GetValue

GetValue returns GetTransactionTransactionTagsTag.Value, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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