Documentation
¶
Index ¶
- Variables
- func AppendResponseBodyHttpRoute(router *http1.ServeMux, service ResponseBodyService, opts ...server.Option) *http1.ServeMux
- type NamedBodyResponse
- func (*NamedBodyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NamedBodyResponse) GetBody() *NamedBodyResponse_Body
- func (*NamedBodyResponse) ProtoMessage()
- func (x *NamedBodyResponse) ProtoReflect() protoreflect.Message
- func (x *NamedBodyResponse) Reset()
- func (x *NamedBodyResponse) String() string
- type NamedBodyResponse_Body
- func (*NamedBodyResponse_Body) Descriptor() ([]byte, []int)deprecated
- func (x *NamedBodyResponse_Body) GetMessage() string
- func (*NamedBodyResponse_Body) ProtoMessage()
- func (x *NamedBodyResponse_Body) ProtoReflect() protoreflect.Message
- func (x *NamedBodyResponse_Body) Reset()
- func (x *NamedBodyResponse_Body) String() string
- type NamedHttpBodyResponse
- func (*NamedHttpBodyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NamedHttpBodyResponse) GetBody() *httpbody.HttpBody
- func (*NamedHttpBodyResponse) ProtoMessage()
- func (x *NamedHttpBodyResponse) ProtoReflect() protoreflect.Message
- func (x *NamedHttpBodyResponse) Reset()
- func (x *NamedHttpBodyResponse) String() string
- type Request
- type Response
- type ResponseBodyService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_example_response_body_response_body_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type NamedBodyResponse ¶
type NamedBodyResponse struct {
Body *NamedBodyResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
func (*NamedBodyResponse) Descriptor
deprecated
func (*NamedBodyResponse) Descriptor() ([]byte, []int)
Deprecated: Use NamedBodyResponse.ProtoReflect.Descriptor instead.
func (*NamedBodyResponse) GetBody ¶
func (x *NamedBodyResponse) GetBody() *NamedBodyResponse_Body
func (*NamedBodyResponse) ProtoMessage ¶
func (*NamedBodyResponse) ProtoMessage()
func (*NamedBodyResponse) ProtoReflect ¶
func (x *NamedBodyResponse) ProtoReflect() protoreflect.Message
func (*NamedBodyResponse) Reset ¶
func (x *NamedBodyResponse) Reset()
func (*NamedBodyResponse) String ¶
func (x *NamedBodyResponse) String() string
type NamedBodyResponse_Body ¶
type NamedBodyResponse_Body struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*NamedBodyResponse_Body) Descriptor
deprecated
func (*NamedBodyResponse_Body) Descriptor() ([]byte, []int)
Deprecated: Use NamedBodyResponse_Body.ProtoReflect.Descriptor instead.
func (*NamedBodyResponse_Body) GetMessage ¶
func (x *NamedBodyResponse_Body) GetMessage() string
func (*NamedBodyResponse_Body) ProtoMessage ¶
func (*NamedBodyResponse_Body) ProtoMessage()
func (*NamedBodyResponse_Body) ProtoReflect ¶
func (x *NamedBodyResponse_Body) ProtoReflect() protoreflect.Message
func (*NamedBodyResponse_Body) Reset ¶
func (x *NamedBodyResponse_Body) Reset()
func (*NamedBodyResponse_Body) String ¶
func (x *NamedBodyResponse_Body) String() string
type NamedHttpBodyResponse ¶
type NamedHttpBodyResponse struct {
Body *httpbody.HttpBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
func (*NamedHttpBodyResponse) Descriptor
deprecated
func (*NamedHttpBodyResponse) Descriptor() ([]byte, []int)
Deprecated: Use NamedHttpBodyResponse.ProtoReflect.Descriptor instead.
func (*NamedHttpBodyResponse) GetBody ¶
func (x *NamedHttpBodyResponse) GetBody() *httpbody.HttpBody
func (*NamedHttpBodyResponse) ProtoMessage ¶
func (*NamedHttpBodyResponse) ProtoMessage()
func (*NamedHttpBodyResponse) ProtoReflect ¶
func (x *NamedHttpBodyResponse) ProtoReflect() protoreflect.Message
func (*NamedHttpBodyResponse) Reset ¶
func (x *NamedHttpBodyResponse) Reset()
func (*NamedHttpBodyResponse) String ¶
func (x *NamedHttpBodyResponse) String() string
type Request ¶
type Request struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetMessage ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ResponseBodyService ¶
type ResponseBodyService interface {
OmittedResponse(ctx context.Context, req *Request) (*Response, error)
StarResponse(ctx context.Context, req *Request) (*Response, error)
NamedResponse(ctx context.Context, req *Request) (*NamedBodyResponse, error)
HttpBodyResponse(ctx context.Context, req *Request) (*httpbody.HttpBody, error)
HttpBodyNamedResponse(ctx context.Context, req *Request) (*NamedHttpBodyResponse, error)
HttpResponse(ctx context.Context, req *Request) (*http.HttpResponse, error)
}
func NewResponseBodyHttpClient ¶
func NewResponseBodyHttpClient(target string, opts ...client.Option) ResponseBodyService
Click to show internal directories.
Click to hide internal directories.