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"
Variables ¶
This section is empty.
Functions ¶
func GetEndpoint ¶
func GetEndpoint() string
func GetWSEndpoint ¶
func GetWSEndpoint() string
func SendNoTelemetryUpdate ¶
Types ¶
type NoTelemetryInputType ¶
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"` }
Click to show internal directories.
Click to hide internal directories.