factory

package
v0.0.0-...-a52efcf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGRPCEndpoint

func CreateGRPCEndpoint(
	instancer sd.Instancer, hm grpcconn.HostMapper, service string,
	middleware endpoint.Middleware, method string, reply interface{},
	enc kitgrpc.EncodeRequestFunc, dec kitgrpc.DecodeResponseFunc,
	decError endpoint.Middleware,
) endpoint.Endpoint

CreateGRPCEndpoint wires a QR service Go kit method endpoint

func CreateHTTPEndpoint

func CreateHTTPEndpoint(
	instancer sd.Instancer, middleware endpoint.Middleware, operationName string,
	encodeRequest kithttp.EncodeRequestFunc,
	decodeResponse kithttp.DecodeResponseFunc,
) endpoint.Endpoint

CreateHTTPEndpoint creates a Go kit client endpoint

func EncodeGenericRequest

func EncodeGenericRequest(route *mux.Route) kithttp.EncodeRequestFunc

EncodeGenericRequest is a generic request encoder which can be used if we don't have to deal with URL parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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