# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Always errors.
HaberdasherFunc is a convenience to convert a function into a Haberdasher service.
NewHaberdasherJSONClient creates a JSON client that implements the Haberdasher interface.
NewHaberdasherProtobufClient creates a Protobuf client that implements the Haberdasher interface.
NewHaberdasherServer builds a TwirpServer that can be used as an http.Handler to handle HTTP requests that are routed to the right method in the provided svc implementation.
Returns nil, nil.
Always makes a blank hat.
Panics.
Makes a hat, as long as its the size they like.
No description provided by the author
Makes a hat, but sure takes their time.
No description provided by the author
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta).
# Constants
HaberdasherPathPrefix is a convenience constant that may identify URL paths.
# Variables
No description provided by the author
# Interfaces
A Haberdasher makes hats for clients.
HTTPClient is the interface used by generated clients to send HTTP requests.
TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service.