reporthandler

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	ReportHandler
	// contains filtered or unexported fields
}

Proxy proxy of ReportHandler

func (*Proxy) HandleRequest

func (p *Proxy) HandleRequest(req *model.ReportClientRequest)

HandleRequest Handling Request body for Report

func (*Proxy) HandleResponse

func (p *Proxy) HandleResponse(resp *model.ReportClientResponse, err error)

HandleResponse Handling Report Responsive Body

func (*Proxy) SetRealPlugin

func (p *Proxy) SetRealPlugin(plug plugin.Plugin, engine model.Engine)

SetRealPlugin 设置

type ReportHandler

type ReportHandler interface {
	plugin.Plugin

	InitLocal(*namingpb.Client)

	// HandleRequest Handling Request body for Report
	HandleRequest(req *model.ReportClientRequest)

	// HandleResponse Handling Report Responsive Body
	HandleResponse(resp *model.ReportClientResponse, err error)
}

ReportHandler Request body and responsive body during reportClient

type ReportHandlerChain

type ReportHandlerChain struct {
	Chain []ReportHandler
}

ReportHandlerChain report handler chain

Jump to

Keyboard shortcuts

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