fw_api

package
v0.0.0-...-1f6c158 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetPlayerDataUrl    string = "https://www.futwiz.com/en/app/sold24/%d/console"
	GetPlayerHistoryUrl string = "https://www.futwiz.com/en/app/price_history_player24_multi?p=%d&h"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FwDataClient

type FwDataClient interface {
	GetPlayerDetails(request PlayerRequest) (*PlayerResponse, error)
	GetPlayerHistory(request PlayerRequest) (*PlayerHistoryResponse, error)
}

type FwDataClientImpl

type FwDataClientImpl struct{}

func (*FwDataClientImpl) GetPlayerDetails

func (c *FwDataClientImpl) GetPlayerDetails(request PlayerRequest) (*PlayerResponse, error)

func (*FwDataClientImpl) GetPlayerHistory

func (c *FwDataClientImpl) GetPlayerHistory(request PlayerRequest) (*PlayerHistoryResponse, error)

type PlayerHistoryResponse

type PlayerHistoryResponse struct {
	Console map[int64]float64
	PC      map[int64]float64
}

type PlayerRequest

type PlayerRequest struct {
	Id int
}

type PlayerResponse

type PlayerResponse struct {
	Id      string
	Urlname string
	Price   string
	Ud      string
}

Jump to

Keyboard shortcuts

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