responses

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckMyIPResponse

type CheckMyIPResponse struct {
	IP string `json:"ip"`
}

type InitAuthResponse

type InitAuthResponse struct {
	Link  string `json:"link"`
	Token string `json:"token"`
}

type InitOwnerTgResponse

type InitOwnerTgResponse struct {
	Link string `json:"link"`
}

type OwnerDataResponse

type OwnerDataResponse struct {
	Telegram *string         `json:"telegram"`
	Balance  decimal.Decimal `json:"balance"`
}

type RatesResponse

type RatesResponse struct {
	Source string          `json:"source"`
	From   string          `json:"from"`
	To     string          `json:"to"`
	Value  decimal.Decimal `json:"value"`
	Date   time.Time       `json:"date"`
}

type Result

type Result[T InitAuthResponse | OwnerDataResponse | InitOwnerTgResponse | CheckMyIPResponse | []RatesResponse] struct {
	Data    T      `json:"data"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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