app

package
v2.0.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 20 Imported by: 0

README

/Users/vitaly/work/go/src/github.com/swipe-io/swipe/v2/fixture/ServiceRESTMultiIdenticalInterface/app : A short description of the service.

A complete description of the service and what it does.

Example

go run ./cmd/service

Docs

ToDo.

Contributing

ToDo.

Contributors

ToDo.

Author

ToDo.

Changelog

ToDo.

Versions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAppCreateEndpoint

func MakeAppCreateEndpoint(s app2.App) endpoint.Endpoint

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

func NewLoggingApp1Middleware

func NewLoggingApp1Middleware(s app1.App, logger log.Logger) app1.App

func NewLoggingApp2Middleware

func NewLoggingApp2Middleware(s app2.App, logger log.Logger) app2.App

Types

type App1InstrumentingMiddleware

type App1InstrumentingMiddleware struct {
	// contains filtered or unexported fields
}

func (*App1InstrumentingMiddleware) Create

func (s *App1InstrumentingMiddleware) Create(ctx context.Context, name string, data []byte) error

type App1LoggingMiddleware

type App1LoggingMiddleware struct {
	// contains filtered or unexported fields
}

func (*App1LoggingMiddleware) Create

func (s *App1LoggingMiddleware) Create(ctx context.Context, name string, data []byte) error

type App2InstrumentingMiddleware

type App2InstrumentingMiddleware struct {
	// contains filtered or unexported fields
}

func (*App2InstrumentingMiddleware) Create

func (s *App2InstrumentingMiddleware) Create(ctx context.Context, name string, data []byte) error

type App2LoggingMiddleware

type App2LoggingMiddleware struct {
	// contains filtered or unexported fields
}

func (*App2LoggingMiddleware) Create

func (s *App2LoggingMiddleware) Create(ctx context.Context, name string, data []byte) error

type AppClient

type AppClient struct {
	App1Client app1.App
	App2Client app2.App
}

func NewClientREST

func NewClientREST(tgt string, opts ...ClientOption) (*AppClient, error)

type AppCreateRequest

type AppCreateRequest struct {
	Name string `json:"name"`
	Data []byte `json:"data"`
}

type AppEndpointSet

type AppEndpointSet struct {
	CreateEndpoint endpoint.Endpoint
}

func MakeAppEndpointSet

func MakeAppEndpointSet(svc app2.App) AppEndpointSet

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

Directories

Path Synopsis
controller

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL