athena

package module
v0.0.0-...-d8ef1d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 8 Imported by: 0

README

Athena

What is Athena

Athena is an application written for the Massive Multiplayer Online Role Playing Game(MMORPG) Eve Online. It is named after the Greek God of Wisdom (amongst others) Athena. The name was choosen because this application allows players of Eve Online to easily share their characters data with other player. This is commonly done during an in game corporations recruitment process and Athena had this process in mind during its development. It gives recruiter of these in game corporation insight and awareness about various attributes of character they are interviewing granting them the knowledge necessary to make the decision to recruit a specific character.

Setup/Installation

  • WIP

Documentation

Index

Constants

View Source
const (
	EqualOp              operation = "="
	NotEqualOp           operation = "!="
	GreaterThanOp        operation = ">"
	GreaterThanEqualToOp operation = ">="
	LessThanOp           operation = "<"
	LessThanEqualToOp    operation = "<="
	InOp                 operation = "in"
	NotInOp              operation = "not in"
	LikeOp               operation = "like"

	LimitOp  operation = "limit"
	OrderOp  operation = "order"
	SkipOp   operation = "skip"
	OrOp     operation = "or"
	AndOp    operation = "and"
	ExistsOp operation = "exists"
)

Variables

View Source
var AllAssetLocationFlags = []AssetLocationFlag{
	AssetLocationFlagAssetSafety, AssetLocationFlagAutoFit, AssetLocationFlagBoosterBay, AssetLocationFlagCargo,
	AssetLocationFlagCorpseBay, AssetLocationFlagDeliveries, AssetLocationFlagDroneBay, AssetLocationFlagFighterBay,
	AssetLocationFlagFighterTube0, AssetLocationFlagFighterTube1, AssetLocationFlagFighterTube2, AssetLocationFlagFighterTube3,
	AssetLocationFlagFighterTube4, AssetLocationFlagFleetHangar, AssetLocationFlagFrigateEscapeBay, AssetLocationFlagHangar,
	AssetLocationFlagHangarAll, AssetLocationFlagHiSlot0, AssetLocationFlagHiSlot1, AssetLocationFlagHiSlot2,
	AssetLocationFlagHiSlot3, AssetLocationFlagHiSlot4, AssetLocationFlagHiSlot5, AssetLocationFlagHiSlot6,
	AssetLocationFlagHiSlot7, AssetLocationFlagHiddenModifiers, AssetLocationFlagImplant, AssetLocationFlagLoSlot0,
	AssetLocationFlagLoSlot1, AssetLocationFlagLoSlot2, AssetLocationFlagLoSlot3, AssetLocationFlagLoSlot4,
	AssetLocationFlagLoSlot5, AssetLocationFlagLoSlot6, AssetLocationFlagLoSlot7, AssetLocationFlagLocked,
	AssetLocationFlagMedSlot0, AssetLocationFlagMedSlot1, AssetLocationFlagMedSlot2, AssetLocationFlagMedSlot3,
	AssetLocationFlagMedSlot4, AssetLocationFlagMedSlot5, AssetLocationFlagMedSlot6, AssetLocationFlagMedSlot7,
	AssetLocationFlagQuafeBay, AssetLocationFlagRigSlot0, AssetLocationFlagRigSlot1, AssetLocationFlagRigSlot2,
	AssetLocationFlagRigSlot3, AssetLocationFlagRigSlot4, AssetLocationFlagRigSlot5, AssetLocationFlagRigSlot6,
	AssetLocationFlagRigSlot7, AssetLocationFlagShipHangar, AssetLocationFlagSkill, AssetLocationFlagSpecializedAmmoHold,
	AssetLocationFlagSpecializedCommandCenterHold, AssetLocationFlagSpecializedFuelBay, AssetLocationFlagSpecializedGasHold, AssetLocationFlagSpecializedIndustrialShipHold,
	AssetLocationFlagSpecializedLargeShipHold, AssetLocationFlagSpecializedMaterialBay, AssetLocationFlagSpecializedMediumShipHold, AssetLocationFlagSpecializedMineralHold,
	AssetLocationFlagSpecializedOreHold, AssetLocationFlagSpecializedPlanetaryCommoditiesHold, AssetLocationFlagSpecializedSalvageHold, AssetLocationFlagSpecializedShipHold,
	AssetLocationFlagSpecializedSmallShipHold, AssetLocationFlagSubSystemBay, AssetLocationFlagSubSystemSlot0, AssetLocationFlagSubSystemSlot1,
	AssetLocationFlagSubSystemSlot2, AssetLocationFlagSubSystemSlot3, AssetLocationFlagSubSystemSlot4, AssetLocationFlagSubSystemSlot5,
	AssetLocationFlagSubSystemSlot6, AssetLocationFlagSubSystemSlot7, AssetLocationFlagUnlocked, AssetLocationFlagWardrobe,
}
View Source
var AllRefTypes = []RefType{}/* 121 elements not displayed */
View Source
var AllSort = []Sort{
	SortAsc,
	SortDesc,
}

Functions

This section is empty.

Types

type Alliance

type Alliance struct {
	ID                    uint      `db:"id" json:"id"`
	Name                  string    `db:"name" json:"name"`
	Ticker                string    `db:"ticker" json:"ticker"`
	DateFounded           time.Time `db:"date_founded" json:"date_founded"`
	CreatorID             uint      `db:"creator_id" json:"creator_id"`
	CreatorCorporationID  uint      `db:"creator_corporation_id" json:"creator_corporation_id"`
	ExecutorCorporationID uint      `db:"executor_corporation_id" json:"executor_corporation_id"`
	FactionID             null.Uint `db:"faction_id,omitempty" json:"faction_id,omitempty"`
	IsClosed              bool      `db:"is_closed" json:"is_closed"`
	CreatedAt             time.Time `db:"created_at" json:"created_at"`
	UpdatedAt             time.Time `db:"updated_at" json:"updated_at"`
}

Alliance is an object representing the database table.

func (Alliance) IsContactInfo

func (Alliance) IsContactInfo()

type AllianceRepository

type AllianceRepository interface {
	Alliance(ctx context.Context, id uint) (*Alliance, error)
	Alliances(ctx context.Context, operators ...*Operator) ([]*Alliance, error)
	CreateAlliance(ctx context.Context, alliance *Alliance) (*Alliance, error)
	UpdateAlliance(ctx context.Context, id uint, alliance *Alliance) (*Alliance, error)
}

type Ancestry

type Ancestry struct {
	ID          uint      `db:"id" json:"id"`
	Name        string    `db:"name" json:"name"`
	BloodlineID uint      `db:"bloodline_id" json:"bloodline_id"`
	CreatedAt   time.Time `db:"created_at" json:"created_at"`
	UpdatedAt   time.Time `db:"updated_at" json:"updated_at"`
}

type AssetLocationFlag

