universe

package
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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc

type OptionFunc func(*options) *options

func WithDisableProgress

func WithDisableProgress() OptionFunc

func WithoutChr

func WithoutChr() OptionFunc

func WithoutInv

func WithoutInv() OptionFunc

func WithoutLoc

func WithoutLoc() OptionFunc

type Service

type Service interface {
	InitializeUniverse(options ...OptionFunc) error

	Ancestry(ctx context.Context, id uint) (*athena.Ancestry, error)
	Ancestries(ctx context.Context, operators ...*athena.Operator) ([]*athena.Ancestry, error)
	Bloodline(ctx context.Context, id uint) (*athena.Bloodline, error)
	Bloodlines(ctx context.Context, operators ...*athena.Operator) ([]*athena.Bloodline, error)
	Category(ctx context.Context, id uint) (*athena.Category, error)
	Categories(ctx context.Context, operators ...*athena.Operator) ([]*athena.Category, error)
	Constellation(ctx context.Context, id uint) (*athena.Constellation, error)
	Constellations(ctx context.Context, operators ...*athena.Operator) ([]*athena.Constellation, error)
	Faction(ctx context.Context, id uint) (*athena.Faction, error)
	Factions(ctx context.Context, operators ...*athena.Operator) ([]*athena.Faction, error)
	Group(ctx context.Context, id uint) (*athena.Group, error)
	Groups(ctx context.Context, operators ...*athena.Operator) ([]*athena.Group, error)
	Race(ctx context.Context, id uint) (*athena.Race, error)
	Races(ctx context.Context, operators ...*athena.Operator) ([]*athena.Race, error)
	Region(ctx context.Context, id uint) (*athena.Region, error)
	Regions(ctx context.Context, operators ...*athena.Operator) ([]*athena.Region, error)
	SolarSystem(ctx context.Context, id uint) (*athena.SolarSystem, error)
	SolarSystems(ctx context.Context, operators ...*athena.Operator) ([]*athena.SolarSystem, error)
	Station(ctx context.Context, id uint) (*athena.Station, error)
	Stations(ctx context.Context, operators ...*athena.Operator) ([]*athena.Station, error)
	Structure(ctx context.Context, member *athena.Member, id uint64) (*athena.Structure, error)
	Structures(ctx context.Context, operators ...*athena.Operator) ([]*athena.Structure, error)
	Type(ctx context.Context, id uint) (*athena.Type, error)
	Types(ctx context.Context, operators ...*athena.Operator) ([]*athena.Type, error)
}

func NewService

func NewService(logger *logrus.Logger, cache cache.Service, esi esi.Service, universe athena.UniverseRepository) Service

Jump to

Keyboard shortcuts

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