artifice

package
v0.0.0-...-dbefbc8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package artifice provides seqencing of timed triggers for pulling information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifice

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

Artifice handles the scheduling of routine tasks.

func NewArtifice

func NewArtifice(redis *redis.Pool, db *sqlx.DB, clientID string, secret string, refresh string, refreshCharID string) *Artifice

NewArtifice Service.

func (*Artifice) ChangeBasePath

func (s *Artifice) ChangeBasePath(path string)

ChangeBasePath for ESI (sisi/mock/tranquility)

func (*Artifice) ChangeTokenPath

func (s *Artifice) ChangeTokenPath(path string)

ChangeTokenPath for ESI (sisi/mock/tranquility)

func (*Artifice) Close

func (s *Artifice) Close()

Close the service

func (*Artifice) GetAllianceForScope

func (s *Artifice) GetAllianceForScope(scope string) ([]CharacterPairs, error)

func (*Artifice) GetCharactersForScope

func (s *Artifice) GetCharactersForScope(scope string) ([]CharacterPairs, error)

func (*Artifice) GetCorporationForScope

func (s *Artifice) GetCorporationForScope(scope string) ([]CharacterPairs, error)

func (*Artifice) QueueSize

func (s *Artifice) QueueSize() (int, error)

QueueSize returns the size of the queue

func (*Artifice) QueueWork

func (s *Artifice) QueueWork(work []redisqueue.Work, priority int) error

QueueWork directly

func (*Artifice) Run

func (s *Artifice) Run()

Run the service

type CharacterPairs

type CharacterPairs struct {
	CharacterID      int32 `db:"characterID"`
	TokenCharacterID int32 `db:"tokenCharacterID"`
	AllianceID       int32 `db:"allianceID"`
	CorporationID    int32 `db:"corporationID"`
}

Jump to

Keyboard shortcuts

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