types

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReqTypeHeartRate = iota
	ReqTypeBattLevel
	ReqTypeFwVersion
	ReqTypeFwUpgrade
	ReqTypeBtAddress
	ReqTypeNotify
	ReqTypeSetTime
	ReqTypeWatchHeartRate
	ReqTypeWatchBattLevel
)
View Source
const (
	UpgradeTypeArchive = iota
	UpgradeTypeFiles
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DFUProgress added in v0.0.3

type DFUProgress struct {
	Received int64 `mapstructure:"recvd"`
	Total    int64 `mapstructure:"total"`
}

type ReqDataFwUpgrade

type ReqDataFwUpgrade struct {
	Type  int
	Files []string
}

type ReqDataNotify

type ReqDataNotify struct {
	Title string
	Body  string
}

type Request

type Request struct {
	Type int         `json:"type"`
	Data interface{} `json:"data,omitempty"`
}

type Response

type Response struct {
	Value   interface{} `json:"value,omitempty"`
	Message string      `json:"msg,omitempty"`
	Error   bool        `json:"error"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL