Documentation
¶
Index ¶
- func MakeApp1CreateEndpoint(s app1.App) endpoint.Endpoint
- func MakeApp2CreateEndpoint(s app2.App) endpoint.Endpoint
- func MakeHandlerREST(svcApp1 app1.App, svcApp2 app2.App, options ...ServerOption) (http2.Handler, error)
- func NewClientRESTApp1(tgt string, options ...ClientOption) (app1.App, error)
- func NewClientRESTApp2(tgt string, options ...ClientOption) (app2.App, error)
- func NewInstrumentingApp1Middleware(s app1.App, opts ...InstrumentingOption) app1.App
- func NewInstrumentingApp2Middleware(s app2.App, opts ...InstrumentingOption) app2.App
- func NewLoggingApp1Middleware(s app1.App, logger log.Logger) app1.App
- func NewLoggingApp2Middleware(s app2.App, logger log.Logger) app2.App
- type App1CreateCreateRequest
- type App1EndpointSet
- type App1InstrumentingMiddleware
- type App1LoggingMiddleware
- type App2CreateCreateRequest
- type App2EndpointSet
- type App2InstrumentingMiddleware
- type App2LoggingMiddleware
- type AppClient
- type ClientOption
- func App1CreateClientEndpointMiddlewares(opt ...endpoint.Middleware) ClientOption
- func App1CreateClientOptions(opt ...http.ClientOption) ClientOption
- func App2CreateClientEndpointMiddlewares(opt ...endpoint.Middleware) ClientOption
- func App2CreateClientOptions(opt ...http.ClientOption) ClientOption
- func GenericClientEndpointMiddlewares(opt ...endpoint.Middleware) ClientOption
- func GenericClientOptions(opt ...http.ClientOption) ClientOption
- type InstrumentingOption
- type ServerOption
- func App1CreateServerEndpointMiddlewares(opt ...endpoint.Middleware) ServerOption
- func App1CreateServerOptions(opt ...http.ServerOption) ServerOption
- func App2CreateServerEndpointMiddlewares(opt ...endpoint.Middleware) ServerOption
- func App2CreateServerOptions(opt ...http.ServerOption) ServerOption
- func GenericServerEndpointMiddlewares(v ...endpoint.Middleware) ServerOption
- func GenericServerOptions(v ...http.ServerOption) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandlerREST ¶
func MakeHandlerREST(svcApp1 app1.App, svcApp2 app2.App, options ...ServerOption) (http2.Handler, error)
MakeHandlerREST HTTP REST Transport
func NewClientRESTApp1 ¶
func NewClientRESTApp1(tgt string, options ...ClientOption) (app1.App, error)
func NewClientRESTApp2 ¶
func NewClientRESTApp2(tgt string, options ...ClientOption) (app2.App, error)
func NewInstrumentingApp1Middleware ¶
func NewInstrumentingApp1Middleware(s app1.App, opts ...InstrumentingOption) app1.App
func NewInstrumentingApp2Middleware ¶
func NewInstrumentingApp2Middleware(s app2.App, opts ...InstrumentingOption) app2.App
Types ¶
type App1CreateCreateRequest ¶
type App1EndpointSet ¶
func MakeApp1EndpointSet ¶
func MakeApp1EndpointSet(svc app1.App) App1EndpointSet
type App1InstrumentingMiddleware ¶
type App1InstrumentingMiddleware struct {
// contains filtered or unexported fields
}
type App1LoggingMiddleware ¶
type App1LoggingMiddleware struct {
// contains filtered or unexported fields
}
type App2CreateCreateRequest ¶
type App2EndpointSet ¶
func MakeApp2EndpointSet ¶
func MakeApp2EndpointSet(svc app2.App) App2EndpointSet
type App2InstrumentingMiddleware ¶
type App2InstrumentingMiddleware struct {
// contains filtered or unexported fields
}
type App2LoggingMiddleware ¶
type App2LoggingMiddleware struct {
// contains filtered or unexported fields
}
type AppClient ¶
func NewClientREST ¶
func NewClientREST(tgt string, opts ...ClientOption) (*AppClient, error)
type ClientOption ¶
type ClientOption func(*clientOpts)
func App1CreateClientEndpointMiddlewares ¶
func App1CreateClientEndpointMiddlewares(opt ...endpoint.Middleware) ClientOption
func App1CreateClientOptions ¶
func App1CreateClientOptions(opt ...http.ClientOption) ClientOption
func App2CreateClientEndpointMiddlewares ¶
func App2CreateClientEndpointMiddlewares(opt ...endpoint.Middleware) ClientOption
func App2CreateClientOptions ¶
func App2CreateClientOptions(opt ...http.ClientOption) ClientOption
func GenericClientEndpointMiddlewares ¶
func GenericClientEndpointMiddlewares(opt ...endpoint.Middleware) ClientOption
func GenericClientOptions ¶
func GenericClientOptions(opt ...http.ClientOption) ClientOption
type InstrumentingOption ¶
type InstrumentingOption func(*instrumentingOpts)
func Namespace ¶
func Namespace(v string) InstrumentingOption
func RequestCount ¶
func RequestCount(requestCount metrics.Counter) InstrumentingOption
func RequestLatency ¶
func RequestLatency(requestLatency metrics.Histogram) InstrumentingOption
func Subsystem ¶
func Subsystem(v string) InstrumentingOption
type ServerOption ¶
type ServerOption func(*serverOpts)
func App1CreateServerEndpointMiddlewares ¶
func App1CreateServerEndpointMiddlewares(opt ...endpoint.Middleware) ServerOption
func App1CreateServerOptions ¶
func App1CreateServerOptions(opt ...http.ServerOption) ServerOption
func App2CreateServerEndpointMiddlewares ¶
func App2CreateServerEndpointMiddlewares(opt ...endpoint.Middleware) ServerOption
func App2CreateServerOptions ¶
func App2CreateServerOptions(opt ...http.ServerOption) ServerOption
func GenericServerEndpointMiddlewares ¶
func GenericServerEndpointMiddlewares(v ...endpoint.Middleware) ServerOption
func GenericServerOptions ¶
func GenericServerOptions(v ...http.ServerOption) ServerOption
Source Files
¶
Click to show internal directories.
Click to hide internal directories.