Documentation ¶
Overview ¶
Package registry is the API definition of service registry. Developers can implement the interface to extend Registry, like zookeeper, consul. Use the registry extension through server.WithRegistry(registry).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { // ServiceName will be set in kitex by default ServiceName string // Addr will be set in kitex by default Addr net.Addr // PayloadCodec will be set in kitex by default, like thrift, protobuf PayloadCodec string Weight int StartTime time.Time WarmUp time.Duration // extend other infos with Tags. Tags map[string]string // SkipListenAddr is used to prevent the listen addr from overriding the Addr SkipListenAddr bool }
Info is used for registry. The fields are just suggested, which is used depends on design.
Click to show internal directories.
Click to hide internal directories.