parse

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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

This section is empty.

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 CurrencySum

type CurrencySum struct {
	Total     Sum
	Available Sum
}

type Home

type Home struct {
	App      AppData
	Username string
	Badge    Sum
}

func ParseHome

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

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 RaiseBody

type RaiseBody struct {
	Wait      *int64
	URL       string
	ErrorText string
	HasError  bool
}

func ParseRaise

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

type Sent

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

func ParseSent

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

type Sum

type Sum struct {
	Minor    int64
	Currency string
}

func ParseDecimal

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

func ParseDisplay

func ParseDisplay(raw string) (Sum, error)

type TradeOrder

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

func ParseTrade

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

Jump to

Keyboard shortcuts

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