Versions in this module Expand all Collapse all v8 v8.0.0 Nov 4, 2020 Changes in this version + const HaberdasherPathPrefix + func WriteError(resp http.ResponseWriter, err error) + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Haberdasher interface + MakeHat func(context.Context, *Size) (*Hat, error) + func NewHaberdasherJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Haberdasher + func NewHaberdasherProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Haberdasher + type Hat struct + Color string + Name string + Size int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Hat) Descriptor() ([]byte, []int) + func (*Hat) ProtoMessage() + func (m *Hat) GetColor() string + func (m *Hat) GetName() string + func (m *Hat) GetSize() int32 + func (m *Hat) Reset() + func (m *Hat) String() string + func (m *Hat) XXX_DiscardUnknown() + func (m *Hat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Hat) XXX_Merge(src proto.Message) + func (m *Hat) XXX_Size() int + func (m *Hat) XXX_Unmarshal(b []byte) error + type Size struct + Inches int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Size) Descriptor() ([]byte, []int) + func (*Size) ProtoMessage() + func (m *Size) GetInches() int32 + func (m *Size) Reset() + func (m *Size) String() string + func (m *Size) XXX_DiscardUnknown() + func (m *Size) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Size) XXX_Merge(src proto.Message) + func (m *Size) XXX_Size() int + func (m *Size) XXX_Unmarshal(b []byte) error + type TwirpServer interface + PathPrefix func() string + ProtocGenTwirpVersion func() string + ServiceDescriptor func() ([]byte, int) + func NewHaberdasherServer(svc Haberdasher, opts ...interface{}) TwirpServer Other modules containing this package github.com/3ventic/twirp