type AssetLocationFlag string
const (
	AssetLocationFlagAssetSafety                         AssetLocationFlag = "AssetSafety"
	AssetLocationFlagAutoFit                             AssetLocationFlag = "AutoFit"
	AssetLocationFlagBoosterBay                          AssetLocationFlag = "BoosterBay"
	AssetLocationFlagCargo                               AssetLocationFlag = "Cargo"
	AssetLocationFlagCorpseBay                           AssetLocationFlag = "CorpseBay"
	AssetLocationFlagDeliveries                          AssetLocationFlag = "Deliveries"
	AssetLocationFlagDroneBay                            AssetLocationFlag = "DroneBay"
	AssetLocationFlagFighterBay                          AssetLocationFlag = "FighterBay"
	AssetLocationFlagFighterTube0                        AssetLocationFlag = "FighterTube0"
	AssetLocationFlagFighterTube1                        AssetLocationFlag = "FighterTube1"
	AssetLocationFlagFighterTube2                        AssetLocationFlag = "FighterTube2"
	AssetLocationFlagFighterTube3                        AssetLocationFlag = "FighterTube3"
	AssetLocationFlagFighterTube4                        AssetLocationFlag = "FighterTube4"
	AssetLocationFlagFleetHangar                         AssetLocationFlag = "FleetHangar"
	AssetLocationFlagFrigateEscapeBay                    AssetLocationFlag = "FrigateEscapeBay"
	AssetLocationFlagHangar                              AssetLocationFlag = "Hangar"
	AssetLocationFlagHangarAll                           AssetLocationFlag = "HangarAll"
	AssetLocationFlagHiSlot0                             AssetLocationFlag = "HiSlot0"
	AssetLocationFlagHiSlot1                             AssetLocationFlag = "HiSlot1"
	AssetLocationFlagHiSlot2                             AssetLocationFlag = "HiSlot2"
	AssetLocationFlagHiSlot3                             AssetLocationFlag = "HiSlot3"
	AssetLocationFlagHiSlot4                             AssetLocationFlag = "HiSlot4"
	AssetLocationFlagHiSlot5                             AssetLocationFlag = "HiSlot5"
	AssetLocationFlagHiSlot6                             AssetLocationFlag = "HiSlot6"
	AssetLocationFlagHiSlot7                             AssetLocationFlag = "HiSlot7"
	AssetLocationFlagHiddenModifiers                     AssetLocationFlag = "HiddenModifiers"
	AssetLocationFlagImplant                             AssetLocationFlag = "Implant"
	AssetLocationFlagLoSlot0                             AssetLocationFlag = "LoSlot0"
	AssetLocationFlagLoSlot1                             AssetLocationFlag = "LoSlot1"
	AssetLocationFlagLoSlot2                             AssetLocationFlag = "LoSlot2"
	AssetLocationFlagLoSlot3                             AssetLocationFlag = "LoSlot3"
	AssetLocationFlagLoSlot4                             AssetLocationFlag = "LoSlot4"
	AssetLocationFlagLoSlot5                             AssetLocationFlag = "LoSlot5"
	AssetLocationFlagLoSlot6                             AssetLocationFlag = "LoSlot6"
	AssetLocationFlagLoSlot7                             AssetLocationFlag = "LoSlot7"
	AssetLocationFlagLocked                              AssetLocationFlag = "Locked"
	AssetLocationFlagMedSlot0                            AssetLocationFlag = "MedSlot0"
	AssetLocationFlagMedSlot1                            AssetLocationFlag = "MedSlot1"
	AssetLocationFlagMedSlot2                            AssetLocationFlag = "MedSlot2"
	AssetLocationFlagMedSlot3                            AssetLocationFlag = "MedSlot3"
	AssetLocationFlagMedSlot4                            AssetLocationFlag = "MedSlot4"
	AssetLocationFlagMedSlot5                            AssetLocationFlag = "MedSlot5"
	AssetLocationFlagMedSlot6                            AssetLocationFlag = "MedSlot6"
	AssetLocationFlagMedSlot7                            AssetLocationFlag = "MedSlot7"
	AssetLocationFlagQuafeBay                            AssetLocationFlag = "QuafeBay"
	AssetLocationFlagRigSlot0                            AssetLocationFlag = "RigSlot0"
	AssetLocationFlagRigSlot1                            AssetLocationFlag = "RigSlot1"
	AssetLocationFlagRigSlot2                            AssetLocationFlag = "RigSlot2"
	AssetLocationFlagRigSlot3                            AssetLocationFlag = "RigSlot3"
	AssetLocationFlagRigSlot4                            AssetLocationFlag = "RigSlot4"
	AssetLocationFlagRigSlot5                            AssetLocationFlag = "RigSlot5"
	AssetLocationFlagRigSlot6                            AssetLocationFlag = "RigSlot6"
	AssetLocationFlagRigSlot7                            AssetLocationFlag = "RigSlot7"
	AssetLocationFlagShipHangar                          AssetLocationFlag = "ShipHangar"
	AssetLocationFlagSkill                               AssetLocationFlag = "Skill"
	AssetLocationFlagSpecializedAmmoHold                 AssetLocationFlag = "SpecializedAmmoHold"
	AssetLocationFlagSpecializedCommandCenterHold        AssetLocationFlag = "SpecializedCommandCenterHold"
	AssetLocationFlagSpecializedFuelBay                  AssetLocationFlag = "SpecializedFuelBay"
	AssetLocationFlagSpecializedGasHold                  AssetLocationFlag = "SpecializedGasHold"
	AssetLocationFlagSpecializedIndustrialShipHold       AssetLocationFlag = "SpecializedIndustrialShipHold"
	AssetLocationFlagSpecializedLargeShipHold            AssetLocationFlag = "SpecializedLargeShipHold"
	AssetLocationFlagSpecializedMaterialBay              AssetLocationFlag = "SpecializedMaterialBay"
	AssetLocationFlagSpecializedMediumShipHold           AssetLocationFlag = "SpecializedMediumShipHold"
	AssetLocationFlagSpecializedMineralHold              AssetLocationFlag = "SpecializedMineralHold"
	AssetLocationFlagSpecializedOreHold                  AssetLocationFlag = "SpecializedOreHold"
	AssetLocationFlagSpecializedPlanetaryCommoditiesHold AssetLocationFlag = "SpecializedPlanetaryCommoditiesHold"
	AssetLocationFlagSpecializedSalvageHold              AssetLocationFlag = "SpecializedSalvageHold"
	AssetLocationFlagSpecializedShipHold                 AssetLocationFlag = "SpecializedShipHold"
	AssetLocationFlagSpecializedSmallShipHold            AssetLocationFlag = "SpecializedSmallShipHold"
	AssetLocationFlagSubSystemBay                        AssetLocationFlag = "SubSystemBay"
	AssetLocationFlagSubSystemSlot0                      AssetLocationFlag = "SubSystemSlot0"
	AssetLocationFlagSubSystemSlot1                      AssetLocationFlag = "SubSystemSlot1"
	AssetLocationFlagSubSystemSlot2                      AssetLocationFlag = "SubSystemSlot2"
	AssetLocationFlagSubSystemSlot3                      AssetLocationFlag = "SubSystemSlot3"
	AssetLocationFlagSubSystemSlot4                      AssetLocationFlag = "SubSystemSlot4"
	AssetLocationFlagSubSystemSlot5                      AssetLocationFlag = "SubSystemSlot5"
	AssetLocationFlagSubSystemSlot6                      AssetLocationFlag = "SubSystemSlot6"
	AssetLocationFlagSubSystemSlot7                      AssetLocationFlag = "SubSystemSlot7"
	AssetLocationFlagUnlocked                            AssetLocationFlag = "Unlocked"
	AssetLocationFlagWardrobe                            AssetLocationFlag = "Wardrobe"
)

func (AssetLocationFlag) String

func (s AssetLocationFlag) String() string

func (AssetLocationFlag) Valid

func (c AssetLocationFlag) Valid() bool

type AssetLocationType

type AssetLocationType string
const (
	AssetLocationTypeStation     AssetLocationType = "station"
	AssetLocationTypeSolarSystem AssetLocationType = "solar_system"
	AssetLocationTypeItem        AssetLocationType = "item"
	AssetLocationTypeOther       AssetLocationType = "other"
)

func (AssetLocationType) String

func (s AssetLocationType) String() string

func (AssetLocationType) Valid

func (c AssetLocationType) Valid() bool

type AsteroidBelt

type AsteroidBelt struct {
	ID        uint      `db:"id" json:"id"`
	Name      string    `db:"name" json:"name"`
	SystemID  uint      `db:"system_id" json:"system_id"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type AuthAttempt

type AuthAttempt struct {
	Status AuthAttemptStatus
	State  string
	Token  null.String
	User   *Member
}

type AuthAttemptStatus

type AuthAttemptStatus string
const (
	CreateAuthStatus    AuthAttemptStatus = "created"
	PendingAuthStatus   AuthAttemptStatus = "pending"
	InvalidAuthStatus   AuthAttemptStatus = "invalid"
	ExpiredAuthStatus   AuthAttemptStatus = "expired"
	CompletedAuthStatus AuthAttemptStatus = "completed"
)

func (AuthAttemptStatus) String

func (a AuthAttemptStatus) String() string

type AuthRepository

type AuthRepository interface {
	AuthAttempt(ctx context.Context, hash string) (*AuthAttempt, error)
	CreateAuthAttempt(ctx context.Context, attempt *AuthAttempt) (*AuthAttempt, error)
	UpdateAuthAttempt(ctx context.Context, hash string, attempt *AuthAttempt) (*AuthAttempt, error)

	JSONWebKeySet(ctx context.Context) ([]byte, error)
	SaveJSONWebKeySet(ctx context.Context, jwks []byte) error
}

type Bloodline

type Bloodline struct {
	ID            uint      `db:"id" json:"bloodline_id"`
	Name          string    `db:"name" json:"name"`
	RaceID        uint      `db:"race_id" json:"race_id"`
	CorporationID uint      `db:"corporation_id" json:"corporation_id"`
	ShipTypeID    uint      `db:"ship_type_id" json:"ship_type_id"`
	Charisma      uint      `db:"charisma" json:"charisma"`
	Intelligence  uint      `db:"intelligence" json:"intelligence"`
	Memory        uint      `db:"memory" json:"memory"`
	Perception    uint      `db:"perception" json:"perception"`
	Willpower     uint      `db:"willpower" json:"willpower"`
	CreatedAt     time.Time `db:"created_at" json:"created_at"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at"`
}

type Category

type Category struct {
	ID        uint      `db:"id" json:"id"`
	Name      string    `db:"name" json:"name"`
	Published bool      `db:"published" json:"published"`
	Groups    []uint    `db:"-" json:"groups,omitempty"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type Character

type Character struct {
	ID             uint         `db:"id" json:"id"`
	Name           string       `db:"name" json:"name"`
	CorporationID  uint         `db:"corporation_id" json:"corporation_id"`
	AllianceID     null.Uint    `db:"alliance_id,omitempty" json:"alliance_id,omitempty"`
	FactionID      null.Uint    `db:"faction_id,omitempty" json:"faction_id,omitempty"`
	SecurityStatus null.Float64 `db:"security_status,omitempty" json:"security_status,omitempty"`
	Gender         string       `db:"gender" json:"gender"`
	Birthday       time.Time    `db:"birthday" json:"birthday"`
	Title          null.String  `db:"title,omitempty" json:"title,omitempty"`
	AncestryID     null.Uint    `db:"ancestry_id,omitempty" json:"ancestry_id,omitempty"`
	BloodlineID    uint         `db:"bloodline_id" json:"bloodline_id"`
	RaceID         uint         `db:"race_id" json:"race_id"`
	CreatedAt      time.Time    `db:"created_at" json:"created_at"`
	UpdatedAt      time.Time    `db:"updated_at" json:"updated_at"`
}

func (Character) IsContactInfo

func (Character) IsContactInfo()

type CharacterCorporationHistory

type CharacterCorporationHistory struct {
	CharacterID   uint      `db:"character_id" json:"character_id"`
	RecordID      uint64    `db:"record_id" json:"record_id"`
	CorporationID uint      `db:"corporation_id" json:"corporation_id"`
	IsDeleted     bool      `db:"is_deleted" json:"is_deleted"`
	StartDate     time.Time `db:"start_date" json:"start_date"`
	CreatedAt     time.Time `db:"created_at" json:"created_at"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at"`
}

