Documentation ¶
Index ¶
- type Aggregator
- type DefaultExecutor
- func (c *DefaultExecutor) Build(r *http.Request) (map[string]*http.Request, error)
- func (c *DefaultExecutor) Fetch(mr map[string]*http.Request) (map[string]*http.Response, error)
- func (c *DefaultExecutor) Finish(w http.ResponseWriter, ms map[string]*http.Response, err error)
- func (c *DefaultExecutor) FinishErr(w http.ResponseWriter, code int, err error)
- type DefaultOption
- type Error
- type ErrorMulti
- type Executor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
C Executor
}
func NewAggregator ¶
func NewAggregator(c Executor) *Aggregator
func (*Aggregator) ServeHTTP ¶
func (a *Aggregator) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DefaultExecutor ¶
type DefaultExecutor struct {
// contains filtered or unexported fields
}
func NewDefaultExecutor ¶
func NewDefaultExecutor(s string, opt *DefaultOption) (*DefaultExecutor, error)
func (*DefaultExecutor) Finish ¶
func (c *DefaultExecutor) Finish(w http.ResponseWriter, ms map[string]*http.Response, err error)
func (*DefaultExecutor) FinishErr ¶
func (c *DefaultExecutor) FinishErr(w http.ResponseWriter, code int, err error)
type DefaultOption ¶
type DefaultOption struct { Transport http.RoundTripper Timeout time.Duration MaxTimeout time.Duration MaxRequest int FetchLatency func(n time.Duration, method, routePattern string, statusCode int) FetchLogger func(n time.Duration, method, urlPath string, statusCode int, reqID string) FetchFilter func(method, urlPath string) bool }
type Error ¶
type ErrorMulti ¶
func (ErrorMulti) Error ¶
func (mrr ErrorMulti) Error() string
Click to show internal directories.
Click to hide internal directories.