package
5.3.0+incompatible
Repository: https://github.com/omniprojects/twirp.git
Documentation: pkg.go.dev
# Functions
NewSvc1JSONClient creates a JSON client that implements the Svc1 interface.
NewSvc1ProtobufClient creates a Protobuf client that implements the Svc1 interface.
No description provided by the author
NewSvc2JSONClient creates a JSON client that implements the Svc2 interface.
NewSvc2ProtobufClient creates a Protobuf client that implements the Svc2 interface.
No description provided by the author
WriteError writes an HTTP response with a valid Twirp error format.
# Constants
Svc1PathPrefix is used for all URL paths on a twirp Svc1 server.
Svc2PathPrefix is used for all URL paths on a twirp Svc2 server.
# Interfaces
HTTPClient is the interface used by generated clients to send HTTP requests.
No description provided by the author
No description provided by the author
TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service.