utils

package
v0.15.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	URL_EXTERNAL_IP        = "http://cip.cc"
	URL_IP_LINE            = "<pre>IP"
	URL_SHIFU_TELEMETRY    = "https://telemetry.shifu.dev/shifu-telemetry/"
	URL_DEFAULT_PUBLIC_IP  = "0.0.0.0"
	TASK_RUN_DEMO_KIND     = "run_shifu_release"
	DEFAULT_SOURCE         = "default"
	HTTP_CONTENT_TYPE_JSON = "application/json"
)

Variables

View Source
var TelemetryIntervalInSecond int

Functions

func GetPublicIPAddr

func GetPublicIPAddr(url string) (string, error)

func SendUserMetrics

func SendUserMetrics(telemetry types.UserMetricsResponse) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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