Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RecordTypes = struct { Battery, Temperature, Humidity, PowerOn, Load RecordType }{ Battery: "Battery", Temperature: "Temperature", Humidity: "Humidity", PowerOn: "PowerOn", Load: "Load", }
Functions ¶
func HandleFunc ¶
func HandleFunc(w http.ResponseWriter, r *http.Request)
Types ¶
type AdStructure ¶
type BigQueryRecorder ¶
type BigQueryRecorder struct {
// contains filtered or unexported fields
}
func NewBigQueryRecorder ¶
func NewBigQueryRecorder(ctx context.Context, projectID string) (*BigQueryRecorder, error)
func (*BigQueryRecorder) Close ¶
func (r *BigQueryRecorder) Close()
type DevicesSchema ¶
type DevicesSchema struct { StatusCode int `json:"statusCode"` Body struct { DeviceList []struct { DeviceId string `json:"deviceId"` DeviceName string `json:"deviceName"` DeviceType string `json:"deviceType"` EnableCloudService bool `json:"enableCloudService"` HubDeviceId string `json:"hubDeviceId"` } `json:"deviceList"` InfraredRemoteList []struct { DeviceId string `json:"deviceId"` DeviceName string `json:"deviceName"` RemoteType string `json:"remoteType"` HubDeviceId string `json:"hubDeviceId"` } `json:"infraredRemoteList"` } `json:"body"` Message string `json:"message"` }
type RecordType ¶
type RecordType string
type StdoutRecorder ¶
type StdoutRecorder struct{}
func NewStdoutRecorder ¶
func NewStdoutRecorder() *StdoutRecorder
func (*StdoutRecorder) Close ¶
func (r *StdoutRecorder) Close()
Click to show internal directories.
Click to hide internal directories.