dubbo

package
v1.5.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdaptor

func NewAdaptor() discovery.FuncOps

Types

type ServiceInstance

type ServiceInstance struct {
	Schema string `urlenc:"-"`
	Addr   string `urlenc:"-"`
	IP     string `urlenc:"-"`
	Port   int    `urlenc:"-"`
	Node   string `urlenc:"-"`

	Interface string `urlenc:"interface"`
	Methods   string `urlenc:"methods"`

	Anyhost     bool   `urlenc:"anyhost"`
	Application string `urlenc:"application"`
	Deprecated  bool   `urlenc:"deprecated"`
	Dubbo       string `urlenc:"dubbo"`
	Dynamic     bool   `urlenc:"dynamic"`
	Generic     string `urlenc:"generic"`
	PID         uint32 `urlenc:"pid"`
	Release     string `urlenc:"release"`
	Revision    string `urlenc:"revision"`
	Side        string `urlenc:"side"`
	Timestamp   uint64 `urlenc:"timestamp"`
	Version     string `urlenc:"version"`

	Extends map[string]string `urlenc:"-"`

	FsmConnectorServiceClusterSet     string `urlenc:"fsm.connector.service.cluster.set,omitempty"`
	FsmConnectorServiceConnectorUid   string `urlenc:"fsm.connector.service.connector.uid,omitempty"`
	FsmConnectorServiceGRPCViaGateway string `urlenc:"fsm.connector.service.grpc.via.gateway"`
	FsmConnectorServiceViaGatewayMode string `urlenc:"fsm.connector.service.via.gateway.mode"`
	// contains filtered or unexported fields
}

func NewServiceInstance

func NewServiceInstance(serviceName, instanceId string) *ServiceInstance

func (*ServiceInstance) GetMetadata

func (ins *ServiceInstance) GetMetadata(key string) (string, bool)

func (*ServiceInstance) InstanceIP

func (ins *ServiceInstance) InstanceIP() string

func (*ServiceInstance) InstanceId

func (ins *ServiceInstance) InstanceId() string

func (*ServiceInstance) InstancePort

func (ins *ServiceInstance) InstancePort() int

func (*ServiceInstance) Marshal

func (ins *ServiceInstance) Marshal() ([]byte, error)

func (*ServiceInstance) Metadatas

func (ins *ServiceInstance) Metadatas() map[string]string

func (*ServiceInstance) ServiceInterface

func (ins *ServiceInstance) ServiceInterface() string

func (*ServiceInstance) ServiceMethods

func (ins *ServiceInstance) ServiceMethods() []string

func (*ServiceInstance) ServiceName

func (ins *ServiceInstance) ServiceName() string

func (*ServiceInstance) ServiceSchema

func (ins *ServiceInstance) ServiceSchema() string

func (*ServiceInstance) SetMetadata

func (ins *ServiceInstance) SetMetadata(key, value string) error

func (*ServiceInstance) Unmarshal

func (ins *ServiceInstance) Unmarshal(instanceId string, data []byte) error

Jump to

Keyboard shortcuts

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