location

package
v1.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ReportHandlerForLocation = "locationReport"
)

Functions

This section is empty.

Types

type ReportHandler

type ReportHandler struct {
	*plugin.PluginBase
	// contains filtered or unexported fields
}

func (*ReportHandler) Destroy

func (h *ReportHandler) Destroy() error

Destroy 销毁插件,可用于释放资源

func (*ReportHandler) HandleRequest

func (h *ReportHandler) HandleRequest(req *model.ReportClientRequest)

HandleRequest Handling Request body for Report

func (*ReportHandler) HandleResponse

func (h *ReportHandler) HandleResponse(resp *model.ReportClientResponse, err error)

HandleResponse Handling Report Responsive Body

func (*ReportHandler) Init

func (h *ReportHandler) Init(ctx *plugin.InitContext) error

Init 初始化插件

func (*ReportHandler) InitLocal

func (h *ReportHandler) InitLocal(client *namingpb.Client)

func (*ReportHandler) Name

func (h *ReportHandler) Name() string

Name 插件名,一个类型下插件名唯一

func (*ReportHandler) Type

func (h *ReportHandler) Type() common.Type

Type 插件类型

Jump to

Keyboard shortcuts

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