Documentation ¶
Index ¶
- func AncestryByID(ctx context.Context, id *int) (*model.Ancestry, error)
- func AsteroidBeltByID(ctx context.Context, id *int) (*model.AsteroidBelt, error)
- func AsteroidBeltDetails(ctx context.Context, asteroidBelts []*int) ([]*model.AsteroidBelt, error)
- func BloodlineByID(ctx context.Context, id *int) (*model.Bloodline, error)
- func CategoryByID(ctx context.Context, id *int) (*model.Category, error)
- func ConstellationByID(ctx context.Context, id *int) (*model.Constellation, error)
- func ConstellationsByIDs(ctx context.Context, ids []*int) ([]*model.Constellation, error)
- func FactionByID(ctx context.Context, id *int) (*model.Faction, error)
- func GraphicByID(ctx context.Context, id *int) (*model.Graphic, error)
- func GroupByID(ctx context.Context, id *int) (*model.Group, error)
- func IDForName(ctx context.Context, name *string, nameType string) (int, error)
- func ItemTypeByID(ctx context.Context, id *int) (*model.ItemType, error)
- func ItemTypesByIDs(ctx context.Context, itemTypes []*int) ([]*model.ItemType, error)
- func MoonByID(ctx context.Context, id *int) (*model.Moon, error)
- func MoonDetails(ctx context.Context, moons []*int) ([]*model.Moon, error)
- func PlanetByID(ctx context.Context, id *int) (*model.Planet, error)
- func RaceByID(ctx context.Context, id *int) (*model.Race, error)
- func RegionByID(ctx context.Context, id *int) (*model.Region, error)
- func SetupUniverseRest()
- func StarByID(ctx context.Context, id *int) (*model.Star, error)
- func StargateByID(ctx context.Context, id *int) (*model.Stargate, error)
- func StargateDetails(ctx context.Context, stargates []*int) ([]*model.Stargate, error)
- func StationByID(ctx context.Context, id *int) (*model.Station, error)
- func StationsByIDs(ctx context.Context, ids []*int) ([]*model.Station, error)
- func SystemByID(ctx context.Context, id *int) (*model.System, error)
- func SystemsByIDs(ctx context.Context, ids []*int) ([]*model.System, error)
- type CacheClientInterface
- type RestHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AncestryByID ¶
AncestryByID takes a context for tracing and an ID to query the Ancestry by.
func AsteroidBeltByID ¶
AsteroidBeltByID takes a context for tracing and an ID to query the Astroid Belt by.
func AsteroidBeltDetails ¶
AsteroidBeltDetails takes in a context for tracing and an array of astroidBelt IDs to query buy to return the data requested.
func BloodlineByID ¶
BloodlineByID takes a context for tracing and an ID to query the Bloodline by.
func CategoryByID ¶
CategoryByID takes a context for tracing and an ID to query the Category by.
func ConstellationByID ¶
ConstellationByID takes a context for tracing and an ID to query the Constellation by.
func ConstellationsByIDs ¶
ConstellationsByIDs takes a context for tracing and an array of IDs to query the Constellations by.
func FactionByID ¶
FactionByID takes a context for tracing and an ID to query the Faction by.
func GraphicByID ¶
GraphicByID takes a context for tracing and an ID to query the Graphic by.
func IDForName ¶ added in v0.0.2
IDForName takes a context for tracing and a common name of a type in EVE, Agent, Alliance, etc and a field representing the type being requested. Returns a name/id pair representing the object requested.
func ItemTypeByID ¶
ItemTypeByID takes a context for tracing and an ID to query the Item Type by.
func ItemTypesByIDs ¶
ItemTypesByIDs takes a context for tracing and an ID to query the Item Types by.
func MoonDetails ¶
MoonDetails takes a context for tracing and an array of IDs to query the Moons by.
func PlanetByID ¶
PlanetByID takes a context for tracing and an ID to query the Planet by.
func RegionByID ¶
RegionByID takes a context for tracing and an ID to query the Region by.
func SetupUniverseRest ¶
func SetupUniverseRest()
SetupUniverseRest configures dependencies for the Universe rest package
func StargateByID ¶
StargateByID takes a context for tracing and an ID to query the Stargate by.
func StargateDetails ¶
StargateDetails takes a context for tracing and an array of IDs to query the Stargates by.
func StationByID ¶
StationByID takes a context for tracing and an ID to query the Station by.
func StationsByIDs ¶
StationsByIDs takes a context for tracing and an array of IDs to query the Stations by.
func SystemByID ¶
SystemByID takes a context for tracing and an ID to query the System by.
Types ¶
type CacheClientInterface ¶
type CacheClientInterface interface { AddToCache(ctx context.Context, key string, value []byte, ttl int64) CheckCache(ctx context.Context, key string) (bool, []byte) }
CacheClientInterface is an interface for mocking during unit tests for the caching implementation
var ( // CachingClient is for wiring in the implementation of caching that is decided by the config CachingClient CacheClientInterface )