type CharacterRepository

type CharacterRepository interface {
	// contains filtered or unexported methods
}

type ClientType

type ClientType string
const (
	ClientTypeCharacter   ClientType = "character"
	ClientTypeCorporation ClientType = "corporation"
	ClientTypeUnknown     ClientType = "unknown"
)

func (ClientType) String

func (i ClientType) String() string

func (ClientType) Valid

func (i ClientType) Valid() bool

type CloneRepository

type CloneRepository interface {
	MemberClones(ctx context.Context, id uint) (*MemberClones, error)
	CreateMemberClones(ctx context.Context, clones *MemberClones) (*MemberClones, error)
	UpdateMemberClones(ctx context.Context, clones *MemberClones) (*MemberClones, error)
	DeleteMemberClones(ctx context.Context, id uint) (bool, error)

	MemberImplants(ctx context.Context, id uint) ([]*MemberImplant, error)
	CreateMemberImplants(ctx context.Context, id uint, implants []*MemberImplant) ([]*MemberImplant, error)
	DeleteMemberImplants(ctx context.Context, id uint) (bool, error)
}

type Constellation

type Constellation struct {
	ID        uint      `db:"id" json:"id"`
	Name      string    `db:"name" json:"name"`
	RegionID  uint      `db:"region_id" json:"region_id"`
	SystemIDs []uint    `db:"-" json:"systems,omitempty"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type ContextIDType

type ContextIDType string
const (
	ContextIDTypeStructureID         ContextIDType = "structure_id"
	ContextIDTypeStationID           ContextIDType = "station_id"
	ContextIDTypeMarketTransactionID ContextIDType = "market_transaction_id"
	ContextIDTypeCharacterID         ContextIDType = "character_id"
	ContextIDTypeCorporationID       ContextIDType = "corporation_id"
	ContextIDTypeAllianceID          ContextIDType = "alliance_id"
	ContextIDTypeEveSystem           ContextIDType = "eve_system"
	ContextIDTypeIndustryJobID       ContextIDType = "industry_job_id"
	ContextIDTypeContractID          ContextIDType = "contract_id"
	ContextIDTypePlanetID            ContextIDType = "planet_id"
	ContextIDTypeSystemID            ContextIDType = "system_id"
	ContextIDTypeTypeID              ContextIDType = "type_id"
)

func (ContextIDType) String

func (i ContextIDType) String() string

func (ContextIDType) Valid

func (i ContextIDType) Valid() bool

type ContractAvailability

type ContractAvailability string
const (
	ContractAvailabilityPublic      ContractAvailability = "public"
	ContractAvailabilityPersonal    ContractAvailability = "personal"
	ContractAvailabilityCorporation ContractAvailability = "corporation"
	ContractAvailabilityAlliance    ContractAvailability = "alliance"
)

func (ContractAvailability) String

func (r ContractAvailability) String() string

func (ContractAvailability) Valid

func (c ContractAvailability) Valid() bool

type ContractStatus

type ContractStatus string
const (
	ContractStatusOutstanding        ContractStatus = "outstanding"
	ContractStatusInProgress         ContractStatus = "in_progress"
	ContractStatusFinishedIssuer     ContractStatus = "finished_issuer"
	ContractStatusFinishedContractor ContractStatus = "finished_contractor"
	ContractStatusFinished           ContractStatus = "finished"
	ContractStatusConcelled          ContractStatus = "cancelled"
	ContractStatusRejected           ContractStatus = "rejected"
	ContractStatusFailed             ContractStatus = "failed"
	ContractStatusDeleted            ContractStatus = "deleted"
	ContractStatusRevered            ContractStatus = "reversed"
)

func (ContractStatus) String

func (r ContractStatus) String() string

func (ContractStatus) Valid

func (c ContractStatus) Valid() bool

type ContractType

type ContractType string
const (
	ContractTypeUnknown      ContractType = "unknown"
	ContractTypeItemExchange ContractType = "item_exchange"
	ContractTypeAuction      ContractType = "auction"
	ContractTypeCourier      ContractType = "courier"
	ContractTypeLoan         ContractType = "loan"
)

func (ContractType) String

func (r ContractType) String() string

func (ContractType) Valid

func (c ContractType) Valid() bool

type Corporation

type Corporation struct {
	ID            uint        `db:"id,omitempty" json:"id"`
	AllianceID    null.Uint   `db:"alliance_id,omitempty" json:"alliance_id,omitempty"`
	CeoID         uint        `db:"ceo_id" json:"ceo_id"`
	CreatorID     uint        `db:"creator_id" json:"creator_id"`
	DateFounded   null.Time   `db:"date_founded,omitempty" json:"date_founded,omitempty"`
	FactionID     null.Uint   `db:"faction_id,omitempty" json:"faction_id,omitempty"`
	HomeStationID null.Uint   `db:"home_station_id,omitempty" json:"home_station_id,omitempty"`
	MemberCount   uint        `db:"member_count" json:"member_count"`
	Name          string      `db:"name" json:"name"`
	Shares        uint64      `db:"shares,omitempty" json:"shares,omitempty"`
	TaxRate       float32     `db:"tax_rate" json:"tax_rate"`
	Ticker        string      `db:"ticker" json:"ticker"`
	URL           null.String `db:"url,omitempty" json:"url,omitempty"`
	WarEligible   bool        `db:"war_eligible" json:"war_eligible"`
	CreatedAt     time.Time   `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt     time.Time   `db:"updated_at" json:"updated_at" deep:"-"`
}

func (Corporation) IsContactInfo

func (Corporation) IsContactInfo()

type CorporationAllianceHistory

type CorporationAllianceHistory struct {
	CorporationID uint      `db:"corporation_id" json:"id"`
	RecordID      uint      `db:"record_id" json:"record_id"`
	AllianceID    null.Uint `db:"alliance_id" json:"alliance_id"`
	IsDeleteed    null.Bool `db:"is_deleted" json:"is_deleted"`
	StartDate     time.Time `db:"start_date" json:"start_date"`
	CreatedAt     time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at" deep:"-"`
}

type CorporationRepository

type CorporationRepository interface {
	Corporation(ctx context.Context, id uint) (*Corporation, error)
	Corporations(ctx context.Context, operators ...*Operator) ([]*Corporation, error)
	CreateCorporation(ctx context.Context, corporation *Corporation) (*Corporation, error)
	UpdateCorporation(ctx context.Context, id uint, corporation *Corporation) (*Corporation, error)
	CorporationAllianceHistory(ctx context.Context, operators ...*Operator) ([]*CorporationAllianceHistory, error)
	CreateCorporationAllianceHistory(ctx context.Context, id uint, history []*CorporationAllianceHistory) ([]*CorporationAllianceHistory, error)
}

type Environment

type Environment string
const (
	ProductionEnvironment Environment = "production"
	StagingEnvironment    Environment = "staging"
	LocalEnvironment      Environment = "local"
)

func (Environment) String

func (e Environment) String() string

func (Environment) Validate

func (e Environment) Validate() bool

type Etag

type Etag struct {
	EtagID      string    `db:"etag_id" json:"etag_id"`
	Etag        string    `db:"etag" json:"etag"`
	CachedUntil time.Time `db:"cached_until" json:"cached_until"`
	CreatedAt   time.Time `db:"created_at" json:"created_at"`
	UpdatedAt   time.Time `db:"updated_at" json:"updated_at"`
}

type EtagRepository

type EtagRepository interface {
	Etag(ctx context.Context, etagID string) (*Etag, error)
	Etags(ctx context.Context, operators ...*Operator) ([]*Etag, error)
	InsertEtag(ctx context.Context, etag *Etag) (*Etag, error)
	UpdateEtag(ctx context.Context, etagID string, etag *Etag) (*Etag, error)
	DeleteEtag(ctx context.Context, etagID string) (bool, error)
}

type Faction

type Faction struct {
	ID                   uint      `db:"id" json:"faction_id"`
	Name                 string    `db:"name" json:"name"`
	IsUnique             bool      `db:"is_unique" json:"is_unique"`
	SizeFactor           float64   `db:"size_factor" json:"size_factor"`
	StationCount         uint      `db:"station_count" json:"station_count"`
	StationSystemCount   uint      `db:"station_system_count" json:"station_system_count"`
	CorporationID        null.Uint `db:"corporation_id,omitempty" json:"corporation_id,omitempty"`
	MilitiaCorporationID null.Uint `db:"militia_corporation_id,omitempty" json:"militia_corporation_id,omitempty"`
	SolarSystemID        null.Uint `db:"solar_system_id,omitempty" json:"solar_system_id,omitempty"`
	CreatedAt            time.Time `db:"created_at" json:"created_at"`
	UpdatedAt            time.Time `db:"updated_at" json:"updated_at"`
}

