Documentation
¶
Index ¶
- Constants
- func CalculateRiverDrift(head string, current string) (int, error)
- func ConsumeRiver(f *CliFlags)
- func GetLatestChangeIdGGG(client *http.Client) (string, error)
- func IntPow(n, m int) int
- func UpdateDb(ctx context.Context, dbHandle *pgxpool.Pool, stashes []StashSnapshot) error
- type CliFlags
- type JewelEntry
- type Price
- type RawItem
- type RawItemPropValue
- type RawItemProperty
- type RawStashTab
- type StashSnapshot
Constants ¶
View Source
const DELETE_JEWEL_QUERY = `
DELETE
FROM jewels
WHERE id = $1
`
View Source
const MAX_BACKOFFS = 6
View Source
const MAX_RETRIES = 10
View Source
const POENINJA_POLL_RATE = 60 // Every 60 iterations (~30s)
View Source
const SELECT_JEWELS_QUERY = `
SELECT *
FROM jewels
WHERE stashId = any($1)
`
View Source
const UPDATE_JEWEL_PRICE_QUERY = `` /* 136-byte string literal not displayed */
View Source
const UPSERT_JEWEL_QUERY = `` /* 318-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ConsumeRiver ¶
func ConsumeRiver(f *CliFlags)
func GetLatestChangeIdGGG ¶
Fetches the official latest change id from pathofexile.com. This doesn't work (in my experience) from a cloud-based IP, so the "unofficial" latest change id from poe.ninja is preferred
Types ¶
type JewelEntry ¶
func (JewelEntry) String ¶
func (j JewelEntry) String() string
type Price ¶
func ParsePrice ¶
type RawItemPropValue ¶
type RawItemPropValue struct { Value string Numeric int // unsure what this field is used for, but we don't use it other than to unmarshal the data }
func (*RawItemPropValue) UnmarshalJSON ¶
func (i *RawItemPropValue) UnmarshalJSON(data []byte) error
type RawItemProperty ¶
type RawItemProperty struct { Name string `json:"name"` Values []RawItemPropValue }
type RawStashTab ¶
type StashSnapshot ¶
type StashSnapshot struct { Id string League string Items []JewelEntry ChangeId string RecordedAt time.Time }
func FindFFJewels ¶
func FindFFJewels(r io.ReadCloser, l *log.Logger, changeId string) ([]StashSnapshot, error)
Click to show internal directories.
Click to hide internal directories.