universe

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CategoryShips    = uint(6)
	CategorySkills   = uint(16)
	CategoryImplants = uint(20)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Bloodline(ctx context.Context, bloodlineID uint) (*skillz.Bloodline, error)
	Category(ctx context.Context, categoryID uint) (*skillz.Category, error)
	Constellation(ctx context.Context, constellationID uint) (*skillz.Constellation, error)
	Faction(ctx context.Context, id uint) (*skillz.Faction, error)
	Group(ctx context.Context, groupID uint) (*skillz.Group, error)
	GroupsByCategory(ctx context.Context, categoryID uint) ([]*skillz.Group, error)
	Race(ctx context.Context, id uint) (*skillz.Race, error)
	Region(ctx context.Context, regionID uint) (*skillz.Region, error)
	SolarSystem(ctx context.Context, solarSystemID uint) (*skillz.SolarSystem, error)
	Station(ctx context.Context, stationID uint) (*skillz.Station, error)
	Structure(ctx context.Context, structureID uint64) (*skillz.Structure, error)
	Type(ctx context.Context, itemID uint) (*skillz.Type, error)
	SkillTypesHydrated(ctx context.Context) ([]*skillz.Type, error)
	TypeGroupsHydrated(ctx context.Context, categoryID uint) ([]*skillz.Group, error)
	TypeAttributes(ctx context.Context, id uint) ([]*skillz.TypeDogmaAttribute, error)
	TypesByGroup(ctx context.Context, groupID uint) ([]*skillz.Type, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(logger *logrus.Logger, cache cache.UniverseAPI, esi esi.UniverseAPI, universe skillz.UniverseRepository) *Service

func (*Service) Bloodline

func (s *Service) Bloodline(ctx context.Context, bloodlineID uint) (*skillz.Bloodline, error)

func (*Service) Category

func (s *Service) Category(ctx context.Context, categoryID uint) (*skillz.Category, error)

func (*Service) Constellation

func (s *Service) Constellation(ctx context.Context, constellationID uint) (*skillz.Constellation, error)

func (*Service) Faction

func (s *Service) Faction(ctx context.Context, id uint) (*skillz.Faction, error)

func (*Service) Group

func (s *Service) Group(ctx context.Context, groupID uint) (*skillz.Group, error)

func (*Service) GroupsByCategory

func (s *Service) GroupsByCategory(ctx context.Context, categoryID uint) ([]*skillz.Group, error)

func (*Service) Race

func (s *Service) Race(ctx context.Context, id uint) (*skillz.Race, error)

func (*Service) Region

func (s *Service) Region(ctx context.Context, regionID uint) (*skillz.Region, error)

func (*Service) ShipTypesHydrated added in v0.2.2

func (s *Service) ShipTypesHydrated(ctx context.Context) ([]*skillz.Type, error)

func (*Service) SkillTypesHydrated added in v0.2.2

func (s *Service) SkillTypesHydrated(ctx context.Context) ([]*skillz.Type, error)

func (*Service) SolarSystem

func (s *Service) SolarSystem(ctx context.Context, solarSystemID uint) (*skillz.SolarSystem, error)

func (*Service) Station

func (s *Service) Station(ctx context.Context, stationID uint) (*skillz.Station, error)

func (*Service) Structure

func (s *Service) Structure(ctx context.Context, structureID uint64) (*skillz.Structure, error)

TODO: Need Auth Token from Currently Authenticated Character

func (*Service) Type

func (s *Service) Type(ctx context.Context, itemID uint) (*skillz.Type, error)

func (*Service) TypeAttributes

func (s *Service) TypeAttributes(ctx context.Context, id uint) ([]*skillz.TypeDogmaAttribute, error)

func (*Service) TypeGroupsHydrated added in v0.3.0

func (s *Service) TypeGroupsHydrated(ctx context.Context, categoryID uint) ([]*skillz.Group, error)

func (*Service) TypesByGroup

func (s *Service) TypesByGroup(ctx context.Context, groupID uint) ([]*skillz.Type, error)

Jump to

Keyboard shortcuts

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