resolver

package
v1.4.1-rc-109 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiaResolver

type DiaResolver struct {
	DS              models.DB
	RelDB           models.RelDB
	InfluxBatchSize int64
}

Resolver is the root resolver

func (*DiaResolver) GetChart

func (r *DiaResolver) GetChart(ctx context.Context, args struct {
	Filter               graphql.NullString
	BlockDurationSeconds graphql.NullInt
	BlockShiftSeconds    graphql.NullInt
	Symbol               graphql.NullString
	StartTime            graphql.NullTime
	EndTime              graphql.NullTime
	Exchanges            *[]graphql.NullString
	Address              graphql.NullString
	BlockChain           graphql.NullString
}) (*[]*FilterPointResolver, error)

func (*DiaResolver) GetNFT added in v1.4.2

func (r *DiaResolver) GetNFT(ctx context.Context, args struct {
	Address    graphql.NullString
	Blockchain graphql.NullString
	TokenID    graphql.NullString
}) (*NFTResolver, error)

GetNFT returns an NFT by address, blockchain and token_id.

func (*DiaResolver) GetNFTBids added in v1.4.2

func (r *DiaResolver) GetNFTBids(ctx context.Context, args struct {
	Address    graphql.NullString
	Blockchain graphql.NullString
	TokenID    graphql.NullString
}) (*[]*NFTBidResolver, error)

GetNFTOffers returns offers of an NFT by address, blockchain, token_id and time range

func (*DiaResolver) GetNFTOffers added in v1.4.2

func (r *DiaResolver) GetNFTOffers(ctx context.Context, args struct {
	Address    graphql.NullString
	Blockchain graphql.NullString
	TokenID    graphql.NullString
}) (*[]*NFTOfferResolver, error)

GetNFTOffers returns offers of an NFT by address, blockchain, token_id and time range

func (*DiaResolver) GetNFTTrades added in v1.4.2

func (r *DiaResolver) GetNFTTrades(ctx context.Context, args struct {
	Address    graphql.NullString
	Blockchain graphql.NullString
	TokenID    graphql.NullString
}) (*[]*NFTTradeResolver, error)

GetNFTTrades returns trades of an NFT by address, blockchain, token_id and time range

func (*DiaResolver) GetQuotation

func (r *DiaResolver) GetQuotation(ctx context.Context, args struct{ Symbol graphql.NullString }) (*QuotationResolver, error)

GetQuotation Get quotation

func (*DiaResolver) GetSupplies

func (r *DiaResolver) GetSupplies(ctx context.Context, args struct{ Symbol graphql.NullString }) (*[]*SupplyResolver, error)

func (*DiaResolver) GetSupply

func (r *DiaResolver) GetSupply(ctx context.Context, args struct{ Symbol graphql.NullString }) (*SupplyResolver, error)

type FilterPointResolver

type FilterPointResolver struct {
	// contains filtered or unexported fields
}

func (*FilterPointResolver) Address

func (qr *FilterPointResolver) Address(ctx context.Context) (*string, error)

func (*FilterPointResolver) Blockchain

func (qr *FilterPointResolver) Blockchain(ctx context.Context) (*string, error)

func (*FilterPointResolver) Name

func (qr *FilterPointResolver) Name(ctx context.Context) (*string, error)

func (*FilterPointResolver) Symbol

func (qr *FilterPointResolver) Symbol(ctx context.Context) (*string, error)

func (*FilterPointResolver) Time

func (qr *FilterPointResolver) Time(ctx context.Context) (*graphql.Time, error)

func (*FilterPointResolver) Value

func (qr *FilterPointResolver) Value(ctx context.Context) (*float64, error)

type NFTBidResolver added in v1.4.2

type NFTBidResolver struct {
	// contains filtered or unexported fields
}

func (*NFTBidResolver) Address added in v1.4.2

func (br *NFTBidResolver) Address(ctx context.Context) (*string, error)

func (*NFTBidResolver) BidValue added in v1.4.2

func (br *NFTBidResolver) BidValue(ctx context.Context) (*string, error)

func (*NFTBidResolver) Blockchain added in v1.4.2

func (br *NFTBidResolver) Blockchain(ctx context.Context) (*string, error)

func (*NFTBidResolver) Blocknumber added in v1.4.2

func (br *NFTBidResolver) Blocknumber(ctx context.Context) (*int32, error)

func (*NFTBidResolver) CurrencyAddress added in v1.4.2

func (br *NFTBidResolver) CurrencyAddress(ctx context.Context) (*string, error)

