Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidStatus = fmt.Errorf("not a valid Status, try [%s]", strings.Join(_StatusNames, ", "))
Functions ¶
func StatusNames ¶ added in v0.0.3
func StatusNames() []string
StatusNames returns a list of possible string values of Status.
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"`
Status Status `bun:"status,type:celestials_status" comment:"Status of celestial domain"`
}
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 ICelestial ¶
type ICelestialState ¶
type ICelestialState interface {
ByName(ctx context.Context, name string) (CelestialState, error)
Save(ctx context.Context, state *CelestialState) error
}
type Status ¶ added in v0.0.3
type Status string
swagger:enum Status
ENUM( NOT_VERIFIED, VERIFIED, PRIMARY )
func ParseStatus ¶ added in v0.0.3
ParseStatus attempts to convert a string to a Status.
func StatusValues ¶ added in v0.0.3
func StatusValues() []Status
StatusValues returns a list of the values for Status
func (Status) IsValid ¶ added in v0.0.3
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (Status) MarshalText ¶ added in v0.0.3
MarshalText implements the text marshaller method.
func (*Status) UnmarshalText ¶ added in v0.0.3
UnmarshalText implements the text unmarshaller method.
Click to show internal directories.
Click to hide internal directories.