Documentation ¶ Index ¶ func ReplaceTimeout(t time.Duration) type Net type Option func WithTimeout(t time.Duration) Option type Req func NewReq(body, headers []byte, opts ...Option) *Req func (r *Req) AddEasyCarHeaders(gId, branchId string) type Resp Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ReplaceTimeout ¶ func ReplaceTimeout(t time.Duration) Types ¶ type Net ¶ type Net string const ( Http Net = "http" Grpc Net = "grpc" ) type Option ¶ type Option func(req *Req) func WithTimeout ¶ func WithTimeout(t time.Duration) Option type Req ¶ type Req struct { Body []byte Headers map[string]string Timeout time.Duration } func NewReq ¶ func NewReq(body, headers []byte, opts ...Option) *Req func (*Req) AddEasyCarHeaders ¶ func (r *Req) AddEasyCarHeaders(gId, branchId string) type Resp ¶ type Resp struct { Body []byte // response Body } Source Files ¶ View all Source files consts.go opts.go resp.go Click to show internal directories. Click to hide internal directories.