package
0.0.0-20181116170211-16e065873255
Repository: https://github.com/mattc41190/go-learn-go.git
Documentation: pkg.go.dev
# Functions
LoggingMiddleware accepts a Logger and returns a Middleware That is a PACKED statement.
MakeClientEndpoints is responsbile for making the Endpoints a client will use.
MakeDeleteAddressEndpoint accepts a service and returns an Endpoint function which should be attached to a server.
MakeDeleteProfileEndpoint accepts an implementer of Service and returns an Endpoint function which should be attached to a Server route.
MakeGetAddressEndpoint accepts an implemeter of Service and returns and endpoint function which will be attached to a Server route via the GoKit NewServer function which sandwiches an Endpoint function between a request decoder / receiver and a response encoder / sender.
MakeGetAddressesEndpoint accepts a Service and returns an Endpoint function which should be attached to a Server route in the form of a Server.
MakeGetProfileEndpoint accepts a service and returns an Endpoint function which should be associated to a server route path.
MakeHTTPHandler will accept an implementer of the Service interface AKA a Service and a logger and it will return an http.Handler.
MakePatchProfileEndpoint accepts a service and returns an Endpoint function which should be associated to a server route.
MakePostAddressEndpoint is a function which takes a service and returns an Endpoint function which will be attached to a GoKit server which will be attached to an http.Server's route.
MakePostProfileEndpoint accepts a service and returns an Endpoint which is intended to be attached to a server.
MakePutProfileEndpoint accepts a service and returns an Endpoint function which should be associated to a server route.
MakeServerEndpoints accepts an implementer of the Service interface and returns an Endpoints struct.
NewInmemService will return a new inmemService.
# Variables
Create canned errors for consistent message for caller.
Create an error for trying to call a bad route + method combination.
Create canned errors for consistent message for caller.
Create canned errors for consistent message for caller.
# Interfaces
Service interface dictates our core functionality.
# Type aliases
Middleware is a user defined type whose value must be a function which accepts an implementer of Service and returns an implementer of Service.