{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package wcloud\n\n## Constants\n\n```go\nconst APIVersion = 1\n```\n\n```go\nconst MaxPtyUpdateSize = (128 * 1024)\n```\n\n```go\nconst MaxUpdatePayloadSize = 1 * (1024 * 1024)\n```\nsetting to 1M to be safe (max is 6M for API-GW + Lambda, but there is base64 encoding and upload time) we allow one extra update past this estimated size\n\n```go\nconst MaxUpdateWriterErrors = 3\n```\n\n```go\nconst MaxUpdatesPerReq = 10\n```\n\n```go\nconst MaxUpdatesToDeDup = 1000\n```\n\n```go\nconst NoTelemetryUrl = \"/no-telemetry\"\n```\n\n```go\nconst PingUrl = \"/ping\"\n```\n\n```go\nconst TEventsBatchSize = 200\n```\n\n```go\nconst TEventsMaxBatches = 10\n```\n\n```go\nconst TEventsUrl = \"/tevents\"\n```\n\n```go\nconst TelemetryUrl = \"/telemetry\"\n```\n\n```go\nconst WCloudDefaultTimeout = 5 * time.Second\n```\n\n```go\nconst WCloudEndpoint = \"https://api.waveterm.dev/central\"\n```\n\n```go\nconst WCloudEndpointVarName = \"WCLOUD_ENDPOINT\"\n```\n\n```go\nconst WCloudPingEndpoint = \"https://ping.waveterm.dev/central\"\n```\n\n```go\nconst WCloudPingEndpointVarName = \"WCLOUD_PING_ENDPOINT\"\n```\n\n```go\nconst WCloudWebShareUpdateTimeout = 15 * time.Second\n```\n\n```go\nconst WebShareUpdateUrl = \"/auth/web-share-update\"\n```\n\n## Variables\n\n```go\nvar WCloudEndpoint_VarCache string\n```\n\n```go\nvar WCloudPingEndpoint_VarCache string\n```\n\n## Functions\n\n```go\nfunc CacheAndRemoveEnvVars() error\n```\n\n```go\nfunc GetEndpoint() string\n```\n\n```go\nfunc GetPingEndpoint() string\n```\n\n```go\nfunc SendAllTelemetry(clientId string) error\n```\n\n```go\nfunc SendDiagnosticPing(ctx context.Context, clientId string, usageTelemetry bool) error\n```\n\n```go\nfunc SendNoTelemetryUpdate(ctx context.Context, clientId string, noTelemetryVal bool) error\n```\n\n## Types\n\n```go\ntype NoTelemetryInputType struct {\n\tClientId string `json:\"clientid\"`\n\tValue    bool   `json:\"value\"`\n}\n```\n\n```go\ntype PingInputType struct {\n\tClientId       string `json:\"clientid\"`\n\tArch           string `json:\"arch\"`\n\tVersion        string `json:\"version\"`\n\tLocalDate      string `json:\"localdate\"`\n\tUsageTelemetry bool   `json:\"usagetelemetry\"`\n}\n```\n\n```go\ntype TEventsInputType struct {\n\tClientId string                  `json:\"clientid\"`\n\tEvents   []*telemetrydata.TEvent `json:\"events\"`\n}\n```\n\n```go\ntype TelemetryInputType struct {\n\tUserId            string                    `json:\"userid\"`\n\tClientId          string                    `json:\"clientid\"`\n\tAppType           string                    `json:\"apptype,omitempty\"`\n\tAutoUpdateEnabled bool                      `json:\"autoupdateenabled,omitempty\"`\n\tAutoUpdateChannel string                    `json:\"autoupdatechannel,omitempty\"`\n\tCurDay            string                    `json:\"curday\"`\n\tActivity          []*telemetry.ActivityType `json:\"activity\"`\n}\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/wcloud","name":"wcloud","synopsis":"","isRedistributable":true}
