esi

package
v0.0.0-...-72f23f1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken(dao *db.DB, character db.Character, eveClientId string, eveClientSecret string) (string, error)

Types

type Client

type Client struct {
	BaseUrl    string
	Token      null.String
	HttpClient *retry.Client
}

func NewAuthenticatedEsiClient

func NewAuthenticatedEsiClient(baseUrl string, token string, timeout time.Duration) *Client

func NewEsiClient

func NewEsiClient(baseUrl string) *Client

func (*Client) GetBlueprints

func (c *Client) GetBlueprints(characterID int64, page int) (*models.BlueprintsResponse, error)

func (*Client) GetCharacterMarketOrders

func (c *Client) GetCharacterMarketOrders(characterID int64) ([]models.CharacterMarketOrder, error)

func (*Client) GetIndustryJobs

func (c *Client) GetIndustryJobs(characterID int64) ([]models.IndustryJob, error)

func (*Client) GetJournalEntries

func (c *Client) GetJournalEntries(characterId int64, page int) (*models.JournalEntriesResponse, error)

func (*Client) GetMarketOrderHistory

func (c *Client) GetMarketOrderHistory(characterID int64, page int) (*models.MarketOrderHistoryResponse, error)

func (*Client) GetMarketOrders

func (c *Client) GetMarketOrders(regionID int) (map[int][]models.MarketOrder, error)

func (*Client) GetSkillQueue

func (c *Client) GetSkillQueue(characterID int64) ([]models.SkillQueueItem, error)

func (*Client) GetSkills

func (c *Client) GetSkills(characterID int64) (*models.SkillsResponse, error)

func (*Client) GetWalletTransactions

func (c *Client) GetWalletTransactions(characterId int64) ([]models.WalletTransaction, error)

type TokensResponse

type TokensResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int64  `json:"expires_in"`
}

func GetTokens

func GetTokens(clientId string, clientSecret string, refreshToken string) (*TokensResponse, error)

Jump to

Keyboard shortcuts

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