Documentation
¶
Overview ¶
Package proxy handles requests by sending them to another wire protocol compatible service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles requests by sending them to another wire protocol compatible service.
func New ¶
New creates a new Handler for a service with given address. Handler.Run must be called on the returned value.
func (*Handler) Collect ¶
func (h *Handler) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Handler) Describe ¶
func (h *Handler) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
func (*Handler) Handle ¶
func (h *Handler) Handle(ctx context.Context, req *middleware.Request) (resp *middleware.Response, err error)
Handle implements middleware.Handler by sending it to another wire protocol compatible service.
Click to show internal directories.
Click to hide internal directories.