easemesh

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kind is the kind of EaseMesh plugin.
	Kind = "EaseMesh"
	// Name is the Name of EaseMesh plugin.
	Name = "EaseMesh"
)

Variables

This section is empty.

Functions

func DefaultSpec

func DefaultSpec() plugins.Spec

DefaultSpec returns the default spec of EaseMesh.

func New

func New(pluginSpec plugins.Spec) (plugins.Plugin, error)

New creates a EaseMesh plugin.

Types

type AgentConfig

type AgentConfig struct {
	Headers string `json:"easeagent.progress.forwarded.headers"`
}

AgentConfig is the config pushed to agent.

type AgentInfo

type AgentInfo struct {
	Type    string `json:"type"`
	Version string `json:"version"`
}

AgentInfo stores agent information.

type EaseMesh

type EaseMesh struct {
	// contains filtered or unexported fields
}

EaseMesh is the EaseMesh dedicated plugin.

func (*EaseMesh) Close

func (mesh *EaseMesh) Close() error

Close closes the EaseMesh plugin.

func (*EaseMesh) HandleAgentRequest

func (mesh *EaseMesh) HandleAgentRequest(w http.ResponseWriter, r *http.Request) bool

HandleAgentRequest handles the agent request.

func (*EaseMesh) Name

func (mesh *EaseMesh) Name() string

Name gets the EaseMesh name

func (*EaseMesh) WrapUserHandlerFunc

func (mesh *EaseMesh) WrapUserHandlerFunc(fn http.HandlerFunc) http.HandlerFunc

WrapUserHandlerFunc wraps the user handler function.

type Spec

type Spec struct {
	plugins.BaseSpec `json:",inline"`

	AgentType string `json:"agentType"`
}

Spec is the EaseMesh spec.

func (Spec) Validate

func (s Spec) Validate() error

Validate validates the EaseMesh spec.

Jump to

Keyboard shortcuts

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