Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Celestial ¶
type Celestial struct {
bun.BaseModel `bun:"celestial" comment:"Table with celestial ids."`
Id string `bun:"id,pk,notnull" comment:"Celestial id"`
AddressId uint64 `bun:"address_id" comment:"Internal address identity for connected address"`
ImageUrl string `bun:"image_url" comment:"Image url"`
ChangeId int64 `bun:"change_id" comment:"Id of the last change of celestial id"`
}
type CelestialState ¶
type CelestialState struct {
bun.BaseModel `bun:"celestial_state" comment:"Table with celestial ids."`
Name string `bun:"name,pk,notnull" comment:"Celestial id indexer name"`
ChangeId int64 `bun:"change_id" comment:"Id of the last change of celestial id"`
}
func (CelestialState) String ¶
func (cid CelestialState) String() string
func (CelestialState) TableName ¶
func (CelestialState) TableName() string
type CelestialTransaction ¶
type CelestialTransaction interface {
SaveCelestials(ctx context.Context, celestials ...Celestial) error
UpdateState(ctx context.Context, state *CelestialState) error
sdk.Transaction
}
type ICelestial ¶
type ICelestialState ¶
type ICelestialState interface {
ByName(ctx context.Context, name string) (CelestialState, error)
Save(ctx context.Context, state *CelestialState) error
}
Click to show internal directories.
Click to hide internal directories.