config

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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