response_body

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_response_body_response_body_proto protoreflect.FileDescriptor

Functions

func AppendResponseBodyHttpRoute

func AppendResponseBodyHttpRoute(router *http1.ServeMux, service ResponseBodyService, opts ...server.Option) *http1.ServeMux

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetMessage

func (x *Request) GetMessage() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL