Documentation ¶
Index ¶
- Variables
- type Alliance
- type AllianceRepository
- type AuthAttempt
- type AuthAttemptStatus
- type Bloodline
- type Category
- type Character
- type CharacterAttributes
- type CharacterCloneMeta
- type CharacterContact
- type CharacterCorporationHistory
- type CharacterDeathClone
- type CharacterFlyableShip
- type CharacterImplant
- type CharacterJumpClone
- type CharacterRepository
- type CharacterSkill
- type CharacterSkillGroup
- type CharacterSkillMeta
- type CharacterSkillQueue
- type CharacterSkillQueueSummary
- type CharacterSkillRepository
- type CloneLocationType
- type CloneRepository
- type Constellation
- type ContactRepository
- type ContactType
- type Corporation
- type CorporationAllianceHistory
- type CorporationRepository
- type Environment
- type Etag
- type EtagRepository
- type Faction
- type Group
- type OpValue
- type Operation
- type Operator
- func NewAndOperator(value ...*Operator) *Operator
- func NewEqualOperator(column string, value interface{}) *Operator
- func NewExistsOperator(column string, value bool) *Operator
- func NewGreaterThanEqualToOperator(column string, value interface{}) *Operator
- func NewGreaterThanOperator(column string, value interface{}) *Operator
- func NewInOperator(column string, value []interface{}) *Operator
- func NewLessThanEqualToOperator(column string, value interface{}) *Operator
- func NewLessThanOperator(column string, value interface{}) *Operator
- func NewLikeOperator(column string, value string) *Operator
- func NewLimitOperator(value uint64) *Operator
- func NewNotEqualOperator(column string, value interface{}) *Operator
- func NewNotInOperator(column string, value interface{}) *Operator
- func NewOrOperator(value ...*Operator) *Operator
- func NewOrderOperator(column string, sort Sort) *Operator
- func NewSkipOperator(value int64) *Operator
- type Processor
- type QueueGroupSummary
- type Race
- type RecentUsers
- type Region
- type Scope
- type ScopeProcessors
- type ScopeResolver
- type SkillGroup
- type SkillType
- type SliceUint
- type SolarSystem
- type Sort
- type Station
- type Structure
- type Type
- type TypeDogmaAttribute
- type UniverseRepository
- type User
- type UserRepository
- type UserScopes
- type UserSearchResult
- type UserSettings
- type UserWithSkillMeta
- type Visibility
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCloneLocationTypes = []CloneLocationType{CloneLocationTypeStation, CloneLocationTypeStructure}
View Source
var AllOperations = []Operation{ EqualOp, NotEqualOp, GreaterThanOp, GreaterThanEqualToOp, LessThanOp, LessThanEqualToOp, InOp, NotInOp, LikeOp, LimitOp, OrderOp, SkipOp, OrOp, AndOp, ExistsOp, }
View Source
var AllScopes = []Scope{ ReadSkillQueueV1, ReadSkillsV1, }
View Source
var AllSort = []Sort{ SortAsc, SortDesc, }
View Source
var AllVisibilities = []Visibility{VisibilityPrivate, VisibilityPublic, VisibilityToken}
View Source
var MapVisibility = map[Visibility]string{ VisibilityPrivate: "Private", VisibilityToken: "Token", VisibilityPublic: "Public", }
View Source
var StatusMap = map[AuthAttemptStatus]string{ CreateAuthStatus: "create", PendingAuthStatus: "pending", InvalidAuthStatus: "invalid", ExpiredAuthStatus: "expired", CompletedAuthStatus: "completed", }
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
Alliance is an object representing the database table.
type AllianceRepository ¶
type AuthAttempt ¶
type AuthAttempt struct { Status AuthAttemptStatus State string Token null.String `json:",omitempty"` }
type AuthAttemptStatus ¶
type AuthAttemptStatus uint
const ( CreateAuthStatus AuthAttemptStatus = iota PendingAuthStatus InvalidAuthStatus ExpiredAuthStatus CompletedAuthStatus )
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
type Character ¶
type Character struct { ID uint64 `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"` BloodlineID uint `db:"bloodline_id" json:"bloodline_id"` RaceID uint `db:"race_id" json:"race_id"` CreatedAt time.Time `db:"created_at" json:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Corporation *Corporation `json:"corporation,omitempty"` Alliance *Alliance `json:"alliance,omitempty"` }
type CharacterAttributes ¶
type CharacterAttributes struct { CharacterID uint64 `db:"character_id" json:"character_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.Uint `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:"-" deep:"-"` UpdatedAt time.Time `db:"updated_at" json:"-" deep:"-"` }
type CharacterCloneMeta ¶
type CharacterCloneMeta struct { CharacterID uint64 `db:"character_id" json:"character_id"` 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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` HomeLocation *CharacterDeathClone `json:"home_location"` JumpClones []*CharacterJumpClone `json:"jump_clones"` }
type CharacterContact ¶
type CharacterContact struct { CharacterID uint64 `db:"character_id" json:"character_id"` ContactID uint `db:"contact_id" json:"contact_id"` ContactType ContactType `db:"contact_type" json:"contact_type"` Standing float64 `db:"standing" json:"standing"` CreatedAt time.Time `db:"created_at" json:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Alliance *Alliance `json:"alliance,omitempty"` Corporation *Corporation `json:"corporation,omitempty"` Character *Character `json:"character,omitempty"` }
type CharacterCorporationHistory ¶
type CharacterCorporationHistory struct { CharacterID uint64 `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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
type CharacterDeathClone ¶
type CharacterDeathClone struct { CharacterID uint64 `db:"character_id" json:"character_id"` LocationID uint64 `db:"location_id" json:"location_id"` LocationType CloneLocationType `db:"location_type" json:"location_type"` CreatedAt time.Time `db:"created_at" json:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Station *Station `json:"station,omitempty"` Structure *Structure `json:"structure,omitempty"` }
type CharacterFlyableShip ¶
type CharacterImplant ¶
type CharacterJumpClone ¶
type CharacterJumpClone struct { CharacterID uint64 `db:"character_id" json:"character_id"` JumpCloneID uint `db:"jump_clone_id" json:"jump_clone_id"` LocationID uint64 `db:"location_id" json:"location_id"` LocationType CloneLocationType `db:"location_type" json:"location_type"` CreatedAt time.Time `db:"created_at" json:"-"` ImplantIDs SliceUint `db:"implant_ids" json:"-"` Implants []*Type `json:"implants,omitempty"` Station *Station `json:"station,omitempty"` Structure *Structure `json:"structure,omitempty"` }
type CharacterRepository ¶
type CharacterRepository interface {
// contains filtered or unexported methods
}
type CharacterSkill ¶
type CharacterSkill struct { CharacterID uint64 `db:"character_id" json:"character_id"` 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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Info *Type `json:"type,omitempty"` }
type CharacterSkillGroup ¶
type CharacterSkillGroup struct { *SkillGroup TotalGroupSP uint `json:"totalGroupSP"` }
type CharacterSkillMeta ¶
type CharacterSkillMeta struct { CharacterID uint64 `db:"character_id" json:"character_id"` TotalSP uint `db:"total_sp" json:"total_sp"` UnallocatedSP null.Uint `db:"unallocated_sp,omitempty" json:"unallocated_sp,omitempty"` CreatedAt time.Time `db:"created_at" json:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Skills []*CharacterSkill `json:"skills,omitempty"` }
type CharacterSkillQueue ¶
type CharacterSkillQueue struct { CharacterID uint64 `db:"character_id" json:"character_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.Uint `db:"training_start_sp,omitempty" json:"training_start_sp,omitempty"` LevelStartSp null.Uint `db:"level_start_sp,omitempty" json:"level_start_sp,omitempty"` LevelEndSp null.Uint `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:"-" deep:"-"` Type *Type `json:"info"` }
type CharacterSkillQueueSummary ¶ added in v0.2.2
type CharacterSkillQueueSummary struct { Summary []*QueueGroupSummary Queue []*CharacterSkillQueue }
type CharacterSkillRepository ¶
type CharacterSkillRepository interface {
// contains filtered or unexported methods
}
type CloneLocationType ¶
type CloneLocationType string
const ( CloneLocationTypeStation CloneLocationType = "station" CloneLocationTypeStructure CloneLocationType = "structure" )
func (CloneLocationType) String ¶
func (c CloneLocationType) String() string
func (CloneLocationType) Valid ¶
func (c CloneLocationType) Valid() bool
type CloneRepository ¶
type CloneRepository interface { CharacterCloneMeta(ctx context.Context, characterID uint64) (*CharacterCloneMeta, error) CreateCharacterCloneMeta(ctx context.Context, meta *CharacterCloneMeta) error CharacterDeathClone(ctx context.Context, characterID uint64) (*CharacterDeathClone, error) CreateCharacterDeathClone(ctx context.Context, death *CharacterDeathClone) error CharacterJumpClones(ctx context.Context, characterID uint64) ([]*CharacterJumpClone, error) CreateCharacterJumpClones(ctx context.Context, clones []*CharacterJumpClone) error DeleteCharacterJumpClones(ctx context.Context, characterID uint64) error CharacterImplants(ctx context.Context, characterID uint64) ([]*CharacterImplant, error) CreateCharacterImplants(ctx context.Context, implants []*CharacterImplant) error DeleteCharacterImplants(ctx context.Context, characterID uint64) error }
type Constellation ¶
type ContactRepository ¶
type ContactType ¶
type ContactType string
const ( CharacterContactType ContactType = "character" CorporationContactType ContactType = "corporation" AllianceContactType ContactType = "alliance" FactionContactType ContactType = "faction" )
type Corporation ¶
type Corporation struct { ID uint `db:"id" 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"` 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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Alliance *Alliance `json:"alliance,omitempty"` }
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
type CorporationRepository ¶
type CorporationRepository interface { Corporation(ctx context.Context, corporationID uint) (*Corporation, error) CreateCorporation(ctx context.Context, corporation *Corporation) error UpdateCorporation(ctx context.Context, corporation *Corporation) error CorporationAllianceHistory(ctx context.Context, corporationID uint) ([]*CorporationAllianceHistory, error) CreateCorporationAllianceHistory(ctx context.Context, records []*CorporationAllianceHistory) ([]*CorporationAllianceHistory, error) }
type Environment ¶
type Environment uint
const ( Production Environment = iota Development )
func EnvironmentFromString ¶ added in v0.0.14
func EnvironmentFromString(env string) Environment
func (Environment) String ¶ added in v0.2.2
func (e Environment) String() string
type EtagRepository ¶
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
func (Faction) IsContactInfo ¶
func (Faction) IsContactInfo()
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"` TypeIDs []uint `db:"-" json:"types,omitempty"` CreatedAt time.Time `db:"created_at" json:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Types []*Type `json:"items"` }
type Operator ¶
type Operator struct { Column string `json:"column"` Operation Operation `json:"operation"` Value OpValue `json:"value"` }
func NewAndOperator ¶
func NewEqualOperator ¶
func NewExistsOperator ¶
func NewGreaterThanOperator ¶
func NewInOperator ¶
func NewLessThanOperator ¶
func NewLikeOperator ¶
func NewLimitOperator ¶
func NewNotEqualOperator ¶
func NewNotInOperator ¶
func NewOrOperator ¶
func NewOrderOperator ¶
func NewSkipOperator ¶
type QueueGroupSummary ¶ added in v0.2.2
type RecentUsers ¶ added in v0.2.2
type ScopeProcessors ¶
type ScopeProcessors []Processor
type ScopeResolver ¶
type SkillGroup ¶ added in v0.2.2
type SkillType ¶ added in v0.2.2
type SkillType struct { *Type Skill *CharacterSkill `json:"skill"` Rank *TypeDogmaAttribute `json:"rank"` }
type SliceUint ¶
type SliceUint []uint64
func (SliceUint) MarshalJSON ¶
func (*SliceUint) UnmarshalJSON ¶
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
func (Station) IsLocationInfo ¶
func (Station) IsLocationInfo()
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` }
func (Structure) IsLocationInfo ¶
func (Structure) IsLocationInfo()
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:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Attributes []*TypeDogmaAttribute `json:"dogma_attributes"` Group *Group `json:"group"` }
type TypeDogmaAttribute ¶
type UniverseRepository ¶
type UniverseRepository interface { Bloodline(ctx context.Context, bloodlineID uint) (*Bloodline, error) Bloodlines(ctx context.Context) ([]*Bloodline, error) CreateBloodline(ctx context.Context, bloodline *Bloodline) error UpdateBloodline(ctx context.Context, bloodline *Bloodline) error Category(ctx context.Context, categoryID uint) (*Category, error) Categories(ctx context.Context) ([]*Category, error) CreateCategory(ctx context.Context, category *Category) error UpdateCategory(ctx context.Context, category *Category) error Constellation(ctx context.Context, constellationID uint) (*Constellation, error) Constellations(ctx context.Context) ([]*Constellation, error) CreateConstellation(ctx context.Context, constellation *Constellation) error UpdateConstellation(ctx context.Context, constellation *Constellation) error Faction(ctx context.Context, factionID uint) (*Faction, error) Factions(ctx context.Context) ([]*Faction, error) CreateFaction(ctx context.Context, faction *Faction) error UpdateFaction(ctx context.Context, faction *Faction) error Group(ctx context.Context, groupID uint) (*Group, error) Groups(ctx context.Context, operators ...*Operator) ([]*Group, error) CreateGroup(ctx context.Context, group *Group) error UpdateGroup(ctx context.Context, group *Group) error Race(ctx context.Context, raceID uint) (*Race, error) Races(ctx context.Context, operators ...*Operator) ([]*Race, error) CreateRace(ctx context.Context, race *Race) error UpdateRace(ctx context.Context, race *Race) error Region(ctx context.Context, regionID uint) (*Region, error) Regions(ctx context.Context) ([]*Region, error) CreateRegion(ctx context.Context, region *Region) error UpdateRegion(ctx context.Context, region *Region) error SolarSystem(ctx context.Context, solarSystemID uint) (*SolarSystem, error) SolarSystems(ctx context.Context, operators ...*Operator) ([]*SolarSystem, error) CreateSolarSystem(ctx context.Context, solarSystem *SolarSystem) error UpdateSolarSystem(ctx context.Context, solarSystem *SolarSystem) error Station(ctx context.Context, stationID uint) (*Station, error) Stations(ctx context.Context, operators ...*Operator) ([]*Station, error) CreateStation(ctx context.Context, station *Station) error UpdateStation(ctx context.Context, station *Station) error Structure(ctx context.Context, structureID uint64) (*Structure, error) Structures(ctx context.Context) ([]*Structure, error) CreateStructure(ctx context.Context, structure *Structure) error UpdateStructure(ctx context.Context, structure *Structure) error Type(ctx context.Context, typeID uint) (*Type, error) Types(ctx context.Context, operators ...*Operator) ([]*Type, error) CreateType(ctx context.Context, item *Type) error UpdateType(ctx context.Context, item *Type) error TypeDogmaAttributes(ctx context.Context, typeID uint) ([]*TypeDogmaAttribute, error) TypeDogmaAttributesBulk(ctx context.Context, typeIDs []uint) ([]*TypeDogmaAttribute, error) CreateTypeDogmaAttributes(ctx context.Context, attributes []*TypeDogmaAttribute) error DeleteTypeDogmaAttributes(ctx context.Context, typeID uint) error }
type User ¶
type User struct { ID uuid.UUID `db:"id" json:"id"` CharacterID uint64 `db:"character_id,omitempty" json:"character_id"` AccessToken string `db:"access_token" json:"-"` RefreshToken string `db:"refresh_token" json:"-"` Expires time.Time `db:"expires," json:"expires"` OwnerHash string `db:"owner_hash" json:"owner_hash"` Scopes UserScopes `db:"scopes,omitempty" json:"scopes,omitempty"` IsNew bool `db:"is_new" json:"is_new"` IsProcessing bool `db:"is_processing" json:"is_processing"` 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"` LastProcessed null.Time `db:"last_processed" json:"last_processed"` CreatedAt time.Time `db:"created_at" json:"-"` UpdatedAt time.Time `db:"updated_at" json:"-"` Errors []error `json:"errors,omitempty"` Character *Character `json:"character,omitempty"` Settings *UserSettings `json:"settings,omitempty"` Skills []*CharacterSkill `json:"skillz,omitempty"` SkillsGrouped []*CharacterSkillGroup `json:"groupedSkillz,omitempty"` QueueSummary *CharacterSkillQueueSummary `json:"queue,omitempty"` Attributes *CharacterAttributes `json:"attributes,omitempty"` Flyable []*CharacterFlyableShip `json:"flyable,omitempty"` Meta *CharacterSkillMeta `json:"meta,omitempty"` }
func (*User) ApplyToken ¶
type UserRepository ¶
type UserRepository interface { User(ctx context.Context, id uuid.UUID) (*User, error) UserByCharacterID(ctx context.Context, characterID uint64) (*User, error) SearchUsers(ctx context.Context, q string) ([]*User, error) CreateUser(ctx context.Context, user *User) error UpdateUser(ctx context.Context, user *User) error UserSettings(ctx context.Context, id uuid.UUID) (*UserSettings, error) CreateUserSettings(ctx context.Context, settings *UserSettings) error UsersSortedByProcessedAtLimit(ctx context.Context, limit uint64) ([]*User, error) NewUsersBySP(ctx context.Context) ([]*User, error) }
type UserScopes ¶
type UserScopes []Scope
func (*UserScopes) Scan ¶
func (s *UserScopes) Scan(value interface{}) error
type UserSearchResult ¶
type UserSettings ¶ added in v0.0.14
type UserSettings struct { UserID uuid.UUID `db:"user_id" json:"user_id" form:"-"` Visibility Visibility `db:"visibility" form:"visibility"` VisibilityToken string `db:"visibility_token"` HideSkills bool `db:"hide_skills" form:"hide_skills"` HideQueue bool `db:"hide_queue" form:"hide_queue"` HideAttributes bool `db:"hide_attributes" form:"hide_attributes"` HideFlyable bool `db:"hide_flyable" form:"hide_flyable"` CreatedAt time.Time `db:"created_at" json:"-" form:"-"` UpdatedAt time.Time `db:"updated_at" json:"-" form:"-"` }
type UserWithSkillMeta ¶
type UserWithSkillMeta struct { *User Meta *CharacterSkillMeta `json:"meta"` Skills []*CharacterSkill `json:"skills"` QueueSummary *CharacterSkillQueueSummary `json:"skillQueue"` Info *Character `json:"info"` }
type Visibility ¶ added in v0.2.2
type Visibility uint
const ( VisibilityPublic Visibility = iota + 1 VisibilityToken VisibilityPrivate )
func (Visibility) String ¶ added in v0.2.2
func (v Visibility) String() string
func (Visibility) Uint ¶ added in v0.2.2
func (v Visibility) Uint() uint
func (Visibility) Valid ¶ added in v0.2.2
func (v Visibility) Valid() bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.