func (Faction) IsContactInfo

func (Faction) IsContactInfo()

type FittingItemFlag

type FittingItemFlag string
const (
	FittingItemFlagCargo          FittingItemFlag = "Cargo"
	FittingItemFlagDroneBay       FittingItemFlag = "DroneBay"
	FittingItemFlagFighterBay     FittingItemFlag = "FighterBay"
	FittingItemFlagHiSlot0        FittingItemFlag = "HiSlot0"
	FittingItemFlagHiSlot1        FittingItemFlag = "HiSlot1"
	FittingItemFlagHiSlot2        FittingItemFlag = "HiSlot2"
	FittingItemFlagHiSlot3        FittingItemFlag = "HiSlot3"
	FittingItemFlagHiSlot4        FittingItemFlag = "HiSlot4"
	FittingItemFlagHiSlot5        FittingItemFlag = "HiSlot5"
	FittingItemFlagHiSlot6        FittingItemFlag = "HiSlot6"
	FittingItemFlagHiSlot7        FittingItemFlag = "HiSlot7"
	FittingItemFlagInvalid        FittingItemFlag = "Invalid"
	FittingItemFlagLoSlot0        FittingItemFlag = "LoSlot0"
	FittingItemFlagLoSlot1        FittingItemFlag = "LoSlot1"
	FittingItemFlagLoSlot2        FittingItemFlag = "LoSlot2"
	FittingItemFlagLoSlot3        FittingItemFlag = "LoSlot3"
	FittingItemFlagLoSlot4        FittingItemFlag = "LoSlot4"
	FittingItemFlagLoSlot5        FittingItemFlag = "LoSlot5"
	FittingItemFlagLoSlot6        FittingItemFlag = "LoSlot6"
	FittingItemFlagLoSlot7        FittingItemFlag = "LoSlot7"
	FittingItemFlagMedSlot0       FittingItemFlag = "MedSlot0"
	FittingItemFlagMedSlot1       FittingItemFlag = "MedSlot1"
	FittingItemFlagMedSlot2       FittingItemFlag = "MedSlot2"
	FittingItemFlagMedSlot3       FittingItemFlag = "MedSlot3"
	FittingItemFlagMedSlot4       FittingItemFlag = "MedSlot4"
	FittingItemFlagMedSlot5       FittingItemFlag = "MedSlot5"
	FittingItemFlagMedSlot6       FittingItemFlag = "MedSlot6"
	FittingItemFlagMedSlot7       FittingItemFlag = "MedSlot7"
	FittingItemFlagRigSlot0       FittingItemFlag = "RigSlot0"
	FittingItemFlagRigSlot1       FittingItemFlag = "RigSlot1"
	FittingItemFlagRigSlot2       FittingItemFlag = "RigSlot2"
	FittingItemFlagServiceSlot0   FittingItemFlag = "ServiceSlot0"
	FittingItemFlagServiceSlot1   FittingItemFlag = "ServiceSlot1"
	FittingItemFlagServiceSlot2   FittingItemFlag = "ServiceSlot2"
	FittingItemFlagServiceSlot3   FittingItemFlag = "ServiceSlot3"
	FittingItemFlagServiceSlot4   FittingItemFlag = "ServiceSlot4"
	FittingItemFlagServiceSlot5   FittingItemFlag = "ServiceSlot5"
	FittingItemFlagServiceSlot6   FittingItemFlag = "ServiceSlot6"
	FittingItemFlagServiceSlot7   FittingItemFlag = "ServiceSlot7"
	FittingItemFlagSubSystemSlot0 FittingItemFlag = "SubSystemSlot0"
	FittingItemFlagSubSystemSlot1 FittingItemFlag = "SubSystemSlot1"
	FittingItemFlagSubSystemSlot2 FittingItemFlag = "SubSystemSlot2"
	FittingItemFlagSubSystemSlot3 FittingItemFlag = "SubSystemSlot3"
)

func (FittingItemFlag) String

func (i FittingItemFlag) String() string

func (FittingItemFlag) Valid

func (i FittingItemFlag) Valid() bool

type Group

type Group struct {
	ID         uint      `db:"id" json:"id"`
	Name       string    `db:"name" json:"name"`
	Published  bool      `db:"published" json:"published"`
	CategoryID uint      `db:"category_id" json:"category_id"`
	Types      []uint    `db:"-" json:"types,omitempty"`
	CreatedAt  time.Time `db:"created_at" json:"created_at"`
	UpdatedAt  time.Time `db:"updated_at" json:"updated_at"`
}

type LocationType

type LocationType string
const (
	LocationTypeStation   LocationType = "station"
	LocationTypeStructure LocationType = "structure"
	LocationTypeUnknown   LocationType = "unknown"
)

func (LocationType) String

func (i LocationType) String() string

func (LocationType) Valid

func (i LocationType) Valid() bool

type MailHeader

type MailHeader struct {
	MailID     uint             `db:"id" json:"mail_id"`
	Sender     null.Uint        `db:"sender_id" json:"from,omitempty"`
	SenderType null.String      `db:"sender_type" json:"from_type,omitempty"`
	Recipients []*MailRecipient `db:"-" json:"recipients"`
	Subject    null.String      `db:"subject" json:"subject"`
	Body       null.String      `db:"body" json:"body"`
	Timestamp  time.Time        `db:"sent" json:"timestamp"`
	CreatedAt  time.Time        `db:"created_at" json:"created_at"`
}

type MailLabel

type MailLabel struct {
	LabelID     null.Int    `db:"label_id,omitempty" json:"label_id,omitempty"`
	Name        null.String `db:"name,omitempty" json:"name,omitempty"`
	UnreadCount null.Int    `db:"unread_count,omitempty" json:"unread_count,omitempty"`
}

type MailLabels

type MailLabels []MailLabel

func (*MailLabels) Scan

func (l *MailLabels) Scan(value interface{}) error

func (MailLabels) Value

func (l MailLabels) Value() (driver.Value, error)

type MailRecipient

type MailRecipient struct {
	MailID        uint          `db:"mail_id" json:"mail_id"`
	RecipientID   uint          `db:"recipient_id" json:"recipient_id"`
	RecipientType RecipientType `db:"recipient_type" json:"recipient_type"`
	CreatedAt     time.Time     `db:"created_at" json:"created_at"`
}

type MailRepository

type MailRepository interface {
	// contains filtered or unexported methods
}

type MailingList

type MailingList struct {
	MailingListID uint      `db:"mailing_list_id" json:"mailing_list_id"`
	Name          string    `db:"name" json:"name"`
	CreatedAt     time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at" deep:"-"`
}

type Member

type Member struct {
	ID                uint         `db:"id" json:"id"`
	MainID            null.Uint    `db:"main_id,omitempty" json:"main_id"`
	AccessToken       null.String  `db:"access_token" json:"access_token"`
	RefreshToken      null.String  `db:"refresh_token" json:"refresh_token"`
	Expires           null.Time    `db:"expires," json:"expires"`
	OwnerHash         null.String  `db:"owner_hash" json:"owner_hash"`
	Scopes            MemberScopes `db:"scopes,omitempty" json:"scopes,omitempty"`
	IsNew             bool         `db:"-" json:"-"`
	Disabled          bool         `db:"disabled" json:"disabled"`
	DisabledReason    null.String  `db:"disabled_reason,omitempty" json:"disabled_reason"`
	DisabledTimestamp null.Time    `db:"disabled_timestamp,omitempty" json:"disabled_timestamp"`
	LastLogin         time.Time    `db:"last_login" json:"last_login"`
	CreatedAt         time.Time    `db:"created_at" json:"created_at"`
	UpdatedAt         time.Time    `db:"updated_at" json:"updated_at"`
}

type MemberAsset

