Documentation
¶
Index ¶
- func CreateIndex(ctx context.Context, tx bun.Tx) error
- func CreateTypes(ctx context.Context, conn *database.Bun) error
- type CelestialState
- type CelestialTransaction
- func (tx CelestialTransaction) SaveCelestials(ctx context.Context, celestials iter.Seq[storage.Celestial]) error
- func (tx CelestialTransaction) UpdateState(ctx context.Context, state *storage.CelestialState) error
- func (tx CelestialTransaction) UpdateStatusForAddress(ctx context.Context, addressId iter.Seq[uint64]) error
- type Celestials
- func (c *Celestials) ByAddressId(ctx context.Context, addressId uint64, limit, offset int) (result []storage.Celestial, err error)
- func (c *Celestials) ById(ctx context.Context, id string) (result storage.Celestial, err error)
- func (c *Celestials) Primary(ctx context.Context, addressId uint64) (result storage.Celestial, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIndex ¶
CreateIndex - creates all needed indices in postgres database
Types ¶
type CelestialState ¶
type CelestialState struct {
// contains filtered or unexported fields
}
func NewCelestialState ¶
func NewCelestialState(db *database.Bun) *CelestialState
func (*CelestialState) ByName ¶
func (cs *CelestialState) ByName(ctx context.Context, name string) (result storage.CelestialState, err error)
func (*CelestialState) Save ¶
func (cs *CelestialState) Save(ctx context.Context, state *storage.CelestialState) error
type CelestialTransaction ¶
type CelestialTransaction struct {
sdk.Transaction
}
func BeginCelestialTransaction ¶
func BeginCelestialTransaction(ctx context.Context, tx sdk.Transactable) (CelestialTransaction, error)
func (CelestialTransaction) SaveCelestials ¶
func (CelestialTransaction) UpdateState ¶
func (tx CelestialTransaction) UpdateState(ctx context.Context, state *storage.CelestialState) error
func (CelestialTransaction) UpdateStatusForAddress ¶ added in v0.0.3
type Celestials ¶
func NewCelestials ¶
func NewCelestials(db *database.Bun) *Celestials
func (*Celestials) ByAddressId ¶
Click to show internal directories.
Click to hide internal directories.