app

package
v2.0.0-rc5 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 MakeApp1CreateEndpoint

func MakeApp1CreateEndpoint(s app1.App) endpoint.Endpoint

func MakeApp2CreateEndpoint

func MakeApp2CreateEndpoint(s app2.App) endpoint.Endpoint

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

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 App1CreateCreateRequest

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

type App1EndpointSet

type App1EndpointSet struct {
	CreateEndpoint endpoint.Endpoint
}

func MakeApp1EndpointSet

func MakeApp1EndpointSet(svc app1.App) App1EndpointSet

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 App2CreateCreateRequest

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

type App2EndpointSet

type App2EndpointSet struct {
	CreateEndpoint endpoint.Endpoint
}

func MakeApp2EndpointSet

func MakeApp2EndpointSet(svc app2.App) App2EndpointSet

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 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

Directories

Path Synopsis
controller

Jump to

Keyboard shortcuts

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