Versions in this module Expand all Collapse all v8 v8.0.0 Nov 4, 2020 Changes in this version + const Svc1PathPrefix + const Svc2PathPrefix + func WriteError(resp http.ResponseWriter, err error) + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Msg1 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Msg1) Descriptor() ([]byte, []int) + func (*Msg1) ProtoMessage() + func (m *Msg1) Reset() + func (m *Msg1) String() string + func (m *Msg1) XXX_DiscardUnknown() + func (m *Msg1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Msg1) XXX_Merge(src proto.Message) + func (m *Msg1) XXX_Size() int + func (m *Msg1) XXX_Unmarshal(b []byte) error + type Msg2 struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Msg2) Descriptor() ([]byte, []int) + func (*Msg2) ProtoMessage() + func (m *Msg2) Reset() + func (m *Msg2) String() string + func (m *Msg2) XXX_DiscardUnknown() + func (m *Msg2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Msg2) XXX_Merge(src proto.Message) + func (m *Msg2) XXX_Size() int + func (m *Msg2) XXX_Unmarshal(b []byte) error + type Svc1 interface + Send func(context.Context, *Msg1) (*Msg1, error) + func NewSvc1JSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Svc1 + func NewSvc1ProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Svc1 + type Svc2 interface + SamePackageProtoImport func(context.Context, *Msg1) (*Msg1, error) + Send func(context.Context, *Msg2) (*Msg2, error) + func NewSvc2JSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Svc2 + func NewSvc2ProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Svc2 + type TwirpServer interface + PathPrefix func() string + ProtocGenTwirpVersion func() string + ServiceDescriptor func() ([]byte, int) + func NewSvc1Server(svc Svc1, opts ...interface{}) TwirpServer + func NewSvc2Server(svc Svc2, opts ...interface{}) TwirpServer Other modules containing this package github.com/3ventic/twirp