utils

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersion added in v1.3.19

func CompareVersion(v1, v2 string) int

CompareVersion compare versions. if v1<v2, return -1; if v1>v2, return 1; if v1=v2, return 0, Only consider release version

func NewHTTPClientViaUDS

func NewHTTPClientViaUDS(sock string, timeout time.Duration) *http.Client

NewHTTPClientViaUDS return a http.client based on http

func URLViaUDS

func URLViaUDS(path string) string

Types

type AgentVersion added in v1.3.19

type AgentVersion struct {
	Version string `json:"version"`
}

func GetAgentVersion added in v1.3.19

func GetAgentVersion() AgentVersion

Jump to

Keyboard shortcuts

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