tool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiGetVersionZH = majsoulJSURLPrefixZH + "version.json"
)

for normal requests

View Source
const (
	MajsoulOriginURL = "https://www.majsoul.com"
)

for WebSocket

Variables

This section is empty.

Functions

func Fetch

func Fetch(url string) (content []byte, err error)

func FetchLatestLiqiJson

func FetchLatestLiqiJson(filePath string) (err error)

func GetMajsoulVersion

func GetMajsoulVersion(apiGetVersionURL string) (version *majsoulVersion, err error)

func GetMajsoulWebSocketURL

func GetMajsoulWebSocketURL() (url string, err error)

获取雀魂 WebSocket 服务器地址

func LiqiJsonToProto3

func LiqiJsonToProto3(liqiJsonContent []byte, protoFilePath string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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