body

package
v1.7.18 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_body_body_proto protoreflect.FileDescriptor

Functions

func AppendBodyHttpRoute

func AppendBodyHttpRoute(router *http1.ServeMux, service BodyService, opts ...server.Option) *http1.ServeMux

Types

type BodyRequest

type BodyRequest struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyRequest) Descriptor deprecated

func (*BodyRequest) Descriptor() ([]byte, []int)

Deprecated: Use BodyRequest.ProtoReflect.Descriptor instead.

func (*BodyRequest) GetMessage

func (x *BodyRequest) GetMessage() string

func (*BodyRequest) ProtoMessage

func (*BodyRequest) ProtoMessage()

func (*BodyRequest) ProtoReflect

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

func (*BodyRequest) Reset

func (x *BodyRequest) Reset()

func (*BodyRequest) String

func (x *BodyRequest) String() string

type BodyService

type BodyService interface {
	StarBody(ctx context.Context, req *BodyRequest) (*Response, error)
	NamedBody(ctx context.Context, req *NamedBodyRequest) (*Response, error)
	NonBody(ctx context.Context, req *emptypb.Empty) (*Response, error)
	HttpBodyStarBody(ctx context.Context, req *httpbody.HttpBody) (*Response, error)
	HttpBodyNamedBody(ctx context.Context, req *HttpBodyRequest) (*Response, error)
	HttpRequest(ctx context.Context, req *http.HttpRequest) (*Response, error)
}

func NewBodyHttpClient

func NewBodyHttpClient(target string, opts ...client.Option) BodyService

type HttpBodyRequest

type HttpBodyRequest struct {
	Body *httpbody.HttpBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*HttpBodyRequest) Descriptor deprecated

func (*HttpBodyRequest) Descriptor() ([]byte, []int)

Deprecated: Use HttpBodyRequest.ProtoReflect.Descriptor instead.

func (*HttpBodyRequest) GetBody

func (x *HttpBodyRequest) GetBody() *httpbody.HttpBody

func (*HttpBodyRequest) ProtoMessage

func (*HttpBodyRequest) ProtoMessage()

func (*HttpBodyRequest) ProtoReflect

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

func (*HttpBodyRequest) Reset

func (x *HttpBodyRequest) Reset()

func (*HttpBodyRequest) String

func (x *HttpBodyRequest) String() string

type NamedBodyRequest

type NamedBodyRequest struct {
	Body *NamedBodyRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*NamedBodyRequest) Descriptor deprecated

func (*NamedBodyRequest) Descriptor() ([]byte, []int)

Deprecated: Use NamedBodyRequest.ProtoReflect.Descriptor instead.

func (*NamedBodyRequest) GetBody

func (*NamedBodyRequest) ProtoMessage

func (*NamedBodyRequest) ProtoMessage()

func (*NamedBodyRequest) ProtoReflect

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

func (*NamedBodyRequest) Reset

func (x *NamedBodyRequest) Reset()

func (*NamedBodyRequest) String

func (x *NamedBodyRequest) String() string

type NamedBodyRequest_Body

type NamedBodyRequest_Body struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*NamedBodyRequest_Body) Descriptor deprecated

func (*NamedBodyRequest_Body) Descriptor() ([]byte, []int)

Deprecated: Use NamedBodyRequest_Body.ProtoReflect.Descriptor instead.

func (*NamedBodyRequest_Body) GetMessage

func (x *NamedBodyRequest_Body) GetMessage() string

func (*NamedBodyRequest_Body) ProtoMessage

func (*NamedBodyRequest_Body) ProtoMessage()

func (*NamedBodyRequest_Body) ProtoReflect

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

func (*NamedBodyRequest_Body) Reset

func (x *NamedBodyRequest_Body) Reset()

func (*NamedBodyRequest_Body) String

func (x *NamedBodyRequest_Body) 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

Jump to

Keyboard shortcuts

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