Versions in this module Expand all Collapse all v1 v1.4.3 Jul 8, 2023 Changes in this version + func APIRequest(ctx context.Context, request Request) + func MarshalJSON(request Request, secret string) ([]byte, error) + type EncryptedRequest struct + Encrypted bool + EncryptedData json.RawMessage + Type string + type MockRequest struct + func NewMockRequest(t interface{ ... }) *MockRequest + func (_m *MockRequest) RequestData() json.RawMessage + func (_m *MockRequest) RequestType() RequestType + func (_m *MockRequest) ResponseHandler(_a0 bytes.Buffer) + type Request interface + RequestData func() json.RawMessage + RequestType func() RequestType + ResponseHandler func(bytes.Buffer) + type RequestType int + const RequestTypeEncrypted + const RequestTypeGetConfig + const RequestTypeRegisterSensor + const RequestTypeUpdateLocation + const RequestTypeUpdateSensorStates + func (i RequestType) String() string + type Response struct + Success bool + type UnencryptedRequest struct + Data json.RawMessage + Type string