Documentation ¶
Index ¶
- type Allegiance
- func (x Allegiance) MarshalText() ([]byte, error)
- func (x Allegiance) MarshalZerologObject(e *zerolog.Event)
- func (x *Allegiance) Scan(value interface{}) (err error)
- func (x Allegiance) String() string
- func (x *Allegiance) UnmarshalText(text []byte) error
- func (x Allegiance) Value() (driver.Value, error)
- type NullAllegiance
- type NullPower
- type NullRank
- type Power
- type Rank
- type SLEF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allegiance ¶
type Allegiance int
Allegiance is an enumeration of Elite Dangerous Allegiances with Major Factions
ENUM( Independent Alliance Empire Federation Pirate PilotsFederation Thargoids Guardians )
const ( // Independent is a Allegiance of type Independent. Independent Allegiance = iota // Alliance is a Allegiance of type Alliance. Alliance // Empire is a Allegiance of type Empire. Empire // Federation is a Allegiance of type Federation. Federation // Pirate is a Allegiance of type Pirate. Pirate // PilotsFederation is a Allegiance of type PilotsFederation. PilotsFederation // Thargoids is a Allegiance of type Thargoids. Thargoids // Guardians is a Allegiance of type Guardians. Guardians )
func ParseAllegiance ¶
func ParseAllegiance(name string) (Allegiance, error)
ParseAllegiance attempts to convert a string to a Allegiance
func (Allegiance) MarshalText ¶
func (x Allegiance) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method
func (Allegiance) MarshalZerologObject ¶ added in v0.1.4
func (x Allegiance) MarshalZerologObject(e *zerolog.Event)
func (*Allegiance) Scan ¶
func (x *Allegiance) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (Allegiance) String ¶
func (x Allegiance) String() string
String implements the Stringer interface.
func (*Allegiance) UnmarshalText ¶
func (x *Allegiance) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method
type NullAllegiance ¶
type NullAllegiance struct { Allegiance Allegiance Valid bool Set bool }
func NewNullAllegiance ¶
func NewNullAllegiance(val interface{}) (x NullAllegiance)
func (NullAllegiance) MarshalJSON ¶
func (n NullAllegiance) MarshalJSON() ([]byte, error)
MarshalJSON correctly serializes a NullAllegiance to JSON.
func (*NullAllegiance) Scan ¶
func (x *NullAllegiance) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (*NullAllegiance) UnmarshalJSON ¶
func (n *NullAllegiance) UnmarshalJSON(b []byte) error
UnmarshalJSON correctly deserializes a NullAllegiance from JSON.
type NullPower ¶
func NewNullPower ¶
func NewNullPower(val interface{}) (x NullPower)
func (NullPower) MarshalJSON ¶
MarshalJSON correctly serializes a NullPower to JSON.
func (*NullPower) UnmarshalJSON ¶
UnmarshalJSON correctly deserializes a NullPower from JSON.
type NullRank ¶
func NewNullRank ¶
func NewNullRank(val interface{}) (x NullRank)
func (NullRank) MarshalJSON ¶
MarshalJSON correctly serializes a NullRank to JSON.
func (*NullRank) UnmarshalJSON ¶
UnmarshalJSON correctly deserializes a NullRank from JSON.
type Power ¶
type Power int
Power is an enumeration of Elite Dangerous Powers
ENUM( Uncontrolled Aisling Duval Archon Delaine Arissa Lavigny-Duval Denton Patreus Edmund Mahon Felicia Winters Li Yong-Rui Pranav Antal Yuri Grom Zachary Hudson Zemina Torval )
const ( // Uncontrolled is a Power of type Uncontrolled. Uncontrolled Power = iota // AislingDuval is a Power of type Aisling Duval. AislingDuval // ArchonDelaine is a Power of type Archon Delaine. ArchonDelaine // ArissaLavignyDuval is a Power of type Arissa Lavigny-Duval. ArissaLavignyDuval // DentonPatreus is a Power of type Denton Patreus. DentonPatreus // EdmundMahon is a Power of type Edmund Mahon. EdmundMahon // FeliciaWinters is a Power of type Felicia Winters. FeliciaWinters // LiYongRui is a Power of type Li Yong-Rui. LiYongRui PranavAntal // YuriGrom is a Power of type Yuri Grom. YuriGrom // ZacharyHudson is a Power of type Zachary Hudson. ZacharyHudson // ZeminaTorval is a Power of type Zemina Torval. ZeminaTorval )
func ParsePower ¶
ParsePower attempts to convert a string to a Power
func (Power) MarshalText ¶
MarshalText implements the text marshaller method
func (Power) MarshalZerologObject ¶ added in v0.1.4
func (*Power) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method
type Rank ¶
type Rank int
Rank is an enumeration of Elite Dangerous Ranks
ENUM( None=-1 Rookie Agent Officer SeniorOfficer Leader )
func (Rank) MarshalText ¶
MarshalText implements the text marshaller method
func (Rank) MarshalZerologObject ¶ added in v0.1.4
func (*Rank) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method