Versions in this module Expand all Collapse all v1 v1.0.0 May 29, 2019 Changes in this version + func GetConsumerService(name string) common.RPCService + func GetProviderService(name string) common.RPCService + func Load() (map[string]*ReferenceConfig, map[string]*ServiceConfig) + func SetConsumerConfig(c ConsumerConfig) + func SetConsumerService(service common.RPCService) + func SetProviderService(service common.RPCService) + type ApplicationConfig struct + Environment string + Module string + Name string + Organization string + Owner string + Version string + type ConfigRegistry string + type ConsumerConfig struct + ApplicationConfig ApplicationConfig + Check *bool + ConnectTimeout time.Duration + Connect_Timeout string + Filter string + ProtocolConf interface{} + ProxyFactory string + References []ReferenceConfig + Registries []RegistryConfig + RequestTimeout time.Duration + Request_Timeout string + func GetConsumerConfig() ConsumerConfig + type MockService struct + func (*MockService) GetUser(ctx context.Context, itf []interface{}, str *struct{}) error + func (*MockService) GetUser1(ctx context.Context, itf []interface{}, str *struct{}) error + func (*MockService) Service() string + func (*MockService) Version() string + type ProtocolConfig struct + ContextPath string + Ip string + Name string + Port string + type ProviderConfig struct + ApplicationConfig ApplicationConfig + Filter string + ProtocolConf interface{} + Protocols []ProtocolConfig + ProxyFactory string + Registries []RegistryConfig + Services []ServiceConfig + func GetProviderConfig() ProviderConfig + type ReferenceConfig struct + Check *bool + Cluster string + Filter string + Group string + InterfaceName string + Loadbalance string + Methods []struct{ ... } + Protocol string + Registries []ConfigRegistry + Retries int64 + Url string + Version string + func NewReferenceConfig(ctx context.Context) *ReferenceConfig + func (refconfig *ReferenceConfig) GetRPCService() common.RPCService + func (refconfig *ReferenceConfig) Implement(v common.RPCService) + func (refconfig *ReferenceConfig) Refer() + func (refconfig *ReferenceConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type ReferenceConfigTmp struct + Registries []RegistryConfig + Service string + URLs []map[string]string + type RegistryConfig struct + Address string + Group string + Id string + Password string + TimeoutStr string + Type string + Username string + type ServiceConfig struct + Cluster string + Filter string + Group string + InterfaceName string + Loadbalance string + Methods []struct{ ... } + Protocol string + Registries []ConfigRegistry + Retries int64 + Version string + Warmup string + func NewServiceConfig() *ServiceConfig + func (srvconfig *ServiceConfig) Export() error + func (srvconfig *ServiceConfig) Implement(s common.RPCService)