Documentation
¶
Overview ¶
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransferURL2Api ¶
func TransferURL2Api(url *common.URL, clusterName string) []config.IntegrationRequest
TransferURL2Api transfer url and clusterName to IntegrationRequest
Types ¶
type ConsulRegistryLoad ¶
type ConsulRegistryLoad struct {
Address string
// contains filtered or unexported fields
}
ConsulRegistryLoad load dubbo apis from consul registry
func (*ConsulRegistryLoad) GetCluster ¶
func (crl *ConsulRegistryLoad) GetCluster() (string, error)
nolint
func (*ConsulRegistryLoad) LoadAllServices ¶
func (crl *ConsulRegistryLoad) LoadAllServices() ([]*common.URL, error)
LoadAllServices load all services from consul registry
type Loader ¶
type Loader interface {
// LoadAllServices load all services registered in registry
LoadAllServices() ([]*common.URL, error)
// GetCluster get the registry name
GetCluster() (string, error)
}
Loader this interface defined for load services from different kinds registry, such as nacos,consul,zookeeper.
type ZookeeperRegistryLoad ¶
type ZookeeperRegistryLoad struct {
Address string
// contains filtered or unexported fields
}
ZookeeperRegistryLoad load dubbo apis from zookeeper registry
func (*ZookeeperRegistryLoad) GetCluster ¶
func (crl *ZookeeperRegistryLoad) GetCluster() (string, error)
nolint
func (*ZookeeperRegistryLoad) LoadAllServices ¶
func (crl *ZookeeperRegistryLoad) LoadAllServices() ([]*common.URL, error)
LoadAllServices load all services from zookeeper registry