Documentation ¶
Index ¶
- func CountEndpoint(svc generated.StringService) endpoint.Endpoint
- func DummyMethodEndpoint(svc generated.StringService) endpoint.Endpoint
- func LatencyMiddleware(dur metrics.Histogram, methodName string) endpoint.Middleware
- func RequestFrequencyMiddleware(freq metrics.Gauge, methodName string) endpoint.Middleware
- func TestCaseEndpoint(svc generated.StringService) endpoint.Endpoint
- func UppercaseEndpoint(svc generated.StringService) endpoint.Endpoint
- type CountRequest
- type CountResponse
- type DummyMethodRequest
- type DummyMethodResponse
- type EndpointsSet
- func Endpoints(svc generated.StringService) 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
- func (set EndpointsSet) Count(arg0 context.Context, arg1 string, arg2 string) (res0 int, res1 []int, res2 error)
- func (set EndpointsSet) DummyMethod(arg0 context.Context) (res0 error)
- func (set EndpointsSet) IgnoredErrorMethod() (res0 error)
- func (set EndpointsSet) IgnoredMethod()
- func (set EndpointsSet) TestCase(arg0 context.Context, arg1 []*generated.Comment) (res0 map[string]int, res1 error)
- func (set EndpointsSet) Uppercase(arg0 context.Context, arg1 map[string]string) (res0 string, res1 error)
- type TestCaseRequest
- type TestCaseResponse
- type UppercaseRequest
- type UppercaseResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountEndpoint ¶
func CountEndpoint(svc generated.StringService) endpoint.Endpoint
func DummyMethodEndpoint ¶
func DummyMethodEndpoint(svc generated.StringService) endpoint.Endpoint
func LatencyMiddleware ¶
func LatencyMiddleware(dur metrics.Histogram, methodName string) endpoint.Middleware
func RequestFrequencyMiddleware ¶
func RequestFrequencyMiddleware(freq metrics.Gauge, methodName string) endpoint.Middleware
func TestCaseEndpoint ¶
func TestCaseEndpoint(svc generated.StringService) endpoint.Endpoint
func UppercaseEndpoint ¶
func UppercaseEndpoint(svc generated.StringService) endpoint.Endpoint
Types ¶
type CountRequest ¶
type CountResponse ¶
type DummyMethodRequest ¶
type DummyMethodRequest struct{}
Formal exchange type, please do not delete.
type DummyMethodResponse ¶
type DummyMethodResponse struct{}
Formal exchange type, please do not delete.
type EndpointsSet ¶
type EndpointsSet struct { UppercaseEndpoint endpoint.Endpoint CountEndpoint endpoint.Endpoint TestCaseEndpoint endpoint.Endpoint DummyMethodEndpoint endpoint.Endpoint }
EndpointsSet implements StringService API and used for transport purposes.
func Endpoints ¶
func Endpoints(svc generated.StringService) 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.
func (EndpointsSet) DummyMethod ¶
func (set EndpointsSet) DummyMethod(arg0 context.Context) (res0 error)
func (EndpointsSet) IgnoredErrorMethod ¶
func (set EndpointsSet) IgnoredErrorMethod() (res0 error)
func (EndpointsSet) IgnoredMethod ¶
func (set EndpointsSet) IgnoredMethod()
type TestCaseRequest ¶
type TestCaseResponse ¶
type UppercaseRequest ¶
type UppercaseResponse ¶
type UppercaseResponse struct {
Ans string `json:"ans"`
}
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.