grpc_to_http

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "grpc_to_http"
)

Variables

View Source
var (
	ErrorTimeoutComplete = errors.New("complete timeout")
)

Functions

func Check

func Check(cfg *Config, workers map[eosc.RequireId]eosc.IWorker) error

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 {
	Path       string            `json:"path" label:"请求路径"`
	Method     string            `json:"method" label:"请求方式" enum:"POST,PUT,PATCH"`
	ProtobufID eosc.RequireId    `` /* 126-byte string literal not displayed */
	Headers    map[string]string `json:"headers" label:"额外头部"`
	Query      map[string]string `json:"query" label:"query参数"`
}

Jump to

Keyboard shortcuts

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