nacos

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	ClusterName string
	Addr        string
	// contains filtered or unexported fields
}

Adapter .

func NewAdapter

func NewAdapter(clusterName, addr string) *Adapter

NewAdapter .

func (*Adapter) EnableHTTPService

func (a *Adapter) EnableHTTPService(namespace string, service *pb.EnableHTTPService) (*pb.EnableHTTPService, error)

func (*Adapter) GetDubboInterfaceList

func (a *Adapter) GetDubboInterfaceList(namespace string) ([]*pb.Interface, error)

GetDubboInterfaceList .

func (*Adapter) GetHTTPInterfaceList

func (a *Adapter) GetHTTPInterfaceList(namespace string) ([]*pb.HTTPService, error)

type ServiceHost

type ServiceHost struct {
	Valid    bool              `json:"valid"`
	Port     int64             `json:"port"`
	IP       string            `json:"ip"`
	Weight   float64           `json:"weight"`
	Enabled  bool              `json:"enabled"`
	MetaData map[string]string `json:"metadata"`
}

ServiceHost .

func (*ServiceHost) ToHTTPServiceItem

func (s *ServiceHost) ToHTTPServiceItem() *pb.HTTPServiceItem

type ServiceHosts

type ServiceHosts struct {
	Hosts []*ServiceHost `json:"hosts"`
}

ServiceHosts

type ServiceSearchResult

type ServiceSearchResult struct {
	ServiceName   string                        `json:"serviceName"`
	GroupName     string                        `json:"groupName"`
	ClusterMap    map[string]*ServiceHosts      `json:"clusterMap"`
	OwnerNameList []string                      `json:"ownerNameList"`
	IPList        []string                      `json:"ipList"`
	OwnerMap      map[string]*pb.InterfaceOwner `json:"ownerMap"`
}

ServiceSearchResult .

func (*ServiceSearchResult) ToHTTPService

func (s *ServiceSearchResult) ToHTTPService() *pb.HTTPService

ToHTTPService .

func (*ServiceSearchResult) ToInterface

func (s *ServiceSearchResult) ToInterface() *pb.Interface

ToInterface .

Jump to

Keyboard shortcuts

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