tui

package
v0.0.0-...-dc89538 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cli = Client{Hosts: hosts}
View Source
var Sigs chan os.Signal

Functions

func Run

func Run() (productSelected string, modelIndexSelected int)

func SetProxy

func SetProxy(server string, port string)

func UnSetProxy

func UnSetProxy()

Types

type Client

type Client struct {
	Hosts []string // 服务器地址s
	// contains filtered or unexported fields
}

func (*Client) CheckVersion

func (c *Client) CheckVersion(version string) (upUrl string)

func (*Client) GetAD

func (c *Client) GetAD() (ad string)

func (*Client) GetLic

func (c *Client) GetLic() (isOk bool, result string)

func (*Client) GetMyInfo

func (c *Client) GetMyInfo(deviceID string) (sCount, sPayCount, isPay, ticket, exp string)

func (*Client) GetPayUrl

func (c *Client) GetPayUrl() (payUrl, orderID string)

func (*Client) PayCheck

func (c *Client) PayCheck(orderID, deviceID string) (isPay bool)

func (*Client) SetProxy

func (c *Client) SetProxy(lang string)

type Tr

type Tr struct {
	i18n.Locale
}
var Trr *Tr

Jump to

Keyboard shortcuts

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