Documentation ¶
Index ¶
- type ApprovalQ
- type CollectionChainMappingQ
- func (q *CollectionChainMappingQ) CollectionChainMappingByCollectionNetworkCtx(ctx context.Context, collection int64, network int, isForUpdate bool) (*data.CollectionChainMapping, error)
- func (q *CollectionChainMappingQ) DeleteByCollectionCtx(ctx context.Context, collection int64) error
- func (q *CollectionChainMappingQ) DeleteCtx(ctx context.Context, ccm *data.CollectionChainMapping) error
- func (q *CollectionChainMappingQ) InsertBatchCtx(ctx context.Context, chainMappings ...data.CollectionChainMapping) error
- func (q *CollectionChainMappingQ) InsertCtx(ctx context.Context, ccm *data.CollectionChainMapping) error
- func (q *CollectionChainMappingQ) UpsertCtx(ctx context.Context, ccm *data.CollectionChainMapping) error
- type CollectionQ
- type ConfirmationsQ
- type ItemChainMappingQ
- func (q *ItemChainMappingQ) DeleteByItemCtx(ctx context.Context, item int64) error
- func (q *ItemChainMappingQ) DeleteCtx(ctx context.Context, icm *data.ItemChainMapping) error
- func (q *ItemChainMappingQ) InsertBatchCtx(ctx context.Context, chainMappings ...data.ItemChainMapping) error
- func (q *ItemChainMappingQ) InsertCtx(ctx context.Context, icm *data.ItemChainMapping) error
- func (q *ItemChainMappingQ) ItemChainMappingByItemNetworkCtx(ctx context.Context, item int64, network int, isForUpdate bool) (*data.ItemChainMapping, error)
- func (q *ItemChainMappingQ) ItemChainMappingsByNetworkCtx(ctx context.Context, network int, isForUpdate bool) ([]data.ItemChainMapping, error)
- type ItemQ
- func (q *ItemQ) DeleteCtx(ctx context.Context, i *data.Item) error
- func (q *ItemQ) InsertCtx(ctx context.Context, i *data.Item) error
- func (q *ItemQ) ItemByIDCtx(ctx context.Context, id int64, isForUpdate bool) (*data.Item, error)
- func (q *ItemQ) ItemByIndexCtx(ctx context.Context, index []byte, isForUpdate bool) (*data.Item, error)
- func (q *ItemQ) UpdateCtx(ctx context.Context, i *data.Item) error
- type RejectionQ
- type Storage
- func (s *Storage) ApprovalQ() data.ApprovalQ
- func (s *Storage) CollectionChainMappingQ() data.CollectionChainMappingQ
- func (s *Storage) CollectionQ() data.CollectionQ
- func (s *Storage) ConfirmationQ() data.ConfirmationQ
- func (s *Storage) ItemChainMappingQ() data.ItemChainMappingQ
- func (s *Storage) ItemQ() data.ItemQ
- func (s *Storage) RejectionQ() data.RejectionQ
- func (s *Storage) Transaction(f func() error) error
- func (s *Storage) TransactionQ() data.TransactionQ
- func (s *Storage) TransferQ() data.TransferQ
- func (s *Storage) VoteQ() data.VoteQ
- type TransfersQ
- func (q *TransfersQ) SelectCtx(ctx context.Context, selector data.TransferSelector) ([]data.Transfer, error)
- func (q *TransfersQ) SetStatusByIndexCtx(ctx context.Context, status int, indexes ...string) error
- func (q *TransfersQ) TransferByIndexCtx(ctx context.Context, index []byte, isForUpdate bool) (*data.Transfer, error)
- func (q *TransfersQ) UpsertBatchCtx(ctx context.Context, transfers ...data.Transfer) error
- type VoteQ
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalQ ¶
type ApprovalQ struct {
// contains filtered or unexported fields
}
func (*ApprovalQ) ApprovalsByTransferIndexCtx ¶
type CollectionChainMappingQ ¶
type CollectionChainMappingQ struct {
// contains filtered or unexported fields
}
func (*CollectionChainMappingQ) CollectionChainMappingByCollectionNetworkCtx ¶
func (q *CollectionChainMappingQ) CollectionChainMappingByCollectionNetworkCtx(ctx context.Context, collection int64, network int, isForUpdate bool) (*data.CollectionChainMapping, error)
func (*CollectionChainMappingQ) DeleteByCollectionCtx ¶
func (q *CollectionChainMappingQ) DeleteByCollectionCtx(ctx context.Context, collection int64) error
func (*CollectionChainMappingQ) DeleteCtx ¶
func (q *CollectionChainMappingQ) DeleteCtx(ctx context.Context, ccm *data.CollectionChainMapping) error
func (*CollectionChainMappingQ) InsertBatchCtx ¶
func (q *CollectionChainMappingQ) InsertBatchCtx(ctx context.Context, chainMappings ...data.CollectionChainMapping) error
func (*CollectionChainMappingQ) InsertCtx ¶
func (q *CollectionChainMappingQ) InsertCtx(ctx context.Context, ccm *data.CollectionChainMapping) error
func (*CollectionChainMappingQ) UpsertCtx ¶
func (q *CollectionChainMappingQ) UpsertCtx(ctx context.Context, ccm *data.CollectionChainMapping) error
type CollectionQ ¶
type CollectionQ struct {
// contains filtered or unexported fields
}
func (*CollectionQ) CollectionByIndexCtx ¶
func (q *CollectionQ) CollectionByIndexCtx(ctx context.Context, index []byte, isForUpdate bool) (*data.Collection, error)
func (*CollectionQ) DeleteCtx ¶
func (q *CollectionQ) DeleteCtx(ctx context.Context, c *data.Collection) error
func (*CollectionQ) InsertCtx ¶
func (q *CollectionQ) InsertCtx(ctx context.Context, c *data.Collection) error
type ConfirmationsQ ¶
type ConfirmationsQ struct {
// contains filtered or unexported fields
}
func (*ConfirmationsQ) ConfirmationsByTransferIndexCtx ¶
func (q *ConfirmationsQ) ConfirmationsByTransferIndexCtx(ctx context.Context, transferIndex []byte, isForUpdate bool) ([]data.Confirmation, error)
func (*ConfirmationsQ) InsertBatchCtx ¶
func (q *ConfirmationsQ) InsertBatchCtx(ctx context.Context, confirmations ...data.Confirmation) error
type ItemChainMappingQ ¶
type ItemChainMappingQ struct {
// contains filtered or unexported fields
}
func (*ItemChainMappingQ) DeleteByItemCtx ¶
func (q *ItemChainMappingQ) DeleteByItemCtx(ctx context.Context, item int64) error
func (*ItemChainMappingQ) DeleteCtx ¶
func (q *ItemChainMappingQ) DeleteCtx(ctx context.Context, icm *data.ItemChainMapping) error
func (*ItemChainMappingQ) InsertBatchCtx ¶
func (q *ItemChainMappingQ) InsertBatchCtx(ctx context.Context, chainMappings ...data.ItemChainMapping) error
func (*ItemChainMappingQ) InsertCtx ¶
func (q *ItemChainMappingQ) InsertCtx(ctx context.Context, icm *data.ItemChainMapping) error
func (*ItemChainMappingQ) ItemChainMappingByItemNetworkCtx ¶
func (q *ItemChainMappingQ) ItemChainMappingByItemNetworkCtx(ctx context.Context, item int64, network int, isForUpdate bool) (*data.ItemChainMapping, error)
func (*ItemChainMappingQ) ItemChainMappingsByNetworkCtx ¶
func (q *ItemChainMappingQ) ItemChainMappingsByNetworkCtx(ctx context.Context, network int, isForUpdate bool) ([]data.ItemChainMapping, error)
type ItemQ ¶
type ItemQ struct {
// contains filtered or unexported fields
}
func (*ItemQ) ItemByIDCtx ¶
func (*ItemQ) ItemByIndexCtx ¶
type RejectionQ ¶
type RejectionQ struct {
// contains filtered or unexported fields
}
func (*RejectionQ) InsertBatchCtx ¶
func (*RejectionQ) RejectionsByTransferIndexCtx ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) CollectionChainMappingQ ¶
func (s *Storage) CollectionChainMappingQ() data.CollectionChainMappingQ
func (*Storage) CollectionQ ¶
func (s *Storage) CollectionQ() data.CollectionQ
func (*Storage) ConfirmationQ ¶
func (s *Storage) ConfirmationQ() data.ConfirmationQ
func (*Storage) ItemChainMappingQ ¶
func (s *Storage) ItemChainMappingQ() data.ItemChainMappingQ
func (*Storage) RejectionQ ¶
func (s *Storage) RejectionQ() data.RejectionQ
func (*Storage) Transaction ¶
Transaction is a wrapper around data.Storage.Transaction and its internals are not cached. You should not get data from cache within the transaction (because of possible race conditions), use plain pg.Storage's methods instead to get data from DB
func (*Storage) TransactionQ ¶
func (s *Storage) TransactionQ() data.TransactionQ
type TransfersQ ¶
type TransfersQ struct {
// contains filtered or unexported fields
}
func (*TransfersQ) SelectCtx ¶
func (q *TransfersQ) SelectCtx(ctx context.Context, selector data.TransferSelector) ([]data.Transfer, error)
func (*TransfersQ) SetStatusByIndexCtx ¶
func (*TransfersQ) TransferByIndexCtx ¶
func (*TransfersQ) UpsertBatchCtx ¶
type VoteQ ¶
type VoteQ struct {
// contains filtered or unexported fields
}
func (*VoteQ) InsertBatchCtx ¶
Click to show internal directories.
Click to hide internal directories.