service

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 19 Imported by: 0

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

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

func NewService(ctx context.Context, engine *backbone.Engine) *Service

NewService creates a new Service object.

func (*Service) BatchCreateDevice

func (s *Service) BatchCreateDevice(req *restful.Request, resp *restful.Response)

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

func (s *Service) CreateDevice(req *restful.Request, resp *restful.Response)

CreateDevice create device

func (*Service) CreateProperty

func (s *Service) CreateProperty(req *restful.Request, resp *restful.Response)

CreateProperty create net property

func (*Service) DeleteDevice

func (s *Service) DeleteDevice(req *restful.Request, resp *restful.Response)

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

func (s *Service) SearchDevice(req *restful.Request, resp *restful.Response)

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) SetDB

func (s *Service) SetDB(db dal.RDB)

SetDB setups database.

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

func (s *Service) UpdateDevice(req *restful.Request, resp *restful.Response)

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.

Jump to

Keyboard shortcuts

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