Documentation ¶
Index ¶
- Variables
- type AddrURL
- type CalculatorHTTPClient
- func (client *CalculatorHTTPClient) Close() error
- func (client *CalculatorHTTPClient) NewAddEndpoint() endpoint.Endpoint
- func (client *CalculatorHTTPClient) NewDivEndpoint() endpoint.Endpoint
- func (client *CalculatorHTTPClient) NewMulEndpoint() endpoint.Endpoint
- func (client *CalculatorHTTPClient) NewSubEndpoint() endpoint.Endpoint
- type HealthHTTPClient
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Encoder = form.NewEncoder()
)
Functions ¶
This section is empty.
Types ¶
type AddrURL ¶
type AddrURL struct {
// contains filtered or unexported fields
}
AddrURL 用于支持urljoin
type CalculatorHTTPClient ¶
type CalculatorHTTPClient struct {
// contains filtered or unexported fields
}
CalculatorHTTPClient 计算器传输层客户端
func NewCalculatorHTTPClient ¶
func NewCalculatorHTTPClient(ctx context.Context, target string) (*CalculatorHTTPClient, error)
NewCalculatorHTTPClient 创建计算器HTTP传输层客户端
func (*CalculatorHTTPClient) Close ¶
func (client *CalculatorHTTPClient) Close() error
func (*CalculatorHTTPClient) NewAddEndpoint ¶
func (client *CalculatorHTTPClient) NewAddEndpoint() endpoint.Endpoint
func (*CalculatorHTTPClient) NewDivEndpoint ¶
func (client *CalculatorHTTPClient) NewDivEndpoint() endpoint.Endpoint
func (*CalculatorHTTPClient) NewMulEndpoint ¶
func (client *CalculatorHTTPClient) NewMulEndpoint() endpoint.Endpoint
func (*CalculatorHTTPClient) NewSubEndpoint ¶
func (client *CalculatorHTTPClient) NewSubEndpoint() endpoint.Endpoint
type HealthHTTPClient ¶
type HealthHTTPClient struct {
// contains filtered or unexported fields
}
HealthHTTPClient 健康检查传输层客户端
func NewHealthHTTPClient ¶
func NewHealthHTTPClient(ctx context.Context, target string) (*HealthHTTPClient, error)
NewHealthHTTPClient 创建健康检查HTTP传输层客户端
func (*HealthHTTPClient) Close ¶
func (client *HealthHTTPClient) Close() error
Close 关闭传输层客户端 实现什么都没干。负载均衡的Factory需要这个
func (*HealthHTTPClient) NewCheckEndpoint ¶
func (client *HealthHTTPClient) NewCheckEndpoint() endpoint.Endpoint
NewCheckEndpoint 创建check方法endpoint
Click to show internal directories.
Click to hide internal directories.