Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultWeight = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { // ServiceName will be set in hertz by default ServiceName string // Addr will be set in hertz by default Addr net.Addr // Weight will be set in hertz by default Weight int // extend other infos with Tags. Tags map[string]string }
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.