Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ArcStorageAPI Arc Storage Data API ArcStorageAPI = "Arc Storage Data" // DataBaseName arc DataBaseName = "arc" )
View Source
const (
// Success -
Success = 0
)
View Source
const (
// TypeArc "Arc"
TypeArc = "Arc"
)
Variables ¶
View Source
var ArcStorageVersion = "appversion"
ArcStorageVersion add to file suffix name
Functions ¶
func ByteToUInt64 ¶
ByteToUInt64 convert sensor []byte to uint64.
Types ¶
type ArcStorage ¶
type ArcStorage struct {
// contains filtered or unexported fields
}
ArcStorage arc storage struct
func NewArcStorage ¶
func NewArcStorage(config *config.ArcConfig, logger logging.ILogger, gossipKVCache *microComponent.GossipKVCacheComponent, k kafka.Handler) (*ArcStorage, error)
NewArcStorage Instantiation object
func (*ArcStorage) SetupWeb ¶
func (arc *ArcStorage) SetupWeb(root echoswagger.ApiRoot, base, selfServiceName string)
SetupWeb Set interface
func (*ArcStorage) Start ¶
func (arc *ArcStorage) Start(stop chan struct{})
Start Connect kafka Store & taoClient
type SensorIDResponse ¶
type SensorIDResponse struct { Code int `json:"code,omitempty"` Msg string `json:"msg,omitempty"` Data []string `json:"data,omitempty"` }
SensorIDResponse is the response for getting sensor ids
type SensorItem ¶
type SensorItem struct { SensorID string `json:"sensorid,omitempty"` DataType string `json:"data_type,omitempty"` Query SensorQuery `json:"query,omitempty"` TimeFrom int64 `json:"time_from,omitempty"` TimeTo int64 `json:"time_to,omitempty"` TimeDuration int64 `json:"time_duration,omitempty"` }
SensorItem response sensor information
type SensorQuery ¶
type SensorQuery struct { URL string `json:"url,omitempty"` Scheme string `json:"scheme,omitempty"` Domain string `json:"domain,omitempty"` Port int `json:"port,omitempty"` FullPath string `json:"full_path,omitempty"` Path string `json:"path,omitempty"` SensorID string `json:"sensorid,omitempty"` Type string `json:"type,omitempty"` TimeFrom int64 `json:"time_from,omitempty"` TimeTo int64 `json:"time_to,omitempty"` }
SensorQuery query details
Click to show internal directories.
Click to hide internal directories.