parse

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuyForm added in v1.5.0

func BuyForm(body []byte) (string, map[string]string, error)

func CompleteForm added in v1.5.0

func CompleteForm(body []byte) (string, map[string]string, error)

func DangerText added in v1.4.0

func DangerText(body []byte) (string, error)

func FormAction added in v1.5.0

func FormAction(body []byte) (string, error)

func ParseChipFields added in v1.3.0

func ParseChipFields(body []byte) (map[string]string, error)

func ParseGames added in v1.4.0

func ParseGames(body []byte) ([]Game, []Node, error)

func PayForm added in v1.5.0

func PayForm(body []byte) (string, map[string]string, error)

Types

type AppData

type AppData struct {
	UserID int64
	CSRF   string
	Locale string
}

func ParseAppData

func ParseAppData(body []byte) (AppData, error)

type Bookmark

type Bookmark struct {
	ID        int64
	MessageID int64
	Author    string
	Text      string
	HasText   bool
}

func ParseBookmarks

func ParseBookmarks(fragment []byte) ([]Bookmark, error)

type BuyerPrice added in v1.4.0

type BuyerPrice struct {
	Method string
	Amount Sum
}

func ParseBuyerPrices added in v1.4.0

func ParseBuyerPrices(body []byte) ([]BuyerPrice, error)

type ChatLine added in v1.3.0

type ChatLine struct {
	ID      int64
	Author  string
	Text    string
	Time    string
	HasText bool
	Image   bool
}

func ParseChatHistory added in v1.3.0

func ParseChatHistory(body []byte) ([]ChatLine, bool, error)

func ParseChatPage added in v1.3.0

func ParseChatPage(body []byte) ([]ChatLine, error)

type CurrencySum

type CurrencySum struct {
	Total     Sum
	Available Sum
}

type Game added in v1.4.0

type Game struct {
	ID   int64
	Name string
}

type Home

type Home struct {
	App      AppData
	Username string
	Badge    Sum
}

func ParseHome

func ParseHome(body []byte) (Home, error)

type MyOffer added in v1.4.0

type MyOffer struct {
	ID     int64
	Title  string
	Amount int64
	Price  Sum
	Active bool
}

func ParseMyOffers added in v1.4.0

func ParseMyOffers(body []byte) ([]MyOffer, error)

type Node added in v1.4.0

type Node struct {
	GameID int64
	ID     int64
	Name   string
	Chips  bool
}

type OfferBalance

type OfferBalance struct {
	RUB CurrencySum
	USD CurrencySum
	EUR CurrencySum
}

func ParseOfferBalance

func ParseOfferBalance(body []byte) (OfferBalance, error)

type OfferForm

type OfferForm struct {
	Fields   map[string]string
	Currency string
}

func ParseOfferForm

func ParseOfferForm(body []byte) (OfferForm, error)

type OrderData added in v1.3.0

type OrderData struct {
	ID          string
	Status      string
	Minor       int64
	Currency    string
	Quantity    int64
	BuyerID     int64
	BuyerName   string
	SellerID    int64
	SellerName  string
	NodeName    string
	NodeID      int64
	GameID      int64
	Description string
	Player      string
	Secrets     []string
	Review      *OrderReview
}

func ParseOrder added in v1.3.0

func ParseOrder(body []byte, orderID string) (OrderData, error)

type OrderReview added in v1.3.0

type OrderReview struct {
	Rating int
	Text   string
	Reply  string
	Hidden bool
}

type PublicOffer added in v1.4.0

type PublicOffer struct {
	ID     int64
	Seller string
	Online bool
	Auto   bool
	Title  string
	Traits map[string]string
	Amount int64
	Price  Sum
}

func ParseCatalog added in v1.4.0

func ParseCatalog(body []byte) ([]PublicOffer, error)

type RaiseBody

type RaiseBody struct {
	Wait *int64
	URL  string
}

func ParseRaise

func ParseRaise(body []byte) (RaiseBody, error)

type Sent

type Sent struct {
	ID            int64
	Text          string
	ResponseError string
	HasNode       bool
	HasText       bool
	Accepted      bool
}

func ParseSent

func ParseSent(body []byte, chatID int64) (Sent, error)

type Sum

type Sum struct {
	Minor    int64
	Currency string
}

func ConfirmationPay added in v1.5.1

func ConfirmationPay(body []byte) (due, available Sum, err error)

func ParseDecimal

func ParseDecimal(raw, currency string) (Sum, error)

func ParseDisplay

func ParseDisplay(raw string) (Sum, error)

func ParseMajor added in v1.4.0

func ParseMajor(raw, currency string) (Sum, error)

type TradeOrder

type TradeOrder struct {
	ID       string
	User     string
	Status   string
	Price    Sum
	HasPrice bool
}

func ParseTrade

func ParseTrade(body []byte) ([]TradeOrder, string, error)

Jump to

Keyboard shortcuts

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