skill

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	skillz.Processor
	Meta(ctx context.Context, characterID uint64) (*skillz.CharacterSkillMeta, error)
	Skillz(ctx context.Context, characterID uint64) ([]*skillz.CharacterSkill, error)
	Attributes(ctx context.Context, characterID uint64) (*skillz.CharacterAttributes, error)
	Flyable(ctx context.Context, characterID uint64) ([]*skillz.CharacterFlyableShip, error)
	SkillQueue(ctx context.Context, characterID uint64) ([]*skillz.CharacterSkillQueue, error)
	SkillsGrouped(ctx context.Context, characterID uint64) ([]*skillz.CharacterSkillGroup, error)
}

type Service

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

func New

func New(logger *logrus.Logger, cache cache.SkillAPI, esi esi.SkillAPI, universe universe.API, skills skillz.CharacterSkillRepository) *Service

func (*Service) Attributes

func (s *Service) Attributes(ctx context.Context, characterID uint64) (*skillz.CharacterAttributes, error)

func (*Service) Flyable

func (s *Service) Flyable(ctx context.Context, characterID uint64) ([]*skillz.CharacterFlyableShip, error)

func (*Service) Meta

func (s *Service) Meta(ctx context.Context, characterID uint64) (*skillz.CharacterSkillMeta, error)

func (*Service) Process

func (s *Service) Process(ctx context.Context, user *skillz.User) error

func (*Service) Scopes

func (s *Service) Scopes() []skillz.Scope

func (*Service) SkillQueue

func (s *Service) SkillQueue(ctx context.Context, characterID uint64) ([]*skillz.CharacterSkillQueue, error)

func (*Service) SkillsGrouped

func (s *Service) SkillsGrouped(ctx context.Context, characterID uint64) ([]*skillz.CharacterSkillGroup, error)

func (*Service) Skillz

func (s *Service) Skillz(ctx context.Context, characterID uint64) ([]*skillz.CharacterSkill, error)

Jump to

Keyboard shortcuts

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