Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientAuthenticationRequest ¶
type ClientAuthenticationRequest struct {
RegistrationId int64 `json:"registrationId"`
RegHash types.ClientRegistrationHash `json:"regHash"`
}
Client Authenticate handling via /temelemtry/authenticate
func (*ClientAuthenticationRequest) String ¶
func (c *ClientAuthenticationRequest) String() string
type ClientAuthenticationResponse ¶
type ClientAuthenticationResponse = ClientRegistrationResponse
for now the /authenticate response is the same as the /register response
type ClientRegistrationRequest ¶
type ClientRegistrationRequest struct {
ClientRegistration types.ClientRegistration `json:"clientRegistration"`
}
ClientRegistrationRequest is the request payload body POST'd to the server
func (*ClientRegistrationRequest) String ¶
func (c *ClientRegistrationRequest) String() string
type ClientRegistrationResponse ¶
type ClientRegistrationResponse struct {
RegistrationId int64 `json:"registrationId"`
AuthToken string `json:"authToken"`
RegistrationDate string `json:"registrationDate"`
}
ClientRegistrationResponse is the response payload body from the server
func (*ClientRegistrationResponse) String ¶
func (c *ClientRegistrationResponse) String() string
type TelemetryReportRequest ¶
type TelemetryReportRequest struct {
telemetrylib.TelemetryReport
}
TelemetryReportRequest is the request payload body POST'd to the server
func (*TelemetryReportRequest) String ¶
func (t *TelemetryReportRequest) String() string
type TelemetryReportResponse ¶
type TelemetryReportResponse struct {
ProcessingId int64 `json:"processingId"`
ProcessedAt types.TelemetryTimeStamp `json:"processedAt"`
}
TelemetryReportResponse is the response payload body from the server
func NewTelemetryReportResponse ¶
func NewTelemetryReportResponse(procId int64, procAt types.TelemetryTimeStamp) *TelemetryReportResponse
func (*TelemetryReportResponse) ProcessingInfo ¶
func (t *TelemetryReportResponse) ProcessingInfo() string
func (*TelemetryReportResponse) String ¶
func (t *TelemetryReportResponse) String() string
Click to show internal directories.
Click to hide internal directories.