http

package
v0.0.0-...-5d8c97e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

func (*AddrURL) Join

func (addrURL *AddrURL) Join(paths ...string) (*url.URL, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL