package
6.0.0-prerelease.alpha1+incompatible
Repository: https://github.com/thinkdata-works/twirp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewHaberdasherJSONClient creates a JSON client that implements the Haberdasher interface.
NewHaberdasherProtobufClient creates a Protobuf client that implements the Haberdasher interface.
No description provided by the author
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta).

# Constants

HaberdasherPathPrefix is used for all URL paths on a twirp Haberdasher server.

# Structs

A Hat is a piece of headwear made by a Haberdasher.
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.