Documentation ¶
Index ¶
- type Category
- type Collection
- type ConsiderationItem
- type DBTX
- type Event
- type FullTextSearchParams
- type FullTextSearchRow
- type GetCollectionParams
- type GetCollectionRow
- type GetEventParams
- type GetEventRow
- type GetExpiredOrderRow
- type GetNftParams
- type GetNotificationParams
- type GetNotificationRow
- type GetOfferParams
- type GetOfferRow
- type GetOrderParams
- type InsertCollectionParams
- type InsertEventParams
- type InsertNotificationParams
- type InsertOrderConsiderationItemParams
- type InsertOrderOfferItemParams
- type InsertOrderParams
- type ListNftWithListingParams
- type Marketplace
- type MarketplaceSetting
- type Nft
- type Notification
- type OfferItem
- type Order
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) FullTextSearch(ctx context.Context, arg FullTextSearchParams) ([]FullTextSearchRow, error)
- func (q *Queries) GetCategoryByName(ctx context.Context, name string) (Category, error)
- func (q *Queries) GetCollection(ctx context.Context, arg GetCollectionParams) ([]GetCollectionRow, error)
- func (q *Queries) GetCollectionLastSyncBlock(ctx context.Context, token string) (int64, error)
- func (q *Queries) GetEvent(ctx context.Context, arg GetEventParams) ([]GetEventRow, error)
- func (q *Queries) GetExpiredOrder(ctx context.Context, now sql.NullString) ([]GetExpiredOrderRow, error)
- func (q *Queries) GetMarketplaceLastSyncBlock(ctx context.Context) (int64, error)
- func (q *Queries) GetMarketplaceSettings(ctx context.Context, marketplace string) (MarketplaceSetting, error)
- func (q *Queries) GetNft(ctx context.Context, arg GetNftParams) (Nft, error)
- func (q *Queries) GetNotification(ctx context.Context, arg GetNotificationParams) ([]GetNotificationRow, error)
- func (q *Queries) GetOffer(ctx context.Context, arg GetOfferParams) ([]GetOfferRow, error)
- func (q *Queries) GetOrder(ctx context.Context, arg GetOrderParams) ([]json.RawMessage, error)
- func (q *Queries) InsertCategory(ctx context.Context, name string) (Category, error)
- func (q *Queries) InsertCollection(ctx context.Context, arg InsertCollectionParams) (Collection, error)
- func (q *Queries) InsertEvent(ctx context.Context, arg InsertEventParams) (Event, error)
- func (q *Queries) InsertNotification(ctx context.Context, arg InsertNotificationParams) (Notification, error)
- func (q *Queries) InsertOrder(ctx context.Context, arg InsertOrderParams) (Order, error)
- func (q *Queries) InsertOrderConsiderationItem(ctx context.Context, arg InsertOrderConsiderationItemParams) (ConsiderationItem, error)
- func (q *Queries) InsertOrderOfferItem(ctx context.Context, arg InsertOrderOfferItemParams) (OfferItem, error)
- func (q *Queries) ListNftWithListing(ctx context.Context, arg ListNftWithListingParams) ([]json.RawMessage, error)
- func (q *Queries) UpdateCollectionLastSyncBlock(ctx context.Context, arg UpdateCollectionLastSyncBlockParams) error
- func (q *Queries) UpdateMarketplaceLastSyncBlock(ctx context.Context, lastSyncBlock int64) error
- func (q *Queries) UpdateMarketplaceSettings(ctx context.Context, arg UpdateMarketplaceSettingsParams) (MarketplaceSetting, error)
- func (q *Queries) UpdateNft(ctx context.Context, arg UpdateNftParams) (Nft, error)
- func (q *Queries) UpdateNotification(ctx context.Context, arg UpdateNotificationParams) (Notification, error)
- func (q *Queries) UpdateOrderStatus(ctx context.Context, arg UpdateOrderStatusParams) ([]Order, error)
- func (q *Queries) UpdateOrderStatusByOffer(ctx context.Context, arg UpdateOrderStatusByOfferParams) ([]Order, error)
- func (q *Queries) UpsertNftLatest(ctx context.Context, arg UpsertNftLatestParams) (Nft, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateCollectionLastSyncBlockParams
- type UpdateMarketplaceSettingsParams
- type UpdateNftParams
- type UpdateNotificationParams
- type UpdateOrderStatusByOfferParams
- type UpdateOrderStatusParams
- type UpsertNftLatestParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type ConsiderationItem ¶
type ConsiderationItem struct { ID int64 OrderHash string ItemType int32 Token string Identifier string Amount sql.NullString StartAmount sql.NullString EndAmount sql.NullString Recipient string }
type Event ¶
type Event struct { ID int32 Name string Token string TokenID string Quantity sql.NullInt32 Type sql.NullString Price sql.NullString From string To sql.NullString Date sql.NullTime TxHash sql.NullString OrderHash sql.NullString }
type FullTextSearchParams ¶
type FullTextSearchParams struct { Q sql.NullString IsHidden sql.NullBool Owner sql.NullString Token sql.NullString Offset int32 Limit int32 }
type FullTextSearchRow ¶
type FullTextSearchRow struct { BlockNumber string Token string Identifier string Owner string IsHidden bool Image interface{} Name interface{} Description interface{} OrderHash sql.NullString ItemType sql.NullInt32 StartPrice sql.NullString EndPrice sql.NullString StartTime sql.NullString EndTime sql.NullString }
type GetCollectionParams ¶
type GetCollectionParams struct { Token sql.NullString Owner sql.NullString Name sql.NullString Category sql.NullString Offset int32 Limit int32 }
type GetCollectionRow ¶
type GetEventParams ¶
type GetEventParams struct { Name sql.NullString Token sql.NullString TokenID sql.NullString Type sql.NullString Address sql.NullString StartDate sql.NullString EndDate sql.NullString }
type GetEventRow ¶
type GetEventRow struct { Name string Token string TokenID string Quantity sql.NullInt32 Type sql.NullString Price sql.NullString From string To sql.NullString Date sql.NullTime TxHash sql.NullString NftImage string NftName string EndTime sql.NullString IsCancelled sql.NullBool IsFulfilled sql.NullBool OrderHash sql.NullString }
type GetExpiredOrderRow ¶
type GetNftParams ¶
type GetNotificationParams ¶
type GetNotificationParams struct { Address sql.NullString IsViewed sql.NullBool }
type GetNotificationRow ¶
type GetNotificationRow struct { IsViewed sql.NullBool Info string EventName string OrderHash string Address string Token string TokenID string Quantity sql.NullInt32 Type sql.NullString Price sql.NullString From string To sql.NullString Date sql.NullTime Owner string NftImage string NftName string }
type GetOfferParams ¶
type GetOfferParams struct { Owner sql.NullString From sql.NullString }
type GetOfferRow ¶
type GetOfferRow struct { Name string Token string TokenID string Quantity sql.NullInt32 NftImage string NftName string Type sql.NullString OrderHash sql.NullString Price sql.NullString Owner string From string StartTime sql.NullString EndTime sql.NullString IsFulfilled sql.NullBool IsCancelled sql.NullBool IsExpired bool }
type GetOrderParams ¶
type GetOrderParams struct { OrderHash sql.NullString Offerer sql.NullString IsCancelled sql.NullBool IsFulfilled sql.NullBool IsInvalid sql.NullBool ConsiderationToken sql.NullString ConsiderationIdentifier sql.NullString OfferToken sql.NullString OfferIdentifier sql.NullString }
type InsertCollectionParams ¶
type InsertEventParams ¶
type InsertEventParams struct { Name string Token string TokenID string Quantity sql.NullInt32 Type sql.NullString Price sql.NullString From string To sql.NullString TxHash sql.NullString OrderHash sql.NullString }
type InsertOrderConsiderationItemParams ¶
type InsertOrderConsiderationItemParams struct { OrderHash string ItemType int32 Token string Identifier string Amount sql.NullString StartAmount sql.NullString EndAmount sql.NullString Recipient string }
type InsertOrderOfferItemParams ¶
type InsertOrderOfferItemParams struct { OrderHash string ItemType int32 Token string Identifier string Amount sql.NullString StartAmount sql.NullString EndAmount sql.NullString }
type InsertOrderParams ¶
type InsertOrderParams struct { OrderHash string Offerer string Recipient sql.NullString Salt sql.NullString StartTime sql.NullString EndTime sql.NullString Signature sql.NullString IsValidated bool IsCancelled bool IsFulfilled bool }
type ListNftWithListingParams ¶
type ListNftWithListingParams struct { ItemType int32 Now sql.NullString LimitListing int32 IsHidden sql.NullBool Owner sql.NullString Token sql.NullString Identifier sql.NullString OffsetNft int32 LimitNft int32 }
type Marketplace ¶
type Marketplace struct {
LastSyncBlock int64
}
type MarketplaceSetting ¶
type Notification ¶
type OfferItem ¶
type OfferItem struct { ID int64 OrderHash string ItemType int32 Token string Identifier string Amount sql.NullString StartAmount sql.NullString EndAmount sql.NullString }
type Order ¶
type Order struct { OrderHash string Offerer string Recipient sql.NullString Salt sql.NullString StartTime sql.NullString EndTime sql.NullString Signature sql.NullString IsCancelled bool IsValidated bool IsFulfilled bool IsInvalid bool }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) FullTextSearch ¶
func (q *Queries) FullTextSearch(ctx context.Context, arg FullTextSearchParams) ([]FullTextSearchRow, error)
func (*Queries) GetCategoryByName ¶
func (*Queries) GetCollection ¶
func (q *Queries) GetCollection(ctx context.Context, arg GetCollectionParams) ([]GetCollectionRow, error)
func (*Queries) GetCollectionLastSyncBlock ¶
func (*Queries) GetEvent ¶
func (q *Queries) GetEvent(ctx context.Context, arg GetEventParams) ([]GetEventRow, error)
func (*Queries) GetExpiredOrder ¶
func (q *Queries) GetExpiredOrder(ctx context.Context, now sql.NullString) ([]GetExpiredOrderRow, error)
func (*Queries) GetMarketplaceLastSyncBlock ¶
func (*Queries) GetMarketplaceSettings ¶
func (*Queries) GetNotification ¶
func (q *Queries) GetNotification(ctx context.Context, arg GetNotificationParams) ([]GetNotificationRow, error)
func (*Queries) GetOffer ¶
func (q *Queries) GetOffer(ctx context.Context, arg GetOfferParams) ([]GetOfferRow, error)
func (*Queries) GetOrder ¶
func (q *Queries) GetOrder(ctx context.Context, arg GetOrderParams) ([]json.RawMessage, error)
func (*Queries) InsertCategory ¶
func (*Queries) InsertCollection ¶
func (q *Queries) InsertCollection(ctx context.Context, arg InsertCollectionParams) (Collection, error)
func (*Queries) InsertEvent ¶
func (*Queries) InsertNotification ¶
func (q *Queries) InsertNotification(ctx context.Context, arg InsertNotificationParams) (Notification, error)
func (*Queries) InsertOrder ¶
func (*Queries) InsertOrderConsiderationItem ¶
func (q *Queries) InsertOrderConsiderationItem(ctx context.Context, arg InsertOrderConsiderationItemParams) (ConsiderationItem, error)
func (*Queries) InsertOrderOfferItem ¶
func (*Queries) ListNftWithListing ¶
func (q *Queries) ListNftWithListing(ctx context.Context, arg ListNftWithListingParams) ([]json.RawMessage, error)
func (*Queries) UpdateCollectionLastSyncBlock ¶
func (q *Queries) UpdateCollectionLastSyncBlock(ctx context.Context, arg UpdateCollectionLastSyncBlockParams) error
func (*Queries) UpdateMarketplaceLastSyncBlock ¶
func (*Queries) UpdateMarketplaceSettings ¶
func (q *Queries) UpdateMarketplaceSettings(ctx context.Context, arg UpdateMarketplaceSettingsParams) (MarketplaceSetting, error)
func (*Queries) UpdateNotification ¶
func (q *Queries) UpdateNotification(ctx context.Context, arg UpdateNotificationParams) (Notification, error)
func (*Queries) UpdateOrderStatus ¶
func (*Queries) UpdateOrderStatusByOffer ¶
func (*Queries) UpsertNftLatest ¶
type UpdateMarketplaceSettingsParams ¶
type UpdateMarketplaceSettingsParams struct { NMarketplace sql.NullString NBeneficiary sql.NullString NRoyalty sql.NullString Marketplace string }
type UpdateNftParams ¶
type UpdateNotificationParams ¶
type UpdateNotificationParams struct { EventName sql.NullString OrderHash sql.NullString }
type UpdateOrderStatusParams ¶
type UpsertNftLatestParams ¶
Source Files ¶
- category-read.sql.go
- category-write.sql.go
- collection-read.sql.go
- collection-write.sql.go
- db.go
- event-read.sql.go
- event-write.sql.go
- marketplace-read.sql.go
- marketplace-write.sql.go
- marketplace_settings-read.sql.go
- marketplace_settings-write.sql.go
- models.go
- nft-read.sql.go
- nft-write.sql.go
- notification-read.sql.go
- notification-write.sql.go
- order-read.sql.go
- order-write.sql.go
- search.sql.go
Click to show internal directories.
Click to hide internal directories.