Documentation ¶
Index ¶
- func GetRequestDeadTime(req *http.Request) int
- type Address
- type ServiceCenter
- type ServiceCenterBuilder
- func (b *ServiceCenterBuilder) AddressFunc(f func(serviceName string) *Address) *ServiceCenterBuilder
- func (b *ServiceCenterBuilder) Build() *ServiceCenter
- func (b *ServiceCenterBuilder) ClientNameFunc(f func(req *http.Request) string) *ServiceCenterBuilder
- func (b *ServiceCenterBuilder) RegisterFunc(f func(name string, ip string, port int) chan bool) *ServiceCenterBuilder
- type ServiceQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestDeadTime ¶
Types ¶
type ServiceCenter ¶
type ServiceCenter struct {
// contains filtered or unexported fields
}
func (*ServiceCenter) Address ¶
func (sc *ServiceCenter) Address(serviceName string) *Address
func (*ServiceCenter) ClientName ¶
func (sc *ServiceCenter) ClientName(req *http.Request) string
type ServiceCenterBuilder ¶
type ServiceCenterBuilder struct {
// contains filtered or unexported fields
}
func Create ¶
func Create() *ServiceCenterBuilder
func (*ServiceCenterBuilder) AddressFunc ¶
func (b *ServiceCenterBuilder) AddressFunc(f func(serviceName string) *Address) *ServiceCenterBuilder
func (*ServiceCenterBuilder) Build ¶
func (b *ServiceCenterBuilder) Build() *ServiceCenter
func (*ServiceCenterBuilder) ClientNameFunc ¶
func (b *ServiceCenterBuilder) ClientNameFunc(f func(req *http.Request) string) *ServiceCenterBuilder
func (*ServiceCenterBuilder) RegisterFunc ¶
func (b *ServiceCenterBuilder) RegisterFunc(f func(name string, ip string, port int) chan bool) *ServiceCenterBuilder
Click to show internal directories.
Click to hide internal directories.