tdversion

package
v3.7.8 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinimumVersion = version.Must(version.NewVersion("3.3.6.0"))

Functions

func CheckVersionCompatibility

func CheckVersionCompatibility(ver string) error

func ParseVersion

func ParseVersion(v string) (*version.Version, error)

func WSCheckVersion

func WSCheckVersion(conn WebSocketConn) error

Types

type UnknownVersionError

type UnknownVersionError struct {
	Version string
}

func (*UnknownVersionError) Error

func (e *UnknownVersionError) Error() string

type VersionMismatchError

type VersionMismatchError struct {
	CurrentVersion string
	MinimumVersion string
}

func (*VersionMismatchError) Error

func (e *VersionMismatchError) Error() string

type VersionResp

type VersionResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Action  string `json:"action"`
	Timing  int    `json:"timing"`
	Version string `json:"version"`
}

type WebSocketConn

type WebSocketConn interface {
	WriteMessage(messageType int, data []byte) error
	ReadMessage() (messageType int, p []byte, err error)
}

Jump to

Keyboard shortcuts

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