Documentation ¶
Index ¶
- func NewAdaptor() discovery.FuncOps
- type ServiceInstance
- func (ins *ServiceInstance) GetMetadata(key string) (string, bool)
- func (ins *ServiceInstance) InstanceIP() string
- func (ins *ServiceInstance) InstanceId() string
- func (ins *ServiceInstance) InstancePort() int
- func (ins *ServiceInstance) Marshal() ([]byte, error)
- func (ins *ServiceInstance) Metadatas() map[string]string
- func (ins *ServiceInstance) ServiceInterface() string
- func (ins *ServiceInstance) ServiceMethods() []string
- func (ins *ServiceInstance) ServiceName() string
- func (ins *ServiceInstance) ServiceSchema() string
- func (ins *ServiceInstance) SetMetadata(key, value string) error
- func (ins *ServiceInstance) Unmarshal(instanceId string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdaptor ¶
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
Click to show internal directories.
Click to hide internal directories.