Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const APIVersion + const EstimatedSizePadding + const MaxPtyUpdateSize + const MaxUpdatePayloadSize + const MaxUpdateWriterErrors + const MaxUpdatesPerReq + const MaxUpdatesToDeDup + const NoTelemetryUrl + const PCloudDefaultTimeout + const PCloudEndpoint + const PCloudEndpointVarName + const PCloudWSEndpoint + const PCloudWSEndpointVarName + const PCloudWebShareUpdateTimeout + const TelemetryUrl + const WebShareUpdateUrl + 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 struct + AuthKey string + ClientId string + UserId string + type NoTelemetryInputType struct + ClientId string + Value bool + type TelemetryInputType struct + Activity []*telemetry.ActivityType + ClientId string + CurDay string + DefaultShell string + UserId string + type WebShareCmdType struct + CmdPid int + CmdStr string + DoneTs int64 + DurationMs int + ExitCode int + FeState sstore.FeStateType + LineId string + RawCmdStr string + Remote *WebShareRemote + RemotePid int + RtnState bool + RtnStateStr string + Status string + TermOpts sstore.TermOpts + type WebShareLineType struct + ContentHeight int64 + LineId string + LineNum int64 + LineType string + Renderer string + Text string + Ts int64 + type WebSharePtyData struct + Data []byte + Eof bool + PtyPos int64 + type WebShareRemote struct + Alias string + CanonicalName string + HomeDir string + IsRoot bool + Name string + RemoteId string + type WebShareScreenType struct + ScreenId string + SelectedLine int + ShareName string + ViewKey string + type WebShareUpdateResponseType struct + Error string + Success bool + UpdateId int64 + func (ur *WebShareUpdateResponseType) GetSimpleKey() int64 + type WebShareUpdateType struct + BVal bool + Cmd *WebShareCmdType + IVal int64 + Line *WebShareLineType + LineId string + PtyData *WebSharePtyData + SVal string + Screen *WebShareScreenType + ScreenId string + TermOpts *sstore.TermOpts + UpdateId int64 + UpdateTs int64 + UpdateType string + func MakeScreenDelUpdate(screen *sstore.ScreenType, screenId string) *WebShareUpdateType + func MakeScreenNewUpdate(screen *sstore.ScreenType, webShareOpts sstore.ScreenWebShareOpts) *WebShareUpdateType + func (update *WebShareUpdateType) GetEstimatedSize() int + func (update *WebShareUpdateType) String() string