Documentation
¶
Index ¶
Constants ¶
View Source
const (
Name = "http_to_grpc"
)
Variables ¶
This section is empty.
Functions ¶
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)"`
Format string `json:"format" label:"数据格式" enum:"json"`
Reflect bool `json:"reflect" label:"反射"`
ProtobufID eosc.RequireId `` /* 154-byte string literal not displayed */
Headers map[string]string `json:"headers" label:"额外头部"`
}
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func NewResponse() *Response
Click to show internal directories.
Click to hide internal directories.