func (*NFTBidResolver) CurrencyDecimals added in v1.4.2

func (br *NFTBidResolver) CurrencyDecimals(ctx context.Context) (*int32, error)

func (*NFTBidResolver) CurrencySymbol added in v1.4.2

func (br *NFTBidResolver) CurrencySymbol(ctx context.Context) (*string, error)

func (*NFTBidResolver) Exchange added in v1.4.2

func (br *NFTBidResolver) Exchange(ctx context.Context) (*string, error)

func (*NFTBidResolver) FromAddress added in v1.4.2

func (br *NFTBidResolver) FromAddress(ctx context.Context) (*string, error)

func (*NFTBidResolver) Timestamp added in v1.4.2

func (br *NFTBidResolver) Timestamp(ctx context.Context) (*graphql.Time, error)

func (*NFTBidResolver) TokenID added in v1.4.2

func (br *NFTBidResolver) TokenID(ctx context.Context) (*string, error)

func (*NFTBidResolver) TxHash added in v1.4.2

func (br *NFTBidResolver) TxHash(ctx context.Context) (*string, error)

type NFTOfferResolver added in v1.4.2

type NFTOfferResolver struct {
	// contains filtered or unexported fields
}

func (*NFTOfferResolver) Address added in v1.4.2

func (or *NFTOfferResolver) Address(ctx context.Context) (*string, error)

func (*NFTOfferResolver) AuctionType added in v1.4.2

func (or *NFTOfferResolver) AuctionType(ctx context.Context) (*string, error)

func (*NFTOfferResolver) Blockchain added in v1.4.2

func (or *NFTOfferResolver) Blockchain(ctx context.Context) (*string, error)

func (*NFTOfferResolver) Blocknumber added in v1.4.2

func (or *NFTOfferResolver) Blocknumber(ctx context.Context) (*int32, error)

func (*NFTOfferResolver) CurrencyAddress added in v1.4.2

func (or *NFTOfferResolver) CurrencyAddress(ctx context.Context) (*string, error)

func (*NFTOfferResolver) CurrencyDecimals added in v1.4.2

func (or *NFTOfferResolver) CurrencyDecimals(ctx context.Context) (*int32, error)

func (*NFTOfferResolver) CurrencySymbol added in v1.4.2

func (or *NFTOfferResolver) CurrencySymbol(ctx context.Context) (*string, error)

func (*NFTOfferResolver) Duration added in v1.4.2

func (or *NFTOfferResolver) Duration(ctx context.Context) (*int32, error)

func (*NFTOfferResolver) EndValue added in v1.4.2

func (or *NFTOfferResolver) EndValue(ctx context.Context) (*string, error)

func (*NFTOfferResolver) Exchange added in v1.4.2

func (or *NFTOfferResolver) Exchange(ctx context.Context) (*string, error)

func (*NFTOfferResolver) FromAddress added in v1.4.2

func (or *NFTOfferResolver) FromAddress(ctx context.Context) (*string, error)

func (*NFTOfferResolver) StartValue added in v1.4.2

func (or *NFTOfferResolver) StartValue(ctx context.Context) (*string, error)

func (*NFTOfferResolver) Timestamp added in v1.4.2

func (or *NFTOfferResolver) Timestamp(ctx context.Context) (*graphql.Time, error)

func (*NFTOfferResolver) TokenID added in v1.4.2

func (or *NFTOfferResolver) TokenID(ctx context.Context) (*string, error)

func (*NFTOfferResolver) TxHash added in v1.4.2

func (or *NFTOfferResolver) TxHash(ctx context.Context) (*string, error)

type NFTResolver added in v1.4.2

type NFTResolver struct {
	// contains filtered or unexported fields
}

func (*NFTResolver) Address added in v1.4.2

func (nr *NFTResolver) Address(ctx context.Context) (*string, error)

func (*NFTResolver) Blockchain added in v1.4.2

func (nr *NFTResolver) Blockchain(ctx context.Context) (*string, error)

func (*NFTResolver) CreationTime added in v1.4.2

func (nr *NFTResolver) CreationTime(ctx context.Context) (*graphql.Time, error)

func (*NFTResolver) CreatorAddress added in v1.4.2

func (nr *NFTResolver) CreatorAddress(ctx context.Context) (*string, error)

func (*NFTResolver) TokenID added in v1.4.2

func (nr *NFTResolver) TokenID(ctx context.Context) (*string, error)

func (*NFTResolver) URI added in v1.4.2

