 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- Variables
- func CacheAndRemoveEnvVars() error
- func GetEndpoint() string
- func GetWSEndpoint() string
- func SendAllTelemetry(ctx context.Context, clientId string) error
- func SendNoTelemetryUpdate(ctx context.Context, clientId string, noTelemetryVal bool) error
- type NoTelemetryInputType
- type TEventsInputType
- type TelemetryInputType
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 TEventsBatchSize = 200
    
      View Source
      
  
    const TEventsMaxBatches = 10
    
      View Source
      
  
    const TEventsUrl = "/tevents"
    
      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 ¶
      View Source
      
  
    var WCloudEndpoint_VarCache string
    
      View Source
      
  
var WCloudWSEndpoint_VarCache string
    Functions ¶
func CacheAndRemoveEnvVars ¶ added in v0.9.0
func CacheAndRemoveEnvVars() error
func GetEndpoint ¶
func GetEndpoint() string
func GetWSEndpoint ¶
func GetWSEndpoint() string
func SendAllTelemetry ¶ added in v0.11.1
Types ¶
type NoTelemetryInputType ¶
type TEventsInputType ¶ added in v0.11.1
type TEventsInputType struct {
	ClientId string                  `json:"clientid"`
	Events   []*telemetrydata.TEvent `json:"events"`
}
    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.