MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / checkEndpointVar

Function checkEndpointVar

pkg/wcloud/wcloud.go:64–72  ·  view source on GitHub ↗
(endpoint string, debugName string, varName string)

Source from the content-addressed store, hash-verified

62}
63
64func checkEndpointVar(endpoint string, debugName string, varName string) error {
65 if !wavebase.IsDevMode() {
66 return nil
67 }
68 if endpoint == "" || !strings.HasPrefix(endpoint, "https://") {
69 return fmt.Errorf("invalid %s, %s not set or invalid", debugName, varName)
70 }
71 return nil
72}
73
74func GetEndpoint() string {
75 if !wavebase.IsDevMode() {

Callers 1

CacheAndRemoveEnvVarsFunction · 0.85

Calls 1

IsDevModeFunction · 0.92

Tested by

no test coverage detected