func (nr *NFTResolver) URI(ctx context.Context) (*string, error)

type NFTTradeResolver added in v1.4.2

type NFTTradeResolver struct {
	// contains filtered or unexported fields
}

func (*NFTTradeResolver) Address added in v1.4.2

func (tr *NFTTradeResolver) Address(ctx context.Context) (*string, error)

func (*NFTTradeResolver) Blockchain added in v1.4.2

func (tr *NFTTradeResolver) Blockchain(ctx context.Context) (*string, error)

func (*NFTTradeResolver) Blocknumber added in v1.4.2

func (tr *NFTTradeResolver) Blocknumber(ctx context.Context) (*int32, error)

func (*NFTTradeResolver) CurrencyAddress added in v1.4.2

func (tr *NFTTradeResolver) CurrencyAddress(ctx context.Context) (*string, error)

func (*NFTTradeResolver) CurrencyDecimals added in v1.4.2

func (tr *NFTTradeResolver) CurrencyDecimals(ctx context.Context) (*int32, error)

func (*NFTTradeResolver) CurrencySymbol added in v1.4.2

func (tr *NFTTradeResolver) CurrencySymbol(ctx context.Context) (*string, error)

func (*NFTTradeResolver) Exchange added in v1.4.2

func (tr *NFTTradeResolver) Exchange(ctx context.Context) (*string, error)

func (*NFTTradeResolver) FromAddress added in v1.4.2

func (tr *NFTTradeResolver) FromAddress(ctx context.Context) (*string, error)

func (*NFTTradeResolver) Price added in v1.4.2

func (tr *NFTTradeResolver) Price(ctx context.Context) (*string, error)

func (*NFTTradeResolver) Timestamp added in v1.4.2

func (tr *NFTTradeResolver) Timestamp(ctx context.Context) (*graphql.Time, error)

func (*NFTTradeResolver) ToAddress added in v1.4.2

func (tr *NFTTradeResolver) ToAddress(ctx context.Context) (*string, error)

func (*NFTTradeResolver) TokenID added in v1.4.2

func (tr *NFTTradeResolver) TokenID(ctx context.Context) (*string, error)

func (*NFTTradeResolver) TxHash added in v1.4.2

func (tr *NFTTradeResolver) TxHash(ctx context.Context) (*string, error)

type QuotationResolver

type QuotationResolver struct {
	// contains filtered or unexported fields
}

func (*QuotationResolver) Data

func (qr *QuotationResolver) Data(ctx context.Context) (*string, error)

func (*QuotationResolver) ITIN

func (qr *QuotationResolver) ITIN(ctx context.Context) (*string, error)

func (*QuotationResolver) MAIR

func (qr *QuotationResolver) MAIR(ctx context.Context) (*graphql.Time, error)

func (*QuotationResolver) Name

func (qr *QuotationResolver) Name(ctx context.Context) (*string, error)

func (*QuotationResolver) Price

func (qr *QuotationResolver) Price(ctx context.Context) (*float64, error)

func (*QuotationResolver) Source

func (qr *QuotationResolver) Source(ctx context.Context) (*string, error)

func (*QuotationResolver) Symbol

func (qr *QuotationResolver) Symbol(ctx context.Context) (*string, error)

func (*QuotationResolver) Time

func (qr *QuotationResolver) Time(ctx context.Context) (*graphql.Time, error)

type StringResolver

type StringResolver struct {
	// contains filtered or unexported fields
}

type SupplyResolver

type SupplyResolver struct {
	// contains filtered or unexported fields
}

func (*SupplyResolver) CirculatingSupply

func (qr *SupplyResolver) CirculatingSupply(ctx context.Context) (*float64, error)

func (*SupplyResolver) MA

func (qr *SupplyResolver) MA(ctx context.Context) (*graphql.Time, error)

func (*SupplyResolver) Name

func (qr *SupplyResolver) Name(ctx context.Context) (*string, error)

func (*SupplyResolver) Source

func (qr *SupplyResolver) Source(ctx context.Context) (*string, error)

func (*SupplyResolver) Supply

func (qr *SupplyResolver) Supply(ctx context.Context) (*float64, error)

func (*SupplyResolver) Symbol

func (qr *SupplyResolver) Symbol(ctx context.Context) (*string, error)

func (*SupplyResolver) Time

func (qr *SupplyResolver) Time(ctx context.Context) (*graphql.Time, error)

type TradeBlock

type TradeBlock struct {
	Trades []dia.Trade
}

Jump to

Keyboard shortcuts

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