Documentation
¶
Index ¶
- func MakeAppCreateEndpoint(s app2.App) endpoint.Endpoint
- func MakeHandlerREST(svcApp app1.App, svcApp app2.App, options ...ServerOption) (http2.Handler, error)
- func NewClientRESTApp(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 App1InstrumentingMiddleware
- type App1LoggingMiddleware
- type App2InstrumentingMiddleware
- type App2LoggingMiddleware
- type AppClient
- type AppCreateRequest
- type AppEndpointSet
- type ClientOption
- type InstrumentingOption
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandlerREST ¶
func MakeHandlerREST(svcApp app1.App, svcApp app2.App, options ...ServerOption) (http2.Handler, error)
MakeHandlerREST HTTP REST Transport
func NewClientRESTApp ¶
func NewClientRESTApp(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 App1InstrumentingMiddleware ¶
type App1InstrumentingMiddleware struct {
// contains filtered or unexported fields
}
type App1LoggingMiddleware ¶
type App1LoggingMiddleware struct {
// contains filtered or unexported fields
}
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 AppCreateRequest ¶
type AppEndpointSet ¶
func MakeAppEndpointSet ¶
type ClientOption ¶
type ClientOption func(*clientOpts)
func AppCreateClientEndpointMiddlewares ¶
func AppCreateClientEndpointMiddlewares(opt ...endpoint.Middleware) ClientOption
func AppCreateClientOptions ¶
func AppCreateClientOptions(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 AppCreateServerEndpointMiddlewares ¶
func AppCreateServerEndpointMiddlewares(opt ...endpoint.Middleware) ServerOption
func AppCreateServerOptions ¶
func AppCreateServerOptions(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.