INNER CODE UNIT · Go

func

go-kratos/gateway · client/node.go:212

func (n *node) Scheme() string {
	return strings.ToLower(n.protocol.String())
}

func (n *node) Address() string {
	return n.address
}

// ServiceName is service name
func (n *node) ServiceName() string {
	return n.name
}

// InitialWeight is the initial value of scheduling weight
// if not set return nil
func (n *node) InitialWeight() *int64 {
	return n.weight
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…