Documentation
¶
Index ¶
- func GetRestConsumerServiceConfigMap() map[string]*RestServiceConfig
- func GetRestProviderServiceConfigMap() map[string]*RestServiceConfig
- func SetRestConsumerServiceConfigMap(configMap map[string]*RestServiceConfig)
- func SetRestProviderServiceConfigMap(configMap map[string]*RestServiceConfig)
- type RestConsumerConfig
- type RestMethodConfig
- type RestProviderConfig
- type RestServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRestConsumerServiceConfigMap ¶
func GetRestConsumerServiceConfigMap() map[string]*RestServiceConfig
GetRestConsumerServiceConfigMap ...
func GetRestProviderServiceConfigMap ¶
func GetRestProviderServiceConfigMap() map[string]*RestServiceConfig
GetRestProviderServiceConfigMap ...
func SetRestConsumerServiceConfigMap ¶
func SetRestConsumerServiceConfigMap(configMap map[string]*RestServiceConfig)
SetRestConsumerServiceConfigMap ...
func SetRestProviderServiceConfigMap ¶
func SetRestProviderServiceConfigMap(configMap map[string]*RestServiceConfig)
SetRestProviderServiceConfigMap ...
Types ¶
type RestConsumerConfig ¶
type RestConsumerConfig struct {
Client string `default:"resty" yaml:"rest_client" json:"rest_client,omitempty" property:"rest_client"`
Produces string `default:"application/json" yaml:"rest_produces" json:"rest_produces,omitempty" property:"rest_produces"`
Consumes string `default:"application/json" yaml:"rest_consumes" json:"rest_consumes,omitempty" property:"rest_consumes"`
RestServiceConfigsMap map[string]*RestServiceConfig `yaml:"references" json:"references,omitempty" property:"references"`
}
RestConsumerConfig ...
func (*RestConsumerConfig) UnmarshalYAML ¶
func (c *RestConsumerConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type RestMethodConfig ¶
type RestMethodConfig struct {
InterfaceName string
MethodName string `required:"true" yaml:"name" json:"name,omitempty" property:"name"`
Url string `yaml:"url" json:"url,omitempty" property:"url"`
Path string `yaml:"rest_path" json:"rest_path,omitempty" property:"rest_path"`
Produces string `yaml:"rest_produces" json:"rest_produces,omitempty" property:"rest_produces"`
Consumes string `yaml:"rest_consumes" json:"rest_consumes,omitempty" property:"rest_consumes"`
MethodType string `yaml:"rest_method" json:"rest_method,omitempty" property:"rest_method"`
PathParams string `yaml:"rest_path_params" json:"rest_path_params,omitempty" property:"rest_path_params"`
PathParamsMap map[int]string
QueryParams string `yaml:"rest_query_params" json:"rest_query_params,omitempty" property:"rest_query_params"`
QueryParamsMap map[int]string
Body int `default:"-1" yaml:"rest_body" json:"rest_body,omitempty" property:"rest_body"`
Headers string `yaml:"rest_headers" json:"rest_headers,omitempty" property:"rest_headers"`
HeadersMap map[int]string
}
RestMethodConfig ...
func (*RestMethodConfig) UnmarshalYAML ¶
func (c *RestMethodConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type RestProviderConfig ¶
type RestProviderConfig struct {
Server string `default:"go-restful" yaml:"rest_server" json:"rest_server,omitempty" property:"rest_server"`
Produces string `default:"*/*" yaml:"rest_produces" json:"rest_produces,omitempty" property:"rest_produces"`
Consumes string `default:"*/*" yaml:"rest_consumes" json:"rest_consumes,omitempty" property:"rest_consumes"`
RestServiceConfigsMap map[string]*RestServiceConfig `yaml:"services" json:"services,omitempty" property:"services"`
}
RestProviderConfig ...
func (*RestProviderConfig) UnmarshalYAML ¶
func (c *RestProviderConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
type RestServiceConfig ¶
type RestServiceConfig struct {
InterfaceName string `required:"true" yaml:"interface" json:"interface,omitempty" property:"interface"`
Url string `yaml:"url" json:"url,omitempty" property:"url"`
Path string `yaml:"rest_path" json:"rest_path,omitempty" property:"rest_path"`
Produces string `yaml:"rest_produces" json:"rest_produces,omitempty" property:"rest_produces"`
Consumes string `yaml:"rest_consumes" json:"rest_consumes,omitempty" property:"rest_consumes"`
MethodType string `yaml:"rest_method" json:"rest_method,omitempty" property:"rest_method"`
Client string `yaml:"rest_client" json:"rest_client,omitempty" property:"rest_client"`
Server string `yaml:"rest_server" json:"rest_server,omitempty" property:"rest_server"`
RestMethodConfigs []*RestMethodConfig `yaml:"methods" json:"methods,omitempty" property:"methods"`
RestMethodConfigsMap map[string]*RestMethodConfig
}
RestServiceConfig ...
func GetRestConsumerServiceConfig ¶
func GetRestConsumerServiceConfig(path string) *RestServiceConfig
GetRestConsumerServiceConfig ...
func GetRestProviderServiceConfig ¶
func GetRestProviderServiceConfig(path string) *RestServiceConfig
GetRestProviderServiceConfig ...
func (*RestServiceConfig) UnmarshalYAML ¶
func (c *RestServiceConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML ...
Click to show internal directories.
Click to hide internal directories.