Versions in this module Expand all Collapse all v0 v0.1.3 Aug 2, 2022 v0.1.2 Jul 29, 2022 Changes in this version + type ConfigAPI interface + GetConfigFile func(namespace, fileGroup, fileName string) (ConfigFile, error) + func NewConfigAPI() (ConfigAPI, error) + func NewConfigAPIByConfig(cfg config.Configuration) (ConfigAPI, error) + func NewConfigAPIByContext(context api.SDKContext) ConfigAPI + func NewConfigAPIByFile(path string) (ConfigAPI, error) + type ConfigFile model.ConfigFile + type ConsumerAPI interface + Destroy func() + GetAllInstances func(req *GetAllInstancesRequest) (*model.InstancesResponse, error) + GetInstances func(req *GetInstancesRequest) (*model.InstancesResponse, error) + GetOneInstance func(req *GetOneInstanceRequest) (*model.OneInstanceResponse, error) + GetRouteRule func(req *GetServiceRuleRequest) (*model.ServiceRuleResponse, error) + GetServicesByBusiness func(req *GetServicesRequest) (*model.ServicesResponse, error) + InitCalleeService func(req *InitCalleeServiceRequest) error + UpdateServiceCallResult func(req *ServiceCallResult) error + WatchService func(req *WatchServiceRequest) (*model.WatchServiceResponse, error) + func NewConsumerAPI() (ConsumerAPI, error) + func NewConsumerAPIByAddress(address ...string) (ConsumerAPI, error) + func NewConsumerAPIByConfig(cfg config.Configuration) (ConsumerAPI, error) + func NewConsumerAPIByContext(context api.SDKContext) ConsumerAPI + func NewConsumerAPIByFile(path string) (ConsumerAPI, error) + type GetAllInstancesRequest api.GetAllInstancesRequest + type GetInstancesRequest api.GetInstancesRequest + type GetOneInstanceRequest api.GetOneInstanceRequest + type GetServiceRuleRequest api.GetServiceRuleRequest + type GetServicesRequest api.GetServicesRequest + type InitCalleeServiceRequest api.InitCalleeServiceRequest + type InstanceDeRegisterRequest api.InstanceDeRegisterRequest + type InstanceHeartbeatRequest api.InstanceHeartbeatRequest + type InstanceRegisterRequest api.InstanceRegisterRequest + type LimitAPI interface + Destroy func() + GetQuota func(request QuotaRequest) (QuotaFuture, error) + func NewLimitAPI() (LimitAPI, error) + func NewLimitAPIByAddress(address ...string) (LimitAPI, error) + func NewLimitAPIByConfig(cfg config.Configuration) (LimitAPI, error) + func NewLimitAPIByContext(context api.SDKContext) LimitAPI + func NewLimitAPIByFile(path string) (LimitAPI, error) + type ProviderAPI interface + Deregister func(instance *InstanceDeRegisterRequest) error + Destroy func() + Heartbeat func(instance *InstanceHeartbeatRequest) error + Register func(instance *InstanceRegisterRequest) (*model.InstanceRegisterResponse, error) + func NewProviderAPI() (ProviderAPI, error) + func NewProviderAPIByAddress(address ...string) (ProviderAPI, error) + func NewProviderAPIByConfig(cfg config.Configuration) (ProviderAPI, error) + func NewProviderAPIByContext(context api.SDKContext) ProviderAPI + func NewProviderAPIByFile(path string) (ProviderAPI, error) + type QuotaFuture api.QuotaFuture + type QuotaRequest api.QuotaRequest + func NewQuotaRequest() QuotaRequest + type ServiceCallResult api.ServiceCallResult + type WatchServiceRequest api.WatchServiceRequest