pbapi

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Echo

type Echo interface {
	Echo(ctx context.Context, req *Request) (res *Response, err error)
}

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) FastRead added in v0.2.1

func (x *Request) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Request) FastWrite added in v0.2.1

func (x *Request) FastWrite(buf []byte) (offset int)

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) Size added in v0.2.1

func (x *Request) Size() (n int)

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) FastRead added in v0.2.1

func (x *Response) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Response) FastWrite added in v0.2.1

func (x *Response) FastWrite(buf []byte) (offset int)

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) Size added in v0.2.1

func (x *Response) Size() (n int)

func (*Response) String

func (x *Response) String() string

Directories

Path Synopsis
Code generated by Kitex v0.12.0.
Code generated by Kitex v0.12.0.

Jump to

Keyboard shortcuts

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