titan

package module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

Titan

build

A simple go-based application that will help you become an industry titan in EVE Online.

Register an application

In order to run titan for yourself, you need to register an application on the EVE Online Developer Portal (https://developers.eveonline.com/applications). Choose an appropriate name, such as mytitan. Connection type must be set to Authentication & API Access. The application needs to have the following permissions:

  • publicData
  • esi-skills.read_skills.v1
  • esi-corporations.read_corporation_membership.v1
  • esi-ui.open_window.v1
  • esi-wallet.read_corporation_wallets.v1
  • esi-assets.read_corporation_assets.v1
  • esi-corporations.read_blueprints.v1
  • esi-industry.read_corporation_jobs.v1

In the last step, choose an appropriate redirect URI. This needs to include your hostname plus the path /auth/callback, if you want to deploy it somewhere or something like http://localhost:4300/auth/callback for a local development deployment.

Set up development environment

To set up a simple development development environment with REDIS and MongoDB, you can use the included dev.yml file.

docker-compose -f dev.yml up -d

Titan uses cobra and viper for configuring itself. This configuration options are defined in server.go and can be used in the following way:

  • Environmental variables. The prefix is TITAN, so the config option for the redis server becomes TITAN_REDIS
  • Command line arguments, such as --redis
  • A configuration file, stored in config/config.yaml

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeUnique

func MakeUnique(slice []int32) []int32

Types

type App

type App struct {
	CacheManufacturing bool
	CorporationID      int32
}

App represented the main titan application

func (App) ContractsLoop

func (a App) ContractsLoop()

func (App) ImportSDE

func (a App) ImportSDE()

ImportSDE reads the current SDE version from sde.version and imports it into the DB, if necessary.

func (App) ServerLoop

func (a App) ServerLoop()

ServerLoop takes care of reguarly caching prices and manufacturing.

func (App) UpdateProduct

func (a App) UpdateProduct(typeID int32)

Directories

Path Synopsis
cmd
Package datafetch contains code that fetch various data, such as transactions, jour«nals, etc.
Package datafetch contains code that fetch various data, such as transactions, jour«nals, etc.

Jump to

Keyboard shortcuts

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