type MemberAsset struct {
	MemberID        uint              `db:"member_id" json:"member_id" deep:"-"`
	ItemID          uint64            `db:"item_id" json:"item_id" deep:"-"`
	TypeID          uint              `db:"type_id" json:"type_id" deep:"-"`
	LocationID      uint64            `db:"location_id" json:"location_id"`
	LocationFlag    AssetLocationFlag `db:"location_flag" json:"location_flag"`
	LocationType    AssetLocationType `db:"location_type" json:"location_type"`
	Quantity        int               `db:"quantity" json:"quantity"`
	IsBlueprintCopy bool              `db:"is_blueprint_copy" json:"is_blueprint_copy"`
	IsSingleton     bool              `db:"is_singleton" json:"is_singleton"`
	CreatedAt       time.Time         `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt       time.Time         `db:"updated_at" json:"updated_at" deep:"-"`
}

type MemberAssetsRepository

type MemberAssetsRepository interface {
	MemberAsset(ctx context.Context, memberID uint, itemID uint64) (*MemberAsset, error)
	MemberAssets(ctx context.Context, memberID uint, operators ...*Operator) ([]*MemberAsset, error)
	CreateMemberAssets(ctx context.Context, memberID uint, assets []*MemberAsset) ([]*MemberAsset, error)
	UpdateMemberAssets(ctx context.Context, memberID uint, itemID uint64, asset *MemberAsset) (*MemberAsset, error)
	DeleteMemberAssets(ctx context.Context, memberID uint, assets []*MemberAsset) (bool, error)
}

type MemberAttributes

type MemberAttributes struct {
	MemberID                 uint      `db:"member_id" json:"member_id"`
	Charisma                 uint      `db:"charisma" json:"charisma"`
	Intelligence             uint      `db:"intelligence" json:"intelligence"`
	Memory                   uint      `db:"memory" json:"memory"`
	Perception               uint      `db:"perception" json:"perception"`
	Willpower                uint      `db:"willpower" json:"willpower"`
	BonusRemaps              null.Int  `db:"bonus_remaps,omitempty" json:"bonus_remaps,omitempty"`
	LastRemapDate            null.Time `db:"last_remap_date,omitempty" json:"last_remap_date,omitempty"`
	AccruedRemapCooldownDate null.Time `db:"accrued_remap_cooldown_date,omitempty" json:"accrued_remap_cooldown_date,omitempty"`
	CreatedAt                time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt                time.Time `db:"updated_at" json:"updated_at" deep:"-"`
}

type MemberClones

type MemberClones struct {
	MemberID              uint                `db:"member_id" json:"member_id"`
	HomeLocation          *MemberHomeLocation `json:"home_location"`
	JumpClones            []*MemberJumpClone  `json:"jump_clones"`
	LastCloneJumpDate     null.Time           `db:"last_clone_jump_date" json:"last_clone_jump_date"`
	LastStationChangeDate null.Time           `db:"last_station_change_date" json:"last_station_change_date"`
	CreatedAt             time.Time           `db:"created_at" json:"created_at"`
	UpdatedAt             time.Time           `db:"updated_at" json:"updated_at"`
}

type MemberContact

type MemberContact struct {
	MemberID    uint      `db:"member_id" json:"member_id" deep:"-"`
	ContactID   uint      `db:"contact_id" json:"contact_id"`
	SourcePage  uint      `db:"source_page" json:"-"`
	ContactType string    `db:"contact_type" json:"contact_type"`
	IsBlocked   bool      `db:"is_blocked" json:"is_blocked"`
	IsWatched   bool      `db:"is_watched" json:"is_watched"`
	LabelIDs    SliceUint `db:"label_ids" json:"label_ids"`
	Standing    float64   `db:"standing" json:"standing"`
	CreatedAt   time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt   time.Time `db:"updated_at" json:"updated_at" deep:"-"`
}

type MemberContactInfoLoader

type MemberContactInfoLoader struct {
	ContactID   uint
	ContactType string
}

type MemberContactLabel

type MemberContactLabel struct {
	MemberID  uint      `db:"member_id" json:"member_id" deep:"-"`
	LabelID   uint64    `db:"label_id" json:"label_id"`
	LabelName string    `db:"label_name" json:"label_name"`
	CreatedAt time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at" deep:"-"`
}

type MemberContactRepository

type MemberContactRepository interface {
	// contains filtered or unexported methods
}

type MemberContract

type MemberContract struct {
	MemberID            uint                 `db:"member_id" json:"member_id" deep:"-"`
	ContractID          uint                 `db:"contract_id" json:"contract_id"`
	SourcePage          uint                 `db:"source_page" json:"-"`
	AcceptorID          null.Uint            `db:"acceptor_id" json:"acceptor_id"`
	AcceptorType        null.String          `db:"acceptor_type" json:"acceptor_type"`
	AssigneeID          null.Uint            `db:"assignee_id" json:"assignee_id"`
	AssigneeType        null.String          `db:"assignee_type" json:"assignee_type"`
	Availability        ContractAvailability `db:"availability" json:"availability"`
	Buyout              null.Float64         `db:"buyout,omitempty" json:"buyout,omitempty"`
	Collateral          null.Float64         `db:"collateral,omitempty" json:"collateral,omitempty"`
	DateAccepted        null.Time            `db:"date_accepted,omitempty" json:"date_accepted,omitempty"`
	DateCompleted       null.Time            `db:"date_completed,omitempty" json:"date_completed,omitempty"`
	DateExpired         time.Time            `db:"date_expired" json:"date_expired"`
	DateIssued          time.Time            `db:"date_issued" json:"date_issued"`
	DaysToComplete      null.Uint            `db:"days_to_complete,omitempty" json:"days_to_complete,omitempty"`
	EndLocationID       null.Uint64          `db:"end_location_id,omitempty" json:"end_location_id,omitempty"`
	EndLocationType     null.String          `db:"end_location_type" json:"end_location_type"`
	ForCorporation      bool                 `db:"for_corporation" json:"for_corporation"`
	IssuerCorporationID uint                 `db:"issuer_corporation_id" json:"issuer_corporation_id"`
	IssuerID            uint64               `db:"issuer_id" json:"issuer_id"`
	Price               null.Float64         `db:"price,omitempty" json:"price,omitempty"`
	Reward              null.Float64         `db:"reward,omitempty" json:"reward,omitempty"`
	StartLocationID     null.Uint64          `db:"start_location_id,omitempty" json:"start_location_id,omitempty"`
	StartLocationType   null.String          `db:"start_location_type" json:"start_location_type"`
	Status              ContractStatus       `db:"status" json:"status"`
	Title               null.String          `db:"title,omitempty" json:"title,omitempty"`
	Type                ContractType         `db:"type" json:"type"`
	Volume              null.Float64         `db:"volume,omitempty" json:"volume,omitempty"`
	CreatedAt           time.Time            `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt           time.Time            `db:"updated_at" json:"updated_at" deep:"-"`
}

type MemberContractBid

type MemberContractBid struct {
	MemberID   uint `db:"member_id" json:"member_id"`
	ContractID uint `db:"contract_id" json:"contract_id"`

	// Unique ID for the bid
	BidID uint `db:"bid_id" json:"bid_id"`

	// Character ID of the bidder
	BidderID uint `db:"bidder" json:"bidder"`

	// The amount bid, in ISK
	Amount float64 `db:"amount" json:"amount"`

	// Datetime when the bid was placed
	BidDate time.Time `db:"bid_date" json:"bid_date"`

	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type MemberContractItem

type MemberContractItem struct {
	MemberID   uint `db:"member_id" json:"member_id"`
	ContractID uint `db:"contract_id" json:"contract_id"`

	// UniqueID for the Item
	RecordID uint `db:"record_id" json:"record_id"`

	// Type ID for item
	TypeID uint `db:"type_id" json:"type_id"`

	// Number of items in the stack
	Quantity uint `db:"quantity" json:"quantity"`

	// -1 indicates that the item is a singleton (non-stackable).
	// If the item happens to be a Blueprint, -1 is an Original and -2 is a Blueprint Copy
	RawQuantity int `db:"raw_quantity" json:"raw_quantity"`

	// true if the contract issuer has submitted this item with the contract, false if the isser is asking for this item in the contract
	IsIncluded  bool `db:"is_included" json:"is_included"`
	IsSingleton bool `db:"is_singleton" json:"is_singleton"`

	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type MemberContractRepository

type MemberContractRepository interface {
	// contains filtered or unexported methods
}

type MemberFitting

type MemberFitting struct {
	MemberID    uint                 `db:"member_id" json:"-"`
	FittingID   uint                 `db:"fitting_id" json:"fitting_id"`
	ShipTypeID  uint                 `db:"ship_type_id" json:"ship_type_id"`
	Name        string               `db:"name" json:"name"`
	Description string               `db:"description" json:"description"`
	Items       []*MemberFittingItem `db:"-" json:"items"`
	ItemsHash   string               `db:"item_hash" json:"item_hash"`
	CreatedAt   time.Time            `db:"created_at" json:"-"`
	UpdatedAt   time.Time            `db:"updated_at" json:"-"`
}

type MemberFittingItem

type MemberFittingItem struct {
	FittingID uint            `db:"fitting_id" json:"fitting_id"`
	TypeID    uint            `db:"type_id" json:"type_id"`
	Quantity  uint            `db:"quantity" json:"quantity"`
	Flag      FittingItemFlag `db:"flag" json:"flag"`
	CreatedAt time.Time       `db:"created_at" json:"-"`
	UpdatedAt time.Time       `db:"updated_at" json:"-"`
}

type MemberFittingsRepository

type MemberFittingsRepository interface {
	// contains filtered or unexported methods
}

type MemberHomeLocation

type MemberHomeLocation struct {
	LocationID   uint64    `db:"location_id" json:"location_id"`
	LocationType string    `db:"location_type" json:"location_type"`
	CreatedAt    time.Time `db:"created_at" json:"created_at"`
	UpdatedAt    time.Time `db:"updated_at" json:"updated_at"`
}

type MemberImplant

type MemberImplant struct {
	MemberID  uint      `db:"member_id" json:"member_id"`
	ImplantID uint      `db:"implant_id" json:"implant_id"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
}

type MemberJumpClone

type MemberJumpClone struct {
	JumpCloneID  uint      `db:"jump_clone_id" json:"jump_clone_id"`
	LocationID   uint64    `db:"location_id" json:"location_id"`
	LocationType string    `db:"location_type" json:"location_type"`
	Implants     SliceUint `db:"implants" json:"implants"`
	CreatedAt    time.Time `db:"created_at" json:"created_at"`
	UpdatedAt    time.Time `db:"updated_at" json:"updated_at"`
}

