Versions in this module Expand all Collapse all v8 v8.0.0 Nov 4, 2020 Changes in this version + const JSONSerializationPathPrefix + var Msg_FooBar_name = map[int32]string + var Msg_FooBar_value = map[string]int32 + func WriteError(resp http.ResponseWriter, err error) + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type JSONSerialization interface + EchoJSON func(context.Context, *Msg) (*Msg, error) + func NewJSONSerializationJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) JSONSerialization + func NewJSONSerializationProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) JSONSerialization + type Msg struct + AllEmpty bool + Foobar Msg_FooBar + Hell float64 + PageNumber int32 + Query string + Snippets []string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Msg) Descriptor() ([]byte, []int) + func (*Msg) ProtoMessage() + func (m *Msg) GetAllEmpty() bool + func (m *Msg) GetFoobar() Msg_FooBar + func (m *Msg) GetHell() float64 + func (m *Msg) GetPageNumber() int32 + func (m *Msg) GetQuery() string + func (m *Msg) GetSnippets() []string + func (m *Msg) Reset() + func (m *Msg) String() string + func (m *Msg) XXX_DiscardUnknown() + func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Msg) XXX_Merge(src proto.Message) + func (m *Msg) XXX_Size() int + func (m *Msg) XXX_Unmarshal(b []byte) error + type Msg_FooBar int32 + const Msg_BAR + const Msg_FOO + func (Msg_FooBar) EnumDescriptor() ([]byte, []int) + func (x Msg_FooBar) String() string + type Result struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Result) Descriptor() ([]byte, []int) + func (*Result) ProtoMessage() + func (m *Result) Reset() + func (m *Result) String() string + func (m *Result) XXX_DiscardUnknown() + func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Result) XXX_Merge(src proto.Message) + func (m *Result) XXX_Size() int + func (m *Result) XXX_Unmarshal(b []byte) error + type TwirpServer interface + PathPrefix func() string + ProtocGenTwirpVersion func() string + ServiceDescriptor func() ([]byte, int) + func NewJSONSerializationServer(svc JSONSerialization, opts ...interface{}) TwirpServer Other modules containing this package github.com/3ventic/twirp