Documentation
¶
Index ¶
- type InboundHandler
- func (h *InboundHandler) GuardHandler(next http.Handler) http.Handler
- func (h *InboundHandler) GuardHandlerFunction(next func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
- func (h *InboundHandler) HTTPServerStatus(code int) (codes.Code, string)
- func (h *InboundHandler) Start(r *http.Request) (context.Context, trace.Span, []string)
- type OutboundHandler
- func (h *OutboundHandler) Get(ctx context.Context, url string) (*http.Response, error)
- func (h *OutboundHandler) Post(ctx context.Context, url string, body io.Reader) (*http.Response, error)
- func (h *OutboundHandler) Request(ctx context.Context, httpMethod, url string, body io.Reader) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InboundHandler ¶
type InboundHandler struct {
*handlers.InboundHandler
}
func NewInboundHandler ¶
func NewInboundHandler(gn string, fn *string, pb *int32, dw *float32, kv *map[string]string) (*InboundHandler, error)
NewInboundHandler returns a new InboundHandler
func (*InboundHandler) GuardHandler ¶
func (h *InboundHandler) GuardHandler(next http.Handler) http.Handler
GuardHandler implements HTTP handler (middleware) for adding a Stanza Guard to an HTTP Server
func (*InboundHandler) GuardHandlerFunction ¶
func (h *InboundHandler) GuardHandlerFunction(next func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
GuardHandlerFunc implements HTTP func(w, r) middleware for adding a Stanza Guard to an HTTP Server
func (*InboundHandler) HTTPServerStatus ¶
func (h *InboundHandler) HTTPServerStatus(code int) (codes.Code, string)
HTTPServerStatus returns a span status code and message for an HTTP status code value returned by a server. Status codes in the 400-499 range are not returned as errors.
type OutboundHandler ¶
type OutboundHandler struct {
*handlers.OutboundHandler
}
func NewOutboundHandler ¶
func NewOutboundHandler(gn string, fn *string, pb *int32, dw *float32, kv *map[string]string) (*OutboundHandler, error)
NewOutboundHandler returns a new OutboundHandler
Click to show internal directories.
Click to hide internal directories.