type MemberLocation

type MemberLocation struct {
	MemberID      uint        `db:"member_id" json:"member_id"`
	SolarSystemID uint        `db:"solar_system_id" json:"solar_system_id"`
	StationID     null.Uint   `db:"station_id,omitempty" json:"station_id,omitempty"`
	StructureID   null.Uint64 `db:"structure_id,omitempty" json:"structure_id,omitempty"`
	CreatedAt     time.Time   `db:"created_at" json:"created_at"`
	UpdatedAt     time.Time   `db:"updated_at" json:"updated_at"`
}

type MemberLocationRepository

type MemberLocationRepository interface {
	// contains filtered or unexported methods
}

type MemberLogin

type MemberLogin struct {
	ID        uint      `db:"_id,omitempty" json:"_id"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type MemberMailHeader

type MemberMailHeader struct {
	MemberID  uint      `db:"member_id" json:"member_id"`
	MailID    uint      `db:"mail_id" json:"mail_id"`
	Labels    SliceUint `db:"labels" json:"-"`
	IsRead    bool      `db:"is_read" json:"is_read"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type MemberMailLabels

type MemberMailLabels struct {
	MemberID         uint       `db:"member_id" json:"member_id"`
	Labels           MailLabels `db:"labels,omitempty" json:"labels,omitempty"`
	TotalUnreadCount null.Int   `db:"total_unread_count,omitempty" json:"total_unread_count,omitempty"`
	CreatedAt        time.Time  `db:"created_at" json:"created_at"`
	UpdatedAt        time.Time  `db:"updated_at" json:"updated_at"`
}

type MemberMailingList

type MemberMailingList struct {
	MemberID      uint      `db:"member_id" json:"member_id"`
	MailingListID uint      `db:"mailing_list_id" json:"mailing_list_id"`
	CreatedAt     time.Time `db:"created_at" json:"created_at"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at"`
}

type MemberOnline

type MemberOnline struct {
	MemberID   uint      `db:"member_id" json:"member_id"`
	LastLogin  null.Time `db:"last_login,omitempty" json:"last_login,omitempty"`
	LastLogout null.Time `db:"last_logout,omitempty" json:"last_logout,omitempty"`
	Logins     uint      `db:"logins,omitempty" json:"logins,omitempty"`
	Online     bool      `db:"online,omitempty" json:"online,omitempty"`
	CreatedAt  time.Time `db:"created_at" json:"created_at"`
	UpdatedAt  time.Time `db:"updated_at" json:"updated_at"`
}

type MemberRepository

type MemberRepository interface {
	Member(ctx context.Context, id uint) (*Member, error)
	Members(ctx context.Context, operators ...*Operator) ([]*Member, error)
	CreateMember(ctx context.Context, member *Member) (*Member, error)
	UpdateMember(ctx context.Context, id uint, member *Member) (*Member, error)
	DeleteMember(ctx context.Context, id uint) (bool, error)
}

type MemberScope

type MemberScope struct {
	Scope  Scope     `db:"scope" json:"scope"`
	Expiry null.Time `db:"expiry,omitempty" json:"expiry,omitempty"`
}

type MemberScopes

type MemberScopes []MemberScope

func (*MemberScopes) Scan

func (s *MemberScopes) Scan(value interface{}) error

func (MemberScopes) Value

func (s MemberScopes) Value() (driver.Value, error)

type MemberShip

type MemberShip struct {
	MemberID   uint      `db:"member_id" json:"member_id"`
	ShipItemID uint64    `db:"ship_item_id" json:"ship_item_id"`
	ShipName   string    `db:"ship_name" json:"ship_name"`
	ShipTypeID uint      `db:"ship_type_id" json:"ship_type_id"`
	CreatedAt  time.Time `db:"created_at" json:"created_at"`
	UpdatedAt  time.Time `db:"updated_at" json:"updated_at"`
}

type MemberSkillQueue

type MemberSkillQueue struct {
	MemberID        uint      `db:"member_id" json:"member_id" deep:"-"`
	QueuePosition   uint      `db:"queue_position" json:"queue_position"`
	SkillID         uint      `db:"skill_id" json:"skill_id"`
	FinishedLevel   uint      `db:"finished_level" json:"finished_level"`
	TrainingStartSp null.Int  `db:"training_start_sp,omitempty" json:"training_start_sp,omitempty"`
	LevelStartSp    null.Int  `db:"level_start_sp,omitempty" json:"level_start_sp,omitempty"`
	LevelEndSp      null.Int  `db:"level_end_sp,omitempty" json:"level_end_sp,omitempty"`
	StartDate       null.Time `db:"start_date,omitempty" json:"start_date,omitempty"`
	FinishDate      null.Time `db:"finish_date,omitempty" json:"finish_date,omitempty"`
	CreatedAt       time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt       time.Time `db:"updated_at" json:"updated_at" deep:"-"`
}

type MemberSkillRepository

type MemberSkillRepository interface {
	// contains filtered or unexported methods
}

type MemberSkills

type MemberSkills struct {
	MemberID      uint      `db:"member_id" json:"member_id" deep:"-"`
	TotalSP       uint      `db:"total_sp" json:"total_sp"`
	UnallocatedSP null.Int  `db:"unallocated_sp,omitempty" json:"unallocated_sp,omitempty"`
	CreatedAt     time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at" deep:"-"`

	Skills []*Skill `json:"skills"`
}

type MemberWalletBalance

type MemberWalletBalance struct {
	MemberID  uint      `db:"member_id" json:"member_id"`
	Balance   float64   `db:"balance" json:"balance"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type MemberWalletJournal

type MemberWalletJournal struct {
	MemberID        uint                  `db:"member_id" json:"member_id"`
	JournalID       uint64                `db:"journal_id" json:"id"`
	RefType         RefType               `db:"ref_type" json:"ref_type"`
	ContextID       null.Uint64           `db:"context_id" json:"context_id"`
	ContextType     NullableContextIDType `db:"context_type" json:"context_id_type"`
	Description     string                `db:"description" json:"description"`
	Reason          null.String           `db:"reason" json:"reason"`
	FirstPartyID    null.Uint             `db:"first_party_id" json:"first_party_id"`
	FirstPartyType  null.String           `db:"first_party_type" json:"first_party_type"`
	SecondPartyID   null.Uint             `db:"second_party_id" json:"second_party_id"`
	SecondPartyType null.String           `db:"second_party_type" json:"second_party_type"`
	Amount          null.Float64          `db:"amount" json:"amount"`
	Balance         null.Float64          `db:"balance" json:"balance"`
	Tax             null.Float64          `db:"tax" json:"tax"`
	TaxReceiverID   null.Uint             `db:"tax_receiver_id" json:"tax_receiver_id"`
	Date            time.Time             `db:"date" json:"date"`
	CreatedAt       time.Time             `db:"created_at" json:"created_at"`
	UpdatedAt       time.Time             `db:"updated_at" json:"updated_at"`
}

type MemberWalletRepository

type MemberWalletRepository interface {
	// contains filtered or unexported methods
}

type MemberWalletTransaction

type MemberWalletTransaction struct {
	MemberID           uint         `db:"member_id" json:"member_id"`
	TransactionID      uint64       `db:"transaction_id" json:"transaction_id"`
	JournalReferenceID uint64       `db:"journal_ref_id" json:"journal_ref_id"`
	ClientID           uint         `db:"client_id" json:"client_id"`
	ClientType         ClientType   `db:"client_type" json:"client_type"`
	LocationID         uint64       `db:"location_id" json:"location_id"`
	LocationType       LocationType `db:"location_type" json:"location_type"`
	TypeID             uint         `db:"type_id" json:"type_id"`
	Quantity           uint         `db:"quantity" json:"quantity"`
	UnitPrice          float64      `db:"unit_price" json:"unit_price"`
	IsBuy              bool         `db:"is_buy" json:"is_buy"`
	IsPersonal         bool         `db:"is_personal" json:"is_personal"`
	Date               time.Time    `db:"date" json:"date"`
	CreatedAt          time.Time    `db:"created_at" json:"created_at"`
	UpdatedAt          time.Time    `db:"updated_at" json:"updated_at"`
}

type Migration

type Migration struct {
	ID        uint      `db:"id" json:"id"`
	Name      string    `db:"name" json:"name"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
}

type MigrationRepository

type MigrationRepository interface {
	InitializeMigrationsTable(ctx context.Context, dbname string) error
	Migration(ctx context.Context, migration string) (*Migration, error)
	Migrations(ctx context.Context) ([]*Migration, error)
	CreateMigration(ctx context.Context, migration string) (*Migration, error)
	DeleteMigration(ctx context.Context, migration string) (bool, error)
}

type Moon

type Moon struct {
	ID        uint      `db:"id" json:"moon_id"`
	Name      string    `db:"name" json:"name"`
	SystemID  uint      `db:"system_id" json:"system_id"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type NullableContextIDType

type NullableContextIDType struct {
	Valid         bool
	ContextIDType ContextIDType
}

func (NullableContextIDType) IsZero

func (i NullableContextIDType) IsZero() bool

IsZero returns true for invalid NullableContextIDType's, for future omitempty support

func (NullableContextIDType) MarshalJSON

func (i NullableContextIDType) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*NullableContextIDType) Scan

func (i *NullableContextIDType) Scan(value interface{}) error

func (*NullableContextIDType) UnmarshalJSON

func (i *NullableContextIDType) UnmarshalJSON(data []byte) error

func (NullableContextIDType) Value

func (i NullableContextIDType) Value() (driver.Value, error)

type OpValue

type OpValue interface{}

type Operator

type Operator struct {
	Column    string    `json:"column"`
	Operation operation `json:"operation"`
	Value     OpValue   `json:"value"`
}

func NewAndOperator

func NewAndOperator(value ...*Operator) *Operator

func NewEqualOperator

func NewEqualOperator(column string, value interface{}) *Operator

func NewExistsOperator

func NewExistsOperator(column string, value bool) *Operator

func NewGreaterThanEqualToOperator

func NewGreaterThanEqualToOperator(column string, value interface{}) *Operator

func NewGreaterThanOperator

func NewGreaterThanOperator(column string, value interface{}) *Operator

func NewInOperator

func NewInOperator(column string, values interface{}) *Operator

func NewLessThanEqualToOperator

func NewLessThanEqualToOperator(column string, value interface{}) *Operator

func NewLessThanOperator

func NewLessThanOperator(column string, value interface{}) *Operator

func NewLikeOperator

func NewLikeOperator(column string, value interface{}) *Operator

func NewLimitOperator

func NewLimitOperator(value int64) *Operator

func NewNotEqualOperator

func NewNotEqualOperator(column string, value interface{}) *Operator

func NewNotInOperator

func NewNotInOperator(column string, value interface{}) *Operator

func NewOperators

func NewOperators(operators ...*Operator) []*Operator

func NewOrOperator

func NewOrOperator(value ...*Operator) *Operator

func NewOrderOperator

func NewOrderOperator(column string, sort Sort) *Operator

func NewSkipOperator

func NewSkipOperator(value int64) *Operator

type Planet

type Planet struct {
	ID        uint      `db:"id" json:"planet_id"`
	Name      string    `db:"name" json:"name"`
	SystemID  uint      `db:"system_id" json:"system_id"`
	TypeID    uint      `db:"type_id" json:"type_id"`
	MoonIDs   []uint    `db:"-" json:"moons"`
	BeltIDs   []uint    `db:"-" json:"asteroid_belts"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type Race

type Race struct {
	ID        uint      `db:"id" json:"race_id"`
	Name      string    `db:"name" json:"name"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}

type RecipientType

type RecipientType string
const (
	RecipientTypeAlliance    RecipientType = "alliance"
	RecipientTypeCharacter   RecipientType = "character"
	RecipientTypeCorporation RecipientType = "corporation"
	RecipientTypeMailingList RecipientType = "mailing_list"
)

func (RecipientType) IsValid

func (r RecipientType) IsValid() bool

type RefType

type RefType string
const (
	RefTypeAccelerationGateFee                       RefType = "acceleration_gate_fee"
	RefTypeAdvertisementListingFee                   RefType = "advertisement_listing_fee"
	RefTypeAgentDonation                             RefType = "agent_donation"
	RefTypeAgentLocationServices                     RefType = "agent_location_services"
	RefTypeAgentMiscellaneous                        RefType = "agent_miscellaneous"
	RefTypeAgentMissionCollateralPaid                RefType = "agent_mission_collateral_paid"
	RefTypeAgentMissionCollateralRefunded            RefType = "agent_mission_collateral_refunded"
	RefTypeAgentMissionReward                        RefType = "agent_mission_reward"
	RefTypeAgentMissionRewardCorporationTax          RefType = "agent_mission_reward_corporation_tax"
	RefTypeAgentMissionTimeBonusReward               RefType = "agent_mission_time_bonus_reward"
	RefTypeAgentMissionTimeBonusRewardCorporationTax RefType = "agent_mission_time_bonus_reward_corporation_tax"
	RefTypeAgentSecurityServices                     RefType = "agent_security_services"
	RefTypeAgentServicesRendered                     RefType = "agent_services_rendered"
	RefTypeAgentsPreward                             RefType = "agents_preward"
	RefTypeAllianceMaintainanceFee                   RefType = "alliance_maintainance_fee"
	RefTypeAllianceRegistrationFee                   RefType = "alliance_registration_fee"
	RefTypeAssetSafetyRecoveryTax                    RefType = "asset_safety_recovery_tax"
	RefTypeBounty                                    RefType = "bounty"
	RefTypeBountyPrize                               RefType = "bounty_prize"
	RefTypeBountyPrizeCorporationTax                 RefType = "bounty_prize_corporation_tax"
	RefTypeBountyPrizes                              RefType = "bounty_prizes"
	RefTypeBountyReimbursement                       RefType = "bounty_reimbursement"
	RefTypeBountySurcharge                           RefType = "bounty_surcharge"
	RefTypeBrokersFee                                RefType = "brokers_fee"
	RefTypeCloneActivation                           RefType = "clone_activation"
	RefTypeCloneTransfer                             RefType = "clone_transfer"
	RefTypeContrabandFine                            RefType = "contraband_fine"
	RefTypeContractAuctionBid                        RefType = "contract_auction_bid"
	RefTypeContractAuctionBidCorp                    RefType = "contract_auction_bid_corp"
	RefTypeContractAuctionBidRefund                  RefType = "contract_auction_bid_refund"
	RefTypeContractAuctionSold                       RefType = "contract_auction_sold"
	RefTypeContractBrokersFee                        RefType = "contract_brokers_fee"
	RefTypeContractBrokersFeeCorp                    RefType = "contract_brokers_fee_corp"
	RefTypeContractCollateral                        RefType = "contract_collateral"
	RefTypeContractCollateralDepositedCorp           RefType = "contract_collateral_deposited_corp"
	RefTypeContractCollateralPayout                  RefType = "contract_collateral_payout"
	RefTypeContractCollateralRefund                  RefType = "contract_collateral_refund"
	RefTypeContractDeposit                           RefType = "contract_deposit"
	RefTypeContractDepositCorp                       RefType = "contract_deposit_corp"
	RefTypeContractDepositRefund                     RefType = "contract_deposit_refund"
	RefTypeContractDepositSalesTax                   RefType = "contract_deposit_sales_tax"
	RefTypeContractPrice                             RefType = "contract_price"
	RefTypeContractPricePaymentCorp                  RefType = "contract_price_payment_corp"
	RefTypeContractReversal                          RefType = "contract_reversal"
	RefTypeContractReward                            RefType = "contract_reward"
	RefTypeContractRewardDeposited                   RefType = "contract_reward_deposited"
	RefTypeContractRewardDepositedCorp               RefType = "contract_reward_deposited_corp"
	RefTypeContractRewardRefund                      RefType = "contract_reward_refund"
	RefTypeContractSalesTax                          RefType = "contract_sales_tax"
	RefTypeCopying                                   RefType = "copying"
	RefTypeCorporateRewardPayout                     RefType = "corporate_reward_payout"
	RefTypeCorporateRewardTax                        RefType = "corporate_reward_tax"
	RefTypeCorporationAccountWithdrawal              RefType = "corporation_account_withdrawal"
	RefTypeCorporationBulkPayment                    RefType = "corporation_bulk_payment"
	RefTypeCorporationDividendPayment                RefType = "corporation_dividend_payment"
	RefTypeCorporationLiquidation                    RefType = "corporation_liquidation"
	RefTypeCorporationLogoChangeCost                 RefType = "corporation_logo_change_cost"
	RefTypeCorporationPayment                        RefType = "corporation_payment"
	RefTypeCorporationRegistrationFee                RefType = "corporation_registration_fee"
	RefTypeCourierMissionEscrow                      RefType = "courier_mission_escrow"
	RefTypeCSPA                                      RefType = "cspa"
	RefTypeCSPAOfflineRefund                         RefType = "cspaofflinerefund"
	RefTypeDatacoreFee                               RefType = "datacore_fee"
	RefTypeDnaModificationFee                        RefType = "dna_modification_fee"
	RefTypeDockingFee                                RefType = "docking_fee"
	RefTypeDuelWagerEscrow                           RefType = "duel_wager_escrow"
	RefTypeDuelWagerPayment                          RefType = "duel_wager_payment"
	RefTypeDuelWagerRefund                           RefType = "duel_wager_refund"
	RefTypeEssEscrowTransfer                         RefType = "ess_escrow_transfer"
	RefTypeFactorySlotRentalFee                      RefType = "factory_slot_rental_fee"
	RefTypeGmCashTransfer                            RefType = "gm_cash_transfer"
	RefTypeIndustryJobTax                            RefType = "industry_job_tax"
	RefTypeInfrastructureHubMaintenance              RefType = "infrastructure_hub_maintenance"
	RefTypeInheritance                               RefType = "inheritance"
	RefTypeInsurance                                 RefType = "insurance"
	RefTypeItemTraderPayment                         RefType = "item_trader_payment"
	RefTypeJumpCloneActivationFee                    RefType = "jump_clone_activation_fee"
	RefTypeJumpCloneInstallationFee                  RefType = "jump_clone_installation_fee"
	RefTypeKillRightFee                              RefType = "kill_right_fee"
	RefTypeLpStore                                   RefType = "lp_store"
	RefTypeManufacturing                             RefType = "manufacturing"
	RefTypeMarketEscrow                              RefType = "market_escrow"
	RefTypeMarketFinePaid                            RefType = "market_fine_paid"
	RefTypeMarketTransaction                         RefType = "market_transaction"
	RefTypeMedalCreation                             RefType = "medal_creation"
	RefTypeMedalIssued                               RefType = "medal_issued"
	RefTypeMissionCompletion                         RefType = "mission_completion"
	RefTypeMissionCost                               RefType = "mission_cost"
	RefTypeMissionExpiration                         RefType = "mission_expiration"
	RefTypeMissionReward                             RefType = "mission_reward"
	RefTypeOfficeRentalFee                           RefType = "office_rental_fee"
	RefTypeOperationBonus                            RefType = "operation_bonus"
	RefTypeOpportunityReward                         RefType = "opportunity_reward"
	RefTypePlanetaryConstruction                     RefType = "planetary_construction"
	RefTypePlanetaryExportTax                        RefType = "planetary_export_tax"
	RefTypePlanetaryImportTax                        RefType = "planetary_import_tax"
	RefTypePlayerDonation                            RefType = "player_donation"
	RefTypePlayerTrading                             RefType = "player_trading"
	RefTypeProjectDiscoveryReward                    RefType = "project_discovery_reward"
	RefTypeProjectDiscoveryTax                       RefType = "project_discovery_tax"
	RefTypeReaction                                  RefType = "reaction"
	RefTypeReleaseOfImpoundedProperty                RefType = "release_of_impounded_property"
	RefTypeRepairBill                                RefType = "repair_bill"
	RefTypeReprocessingTax                           RefType = "reprocessing_tax"
	RefTypeResearchingMaterialProductivity           RefType = "researching_material_productivity"
	RefTypeResearchingTechnology                     RefType = "researching_technology"
	RefTypeResearchingTimeProductivity               RefType = "researching_time_productivity"
	RefTypeResourceWarsReward                        RefType = "resource_wars_reward"
	RefTypeReverseEngineering                        RefType = "reverse_engineering"
	RefTypeSecurityProcessingFee                     RefType = "security_processing_fee"
	RefTypeShares                                    RefType = "shares"
	RefTypeSkillPurchase                             RefType = "skill_purchase"
	RefTypeSovereignityBill                          RefType = "sovereignity_bill"
	RefTypeStorePurchase                             RefType = "store_purchase"
	RefTypeStorePurchaseRefund                       RefType = "store_purchase_refund"
	RefTypeStructureGateJump                         RefType = "structure_gate_jump"
	RefTypeTransactionTax                            RefType = "transaction_tax"
	RefTypeUpkeepAdjustmentFee                       RefType = "upkeep_adjustment_fee"
	RefTypeWarAllyContract                           RefType = "war_ally_contract"
	RefTypeWarFee                                    RefType = "war_fee"
	RefTypeWarFeeSurrender                           RefType = "war_fee_surrender"
)

func (RefType) String

func (i RefType) String() string

func (RefType) Valid

func (i RefType) Valid() bool

type Region

type Region struct {
	ID               uint      `db:"id" json:"id"`
	Name             string    `db:"name" json:"name"`
	ConstellationIDs []uint    `db:"-" json:"constellations,omitempty"`
	CreatedAt        time.Time `db:"created_at" json:"created_at"`
	UpdatedAt        time.Time `db:"updated_at" json:"updated_at"`
}

type Scope

type Scope string
const (
	ReadAssetsV1     Scope = "esi-assets.read_assets.v1"
	ReadClonesV1     Scope = "esi-clones.read_clones.v1"
	ReadImplantsV1   Scope = "esi-clones.read_implants.v1"
	ReadContactsV1   Scope = "esi-characters.read_contacts.v1"
	ReadContractsV1  Scope = "esi-contracts.read_character_contracts.v1"
	ReadLocationV1   Scope = "esi-location.read_location.v1"
	ReadOnlineV1     Scope = "esi-location.read_online.v1"
	ReadShipV1       Scope = "esi-location.read_ship_type.v1"
	ReadMailV1       Scope = "esi-mail.read_mail.v1"
	ReadSkillQueueV1 Scope = "esi-skills.read_skillqueue.v1"
	ReadSkillsV1     Scope = "esi-skills.read_skills.v1"
	ReadWalletV1     Scope = "esi-wallet.read_character_wallet.v1"
)

func (Scope) String

func (s Scope) String() string

type ScopeMap

type ScopeMap map[Scope][]ScopeResolver

type ScopeResolver

type ScopeResolver struct {
	Name string
	Func func(context.Context, *Member) (*Etag, error)
}

type Skill

type Skill struct {
	ActiveSkillLevel   uint      `db:"active_skill_level" json:"active_skill_level"`
	SkillID            uint      `db:"skill_id" json:"skill_id"`
	SkillpointsInSkill uint      `db:"skillpoints_in_skill" json:"skillpoints_in_skill"`
	TrainedSkillLevel  uint      `db:"trained_skill_level" json:"trained_skill_level"`
	CreatedAt          time.Time `db:"created_at" json:"created_at" deep:"-"`
	UpdatedAt          time.Time `db:"updated_at" json:"updated_at" deep:"-"`
}

type SliceUint

type SliceUint []uint64

func (SliceUint) MarshalJSON

func (s SliceUint) MarshalJSON() ([]byte, error)

func (*SliceUint) Scan

func (s *SliceUint) Scan(value interface{}) error

func (*SliceUint) UnmarshalJSON

func (s *SliceUint) UnmarshalJSON(value []byte) error

func (SliceUint) Value

func (s SliceUint) Value() (driver.Value, error)

type SolarSystem

type SolarSystem struct {
	ID              uint        `db:"id" json:"id"`
	Name            string      `db:"name" json:"name"`
	ConstellationID uint        `db:"constellation_id" json:"constellation_id"`
	SecurityStatus  float64     `db:"security_status" json:"security_status"`
	StarID          null.Uint   `db:"star_id,omitempty" json:"star_id,omitempty"`
	SecurityClass   null.String `db:"security_class,omitempty" json:"security_class,omitempty"`
	CreatedAt       time.Time   `db:"created_at" json:"created_at"`
	UpdatedAt       time.Time   `db:"updated_at" json:"updated_at"`
}

type Sort

type Sort int
const (
	SortAsc  Sort = 1
	SortDesc Sort = -1
)

func (Sort) IsValid

func (e Sort) IsValid() bool

func (Sort) Value

func (e Sort) Value() int

type Station

type Station struct {
	ID                       uint      `db:"id" json:"id"`
	Name                     string    `db:"name" json:"name"`
	SystemID                 uint      `db:"system_id" json:"system_id"`
	TypeID                   uint      `db:"type_id" json:"type_id"`
	RaceID                   null.Uint `db:"race_id" json:"race_id"`
	OwnerCorporationID       null.Uint `db:"owner_corporation_id" json:"owner"`
	MaxDockableShipVolume    float64   `db:"max_dockable_ship_volume" json:"max_dockable_ship_volume"`
	OfficeRentalCost         float64   `db:"office_rental_cost" json:"office_rental_cost"`
	ReprocessingEfficiency   float64   `db:"reprocessing_efficiency" json:"reprocessing_efficiency"`
	ReprocessingStationsTake float64   `db:"reprocessing_stations_take" json:"reprocessing_stations_take"`
	CreatedAt                time.Time `db:"created_at" json:"created_at"`
	UpdatedAt                time.Time `db:"updated_at" json:"updated_at"`
}

func (Station) IsCloneLocationInfo

func (Station) IsCloneLocationInfo()

type Structure

type Structure struct {
	ID            uint64    `db:"id" json:"id"`
	Name          string    `db:"name" json:"name"`
	OwnerID       uint      `db:"owner_id" json:"owner_id"`
	SolarSystemID uint      `db:"solar_system_id" json:"solar_system_id"`
	TypeID        null.Uint `db:"type_id" json:"type_id"`
	CreatedAt     time.Time `db:"created_at" json:"created_at"`
	UpdatedAt     time.Time `db:"updated_at" json:"updated_at"`
}

func (Structure) IsCloneLocationInfo

func (Structure) IsCloneLocationInfo()

type Type

type Type struct {
	ID             uint         `db:"id" json:"id"`
	Name           string       `db:"name" json:"name"`
	GroupID        uint         `db:"group_id" json:"group_id"`
	Published      bool         `db:"published" json:"published"`
	Capacity       float64      `db:"capacity,omitempty" json:"capacity,omitempty"`
	MarketGroupID  null.Uint    `db:"market_group_id,omitempty" json:"market_group_id,omitempty"`
	Mass           null.Float64 `db:"mass,omitempty" json:"mass,omitempty"`
	PackagedVolume null.Float64 `db:"packaged_volume,omitempty" json:"packaged_volume,omitempty"`
	PortionSize    null.Uint    `db:"portion_size,omitempty" json:"portion_size,omitempty"`
	Radius         null.Float64 `db:"radius,omitempty" json:"radius,omitempty"`
	Volume         float64      `db:"volume,omitempty" json:"volume,omitempty"`
	CreatedAt      time.Time    `db:"created_at" json:"created_at"`
	UpdatedAt      time.Time    `db:"updated_at" json:"updated_at"`
}

type UniverseRepository

type UniverseRepository interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL