grpc_proxy_rewrite

package
v0.12.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "grpc-proxy_write"
)

Variables

This section is empty.

Functions

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Service   string            `json:"service" label:"服务名称"`
	Method    string            `json:"method" label:"方法名称"`
	Authority string            `json:"authority" label:"虚拟主机域名(Authority)"`
	Headers   map[string]string `json:"headers" label:"请求头部"`
}

type ProxyRewrite

type ProxyRewrite struct {
	drivers.WorkerBase
	// contains filtered or unexported fields
}

func (*ProxyRewrite) CheckSkill

func (p *ProxyRewrite) CheckSkill(skill string) bool

func (*ProxyRewrite) Destroy

func (p *ProxyRewrite) Destroy()

func (*ProxyRewrite) DoFilter

func (p *ProxyRewrite) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err error)

func (*ProxyRewrite) DoGrpcFilter

func (p *ProxyRewrite) DoGrpcFilter(ctx grpc_context.IGrpcContext, next eocontext.IChain) (err error)

func (*ProxyRewrite) Reset

func (p *ProxyRewrite) Reset(v interface{}, workers map[eosc.RequireId]eosc.IWorker) error

func (*ProxyRewrite) Start

func (p *ProxyRewrite) Start() error

func (*ProxyRewrite) Stop

func (p *ProxyRewrite) Stop() error

Jump to

Keyboard shortcuts

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