Documentation
¶
Index ¶
- Constants
- Variables
- func Check(cfg *Config, workers map[eosc.RequireId]eosc.IWorker) error
- func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func NewFactory() eosc.IExtenderDriverFactory
- func Register(register eosc.IExtenderDriverRegister)
- type Config
Constants ¶
View Source
const (
Name = "grpc_to_http"
)
Variables ¶
View Source
var (
ErrorTimeoutComplete = errors.New("complete timeout")
)
Functions ¶
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参数"`
}
Click to show internal directories.
Click to hide internal directories.