Documentation
¶
Index ¶
- Constants
- func DeDupUpdates(ctx context.Context, updateArr []*sstore.ScreenUpdateType) ([]*sstore.ScreenUpdateType, error)
- func DoSyncWebUpdate(webUpdate *WebShareUpdateType) error
- func DoWebUpdates(webUpdates []*WebShareUpdateType) error
- func GetEndpoint() string
- func GetUpdateWriterNumFailures() int
- func GetUpdateWriterRunning() bool
- func GetWSEndpoint() string
- func ResetUpdateWriterNumFailures()
- func SendNoTelemetryUpdate(ctx context.Context, noTelemetryVal bool) error
- func SendTelemetry(ctx context.Context, force bool) error
- func StartUpdateWriter()
- type AuthInfo
- type NoTelemetryInputType
- type TelemetryInputType
- type WebShareCmdType
- type WebShareLineType
- type WebSharePtyData
- type WebShareRemote
- type WebShareScreenType
- type WebShareUpdateResponseType
- type WebShareUpdateType
Constants ¶
View Source
const APIVersion = 1
View Source
const EstimatedSizePadding = 100
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 PCloudDefaultTimeout = 5 * time.Second
View Source
const PCloudEndpoint = "https://api.waveterm.dev/central"
View Source
const PCloudEndpointVarName = "PCLOUD_ENDPOINT"
View Source
const PCloudWSEndpoint = "wss://wsapi.waveterm.dev/"
View Source
const PCloudWSEndpointVarName = "PCLOUD_WS_ENDPOINT"
View Source
const TelemetryUrl = "/telemetry"
Variables ¶
This section is empty.
Functions ¶
func DeDupUpdates ¶
func DeDupUpdates(ctx context.Context, updateArr []*sstore.ScreenUpdateType) ([]*sstore.ScreenUpdateType, error)
func DoSyncWebUpdate ¶
func DoSyncWebUpdate(webUpdate *WebShareUpdateType) error
func DoWebUpdates ¶
func DoWebUpdates(webUpdates []*WebShareUpdateType) error
func GetEndpoint ¶
func GetEndpoint() string
func GetUpdateWriterNumFailures ¶
func GetUpdateWriterNumFailures() int
func GetUpdateWriterRunning ¶
func GetUpdateWriterRunning() bool
func GetWSEndpoint ¶
func GetWSEndpoint() string
func ResetUpdateWriterNumFailures ¶
func ResetUpdateWriterNumFailures()
func SendNoTelemetryUpdate ¶
func StartUpdateWriter ¶
func StartUpdateWriter()
Types ¶
type NoTelemetryInputType ¶
type TelemetryInputType ¶
type WebShareCmdType ¶
type WebShareCmdType struct {}
type WebShareLineType ¶
type WebShareLineType struct {}
type WebSharePtyData ¶
type WebSharePtyData struct {}
type WebShareRemote ¶
type WebShareRemote struct {}
type WebShareScreenType ¶
type WebShareScreenType struct {}
type WebShareUpdateResponseType ¶
type WebShareUpdateResponseType struct {}
func (*WebShareUpdateResponseType) GetSimpleKey ¶
func (ur *WebShareUpdateResponseType) GetSimpleKey() int64
type WebShareUpdateType ¶
type WebShareUpdateType struct {}
func MakeScreenDelUpdate ¶
func MakeScreenDelUpdate(screen *sstore.ScreenType, screenId string) *WebShareUpdateType
func MakeScreenNewUpdate ¶
func MakeScreenNewUpdate(screen *sstore.ScreenType, webShareOpts sstore.ScreenWebShareOpts) *WebShareUpdateType
func (*WebShareUpdateType) GetEstimatedSize ¶
func (update *WebShareUpdateType) GetEstimatedSize() int
func (*WebShareUpdateType) String ¶
func (update *WebShareUpdateType) String() string
Click to show internal directories.
Click to hide internal directories.