Versions in this module Expand all Collapse all v8 v8.0.0 Nov 4, 2020 Changes in this version + const CompatServicePathPrefix + var ClientCompatMessage_CompatServiceMethod_name = map[int32]string + var ClientCompatMessage_CompatServiceMethod_value = map[string]int32 + func WriteError(resp http.ResponseWriter, err error) + type ClientCompatMessage struct + Method ClientCompatMessage_CompatServiceMethod + Request []byte + ServiceAddress string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ClientCompatMessage) Descriptor() ([]byte, []int) + func (*ClientCompatMessage) ProtoMessage() + func (m *ClientCompatMessage) GetMethod() ClientCompatMessage_CompatServiceMethod + func (m *ClientCompatMessage) GetRequest() []byte + func (m *ClientCompatMessage) GetServiceAddress() string + func (m *ClientCompatMessage) Reset() + func (m *ClientCompatMessage) String() string + func (m *ClientCompatMessage) XXX_DiscardUnknown() + func (m *ClientCompatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ClientCompatMessage) XXX_Merge(src proto.Message) + func (m *ClientCompatMessage) XXX_Size() int + func (m *ClientCompatMessage) XXX_Unmarshal(b []byte) error + type ClientCompatMessage_CompatServiceMethod int32 + const ClientCompatMessage_METHOD + const ClientCompatMessage_NOOP + func (ClientCompatMessage_CompatServiceMethod) EnumDescriptor() ([]byte, []int) + func (x ClientCompatMessage_CompatServiceMethod) String() string + type CompatService interface + Method func(context.Context, *Req) (*Resp, error) + NoopMethod func(context.Context, *Empty) (*Empty, error) + func NewCompatServiceJSONClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) CompatService + func NewCompatServiceProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) CompatService + type Empty struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (m *Empty) Reset() + func (m *Empty) String() string + func (m *Empty) XXX_DiscardUnknown() + func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Empty) XXX_Merge(src proto.Message) + func (m *Empty) XXX_Size() int + func (m *Empty) XXX_Unmarshal(b []byte) error + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Req struct + V string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Req) Descriptor() ([]byte, []int) + func (*Req) ProtoMessage() + func (m *Req) GetV() string + func (m *Req) Reset() + func (m *Req) String() string + func (m *Req) XXX_DiscardUnknown() + func (m *Req) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Req) XXX_Merge(src proto.Message) + func (m *Req) XXX_Size() int + func (m *Req) XXX_Unmarshal(b []byte) error + type Resp struct + V int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Resp) Descriptor() ([]byte, []int) + func (*Resp) ProtoMessage() + func (m *Resp) GetV() int32 + func (m *Resp) Reset() + func (m *Resp) String() string + func (m *Resp) XXX_DiscardUnknown() + func (m *Resp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Resp) XXX_Merge(src proto.Message) + func (m *Resp) XXX_Size() int + func (m *Resp) XXX_Unmarshal(b []byte) error + type TwirpServer interface + PathPrefix func() string + ProtocGenTwirpVersion func() string + ServiceDescriptor func() ([]byte, int) + func NewCompatServiceServer(svc CompatService, opts ...interface{}) TwirpServer Other modules containing this package github.com/3ventic/twirp