wcloud

package
v0.8.12-beta.5 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = 1
View Source
const MaxPtyUpdateSize = (128 * 1024)
View Source
const MaxUpdatePayloadSize = 1 * (1024 * 1024)

setting 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

View Source
const MaxUpdateWriterErrors = 3
View Source
const MaxUpdatesPerReq = 10
View Source
const MaxUpdatesToDeDup = 1000
View Source
const NoTelemetryUrl = "/no-telemetry"
View Source
const TelemetryUrl = "/telemetry"
View Source
const WCloudDefaultTimeout = 5 * time.Second
View Source
const WCloudEndpoint = "https://api.waveterm.dev/central"
View Source
const WCloudEndpointVarName = "WCLOUD_ENDPOINT"
View Source
const WCloudWSEndpoint = "wss://wsapi.waveterm.dev/"
View Source
const WCloudWSEndpointVarName = "WCLOUD_WS_ENDPOINT"
View Source
const WCloudWebShareUpdateTimeout = 15 * time.Second
View Source
const WebShareUpdateUrl = "/auth/web-share-update"

Variables

This section is empty.

Functions

func GetEndpoint

func GetEndpoint() string

func GetWSEndpoint

func GetWSEndpoint() string

func SendNoTelemetryUpdate

func SendNoTelemetryUpdate(ctx context.Context, clientId string, noTelemetryVal bool) error

func SendTelemetry

func SendTelemetry(ctx context.Context, clientId string) error

Types

type NoTelemetryInputType

type NoTelemetryInputType struct {
	ClientId string `json:"clientid"`
	Value    bool   `json:"value"`
}

type TelemetryInputType

type TelemetryInputType struct {
	UserId            string                    `json:"userid"`
	ClientId          string                    `json:"clientid"`
	AppType           string                    `json:"apptype,omitempty"`
	AutoUpdateEnabled bool                      `json:"autoupdateenabled,omitempty"`
	AutoUpdateChannel string                    `json:"autoupdatechannel,omitempty"`
	CurDay            string                    `json:"curday"`
	Activity          []*telemetry.ActivityType `json:"activity"`
}

Jump to

Keyboard shortcuts

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