Documentation ¶
Overview ¶
* Tencent is pleased to support the open source community by making 蓝鲸 available. * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- type Service
- func (s *Service) BatchCreateDevice(req *restful.Request, resp *restful.Response)
- func (s *Service) BatchCreateProperty(req *restful.Request, resp *restful.Response)
- func (s *Service) ConfirmReport(req *restful.Request, resp *restful.Response)
- func (s *Service) CreateDevice(req *restful.Request, resp *restful.Response)
- func (s *Service) CreateProperty(req *restful.Request, resp *restful.Response)
- func (s *Service) DeleteDevice(req *restful.Request, resp *restful.Response)
- func (s *Service) DeleteProperty(req *restful.Request, resp *restful.Response)
- func (s *Service) DiscoverNetDevice(req *restful.Request, resp *restful.Response)
- func (s *Service) Healthz(req *restful.Request, resp *restful.Response)
- func (s *Service) SearchCollector(req *restful.Request, resp *restful.Response)
- func (s *Service) SearchDevice(req *restful.Request, resp *restful.Response)
- func (s *Service) SearchHistory(req *restful.Request, resp *restful.Response)
- func (s *Service) SearchProperty(req *restful.Request, resp *restful.Response)
- func (s *Service) SearchReport(req *restful.Request, resp *restful.Response)
- func (s *Service) SearchReportSummary(req *restful.Request, resp *restful.Response)
- func (s *Service) SetCache(db *redis.Client)
- func (s *Service) SetDB(db dal.RDB)
- func (s *Service) SetDiscoverCli(db *redis.Client)
- func (s *Service) SetLogics(db dal.RDB, esb esbserver.EsbClientInterface)
- func (s *Service) SetNetCollectCli(db *redis.Client)
- func (s *Service) SetSnapCli(db *redis.Client)
- func (s *Service) UpdateCollector(req *restful.Request, resp *restful.Response)
- func (s *Service) UpdateDevice(req *restful.Request, resp *restful.Response)
- func (s *Service) UpdateProperty(req *restful.Request, resp *restful.Response)
- func (s *Service) WebService() *restful.Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service impls main logics as service for datacolection app.
func NewService ¶
NewService creates a new Service object.
func (*Service) BatchCreateDevice ¶
BatchCreateDevice batch create device
func (*Service) BatchCreateProperty ¶
func (s *Service) BatchCreateProperty(req *restful.Request, resp *restful.Response)
BatchCreateProperty batch create net property
func (*Service) ConfirmReport ¶
func (s *Service) ConfirmReport(req *restful.Request, resp *restful.Response)
func (*Service) CreateDevice ¶
CreateDevice create device
func (*Service) CreateProperty ¶
func (s *Service) CreateProperty(req *restful.Request, resp *restful.Response)
CreateProperty create net property
func (*Service) DeleteDevice ¶
DeleteDevice delete device
func (*Service) DeleteProperty ¶
func (s *Service) DeleteProperty(req *restful.Request, resp *restful.Response)
DeleteProperty delete net propertys
func (*Service) DiscoverNetDevice ¶
func (s *Service) DiscoverNetDevice(req *restful.Request, resp *restful.Response)
func (*Service) Healthz ¶
func (s *Service) Healthz(req *restful.Request, resp *restful.Response)
Healthz is a HTTP restful interface for health check.
func (*Service) SearchCollector ¶
func (s *Service) SearchCollector(req *restful.Request, resp *restful.Response)
func (*Service) SearchDevice ¶
SearchDevice search device
func (*Service) SearchHistory ¶
func (s *Service) SearchHistory(req *restful.Request, resp *restful.Response)
func (*Service) SearchProperty ¶
func (s *Service) SearchProperty(req *restful.Request, resp *restful.Response)
SearchProperty search net property
func (*Service) SearchReport ¶
func (s *Service) SearchReport(req *restful.Request, resp *restful.Response)
func (*Service) SearchReportSummary ¶
func (s *Service) SearchReportSummary(req *restful.Request, resp *restful.Response)
func (*Service) SetCache ¶
func (s *Service) SetCache(db *redis.Client)
SetCache setups cc main redis.
func (*Service) SetDiscoverCli ¶
func (s *Service) SetDiscoverCli(db *redis.Client)
SetDiscoverCli setups discover redis.
func (*Service) SetLogics ¶
func (s *Service) SetLogics(db dal.RDB, esb esbserver.EsbClientInterface)
SetLogics setups logics comm.
func (*Service) SetNetCollectCli ¶
func (s *Service) SetNetCollectCli(db *redis.Client)
SetNetCollectCli setups netcollect redis.
func (*Service) SetSnapCli ¶
func (s *Service) SetSnapCli(db *redis.Client)
SetSnapCli setups snap redis.
func (*Service) UpdateCollector ¶
func (s *Service) UpdateCollector(req *restful.Request, resp *restful.Response)
func (*Service) UpdateDevice ¶
UpdateDevice update device
func (*Service) UpdateProperty ¶
func (s *Service) UpdateProperty(req *restful.Request, resp *restful.Response)
UpdateProperty update net property
func (*Service) WebService ¶
func (s *Service) WebService() *restful.Container
WebService setups a new restful web service.