Documentation ¶
Index ¶
- func ConcatEndpoint(svc addsvc.Service) endpoint.Endpoint
- func LatencyMiddleware(dur metrics.Histogram, methodName string) endpoint.Middleware
- func RequestFrequencyMiddleware(freq metrics.Gauge, methodName string) endpoint.Middleware
- func SumEndpoint(svc addsvc.Service) endpoint.Endpoint
- type ConcatRequest
- type ConcatResponse
- type EndpointsSet
- func Endpoints(svc addsvc.Service) EndpointsSet
- func InstrumentingEndpoints(endpoints EndpointsSet, tracer opentracinggo.Tracer) EndpointsSet
- func TraceClientEndpoints(endpoints EndpointsSet, tracer opentracinggo.Tracer) EndpointsSet
- func TraceServerEndpoints(endpoints EndpointsSet, tracer opentracinggo.Tracer) EndpointsSet
- type SumRequest
- type SumResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LatencyMiddleware ¶
func LatencyMiddleware(dur metrics.Histogram, methodName string) endpoint.Middleware
func RequestFrequencyMiddleware ¶
func RequestFrequencyMiddleware(freq metrics.Gauge, methodName string) endpoint.Middleware
Types ¶
type ConcatRequest ¶
type ConcatResponse ¶
type ConcatResponse struct {
Result string `json:"result"`
}
type EndpointsSet ¶
EndpointsSet implements Service API and used for transport purposes.
func Endpoints ¶
func Endpoints(svc addsvc.Service) EndpointsSet
func InstrumentingEndpoints ¶
func InstrumentingEndpoints(endpoints EndpointsSet, tracer opentracinggo.Tracer) EndpointsSet
func TraceClientEndpoints ¶
func TraceClientEndpoints(endpoints EndpointsSet, tracer opentracinggo.Tracer) EndpointsSet
TraceClientEndpoints is used for tracing endpoints on client side.
func TraceServerEndpoints ¶
func TraceServerEndpoints(endpoints EndpointsSet, tracer opentracinggo.Tracer) EndpointsSet
TraceServerEndpoints is used for tracing endpoints on server side.
type SumRequest ¶
type SumResponse ¶
type SumResponse struct {
Result int `json:"result"`
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Please, do not change functions names! It is better for you if you do not change functions names! This file will never be overwritten.
|
Please, do not change functions names! It is better for you if you do not change functions names! This file will never be overwritten. |
Please, do not change functions names!
|
Please, do not change functions names! |
Click to show internal directories.
Click to hide internal directories.