package
0.0.0-20220708071840-f533fcc02680
Repository: https://github.com/crazyhulk/protoc-gen-swiftwirp.git
Documentation: pkg.go.dev

# Functions

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

# Structs

No description provided by the author
A Hat is a piece of headwear made by a Haberdasher.
No description provided by the author
Size is passed when requesting a new hat to be made.

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