echo

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type Request

type Request struct {
	Message string `thrift:"message,1,required" frugal:"1,required,string" json:"message"`
}
var TestServiceEchoArgs_Req_DEFAULT *Request
var TestServiceEchoClientArgs_Req_DEFAULT *Request
var TestServiceEchoPingPongArgs_Req_DEFAULT *Request
var TestServiceEchoServerArgs_Req_DEFAULT *Request
var TestServiceEchoUnaryArgs_Req_DEFAULT *Request

func NewRequest

func NewRequest() *Request

func (*Request) BLength

func (p *Request) BLength() int

func (*Request) FastRead

func (p *Request) FastRead(buf []byte) (int, error)

func (*Request) FastReadField1

func (p *Request) FastReadField1(buf []byte) (int, error)

func (*Request) FastWrite

func (p *Request) FastWrite(buf []byte) int

func (*Request) FastWriteNocopy

func (p *Request) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*Request) GetMessage

func (p *Request) GetMessage() (v string)

func (*Request) InitDefault

func (p *Request) InitDefault()

func (*Request) SetMessage

func (p *Request) SetMessage(val string)

func (*Request) String

func (p *Request) String() string

type Response

type Response struct {
	Message string `thrift:"message,1,required" frugal:"1,required,string" json:"message"`
}
var TestServiceEchoClientResult_Success_DEFAULT *Response
var TestServiceEchoPingPongResult_Success_DEFAULT *Response
var TestServiceEchoResult_Success_DEFAULT *Response
var TestServiceEchoServerResult_Success_DEFAULT *Response
var TestServiceEchoUnaryResult_Success_DEFAULT *Response

func NewResponse

func NewResponse() *Response

func (*Response) BLength

func (p *Response) BLength() int

func (*Response) FastRead

func (p *Response) FastRead(buf []byte) (int, error)

func (*Response) FastReadField1

func (p *Response) FastReadField1(buf []byte) (int, error)

func (*Response) FastWrite

func (p *Response) FastWrite(buf []byte) int

func (*Response) FastWriteNocopy

func (p *Response) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*Response) GetMessage

func (p *Response) GetMessage() (v string)

func (*Response) InitDefault

func (p *Response) InitDefault()

func (*Response) SetMessage

func (p *Response) SetMessage(val string)

func (*Response) String

func (p *Response) String() string

type TestService

type TestService interface {
	Echo(ctx context.Context, stream TestService_EchoServer) (err error)

	EchoClient(ctx context.Context, stream TestService_EchoClientServer) (err error)

	EchoServer(ctx context.Context, req *Request, stream TestService_EchoServerServer) (err error)

	EchoUnary(ctx context.Context, req *Request) (r *Response, err error)

	EchoPingPong(ctx context.Context, req *Request) (r *Response, err error)
}

type TestServiceEchoArgs

type TestServiceEchoArgs struct {
	Req *Request `thrift:"req,1" frugal:"1,default,Request" json:"req"`
}

func NewTestServiceEchoArgs

func NewTestServiceEchoArgs() *TestServiceEchoArgs

func (*TestServiceEchoArgs) BLength

func (p *TestServiceEchoArgs) BLength() int

func (*TestServiceEchoArgs) FastRead

func (p *TestServiceEchoArgs) FastRead(buf []byte) (int, error)

func (*TestServiceEchoArgs) FastReadField1

func (p *TestServiceEchoArgs) FastReadField1(buf []byte) (int, error)

func (*TestServiceEchoArgs) FastWrite

func (p *TestServiceEchoArgs) FastWrite(buf []byte) int

func (*TestServiceEchoArgs) FastWriteNocopy

func (p *TestServiceEchoArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoArgs) GetFirstArgument

func (p *TestServiceEchoArgs) GetFirstArgument() interface{}

func (*TestServiceEchoArgs) GetReq

func (p *TestServiceEchoArgs) GetReq() (v *Request)

func (*TestServiceEchoArgs) InitDefault

func (p *TestServiceEchoArgs) InitDefault()

func (*TestServiceEchoArgs) IsSetReq

func (p *TestServiceEchoArgs) IsSetReq() bool

func (*TestServiceEchoArgs) SetReq

func (p *TestServiceEchoArgs) SetReq(val *Request)

func (*TestServiceEchoArgs) String

func (p *TestServiceEchoArgs) String() string

type TestServiceEchoClientArgs

type TestServiceEchoClientArgs struct {
	Req *Request `thrift:"req,1" frugal:"1,default,Request" json:"req"`
}

func NewTestServiceEchoClientArgs

func NewTestServiceEchoClientArgs() *TestServiceEchoClientArgs

func (*TestServiceEchoClientArgs) BLength

func (p *TestServiceEchoClientArgs) BLength() int

func (*TestServiceEchoClientArgs) FastRead

func (p *TestServiceEchoClientArgs) FastRead(buf []byte) (int, error)

func (*TestServiceEchoClientArgs) FastReadField1

func (p *TestServiceEchoClientArgs) FastReadField1(buf []byte) (int, error)

func (*TestServiceEchoClientArgs) FastWrite

func (p *TestServiceEchoClientArgs) FastWrite(buf []byte) int

func (*TestServiceEchoClientArgs) FastWriteNocopy

func (p *TestServiceEchoClientArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoClientArgs) GetFirstArgument

func (p *TestServiceEchoClientArgs) GetFirstArgument() interface{}

func (*TestServiceEchoClientArgs) GetReq

func (p *TestServiceEchoClientArgs) GetReq() (v *Request)

func (*TestServiceEchoClientArgs) InitDefault

func (p *TestServiceEchoClientArgs) InitDefault()

func (*TestServiceEchoClientArgs) IsSetReq

func (p *TestServiceEchoClientArgs) IsSetReq() bool

func (*TestServiceEchoClientArgs) SetReq

func (p *TestServiceEchoClientArgs) SetReq(val *Request)

func (*TestServiceEchoClientArgs) String

func (p *TestServiceEchoClientArgs) String() string

type TestServiceEchoClientResult

type TestServiceEchoClientResult struct {
	Success *Response `thrift:"success,0,optional" frugal:"0,optional,Response" json:"success,omitempty"`
}

func NewTestServiceEchoClientResult

func NewTestServiceEchoClientResult() *TestServiceEchoClientResult

func (*TestServiceEchoClientResult) BLength

func (p *TestServiceEchoClientResult) BLength() int

func (*TestServiceEchoClientResult) FastRead

func (p *TestServiceEchoClientResult) FastRead(buf []byte) (int, error)

func (*TestServiceEchoClientResult) FastReadField0

func (p *TestServiceEchoClientResult) FastReadField0(buf []byte) (int, error)

func (*TestServiceEchoClientResult) FastWrite

func (p *TestServiceEchoClientResult) FastWrite(buf []byte) int

func (*TestServiceEchoClientResult) FastWriteNocopy

func (p *TestServiceEchoClientResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoClientResult) GetResult

func (p *TestServiceEchoClientResult) GetResult() interface{}

func (*TestServiceEchoClientResult) GetSuccess

func (p *TestServiceEchoClientResult) GetSuccess() (v *Response)

func (*TestServiceEchoClientResult) InitDefault

func (p *TestServiceEchoClientResult) InitDefault()

func (*TestServiceEchoClientResult) IsSetSuccess

func (p *TestServiceEchoClientResult) IsSetSuccess() bool

func (*TestServiceEchoClientResult) SetSuccess

func (p *TestServiceEchoClientResult) SetSuccess(x interface{})

func (*TestServiceEchoClientResult) String

func (p *TestServiceEchoClientResult) String() string

type TestServiceEchoPingPongArgs

type TestServiceEchoPingPongArgs struct {
	Req *Request `thrift:"req,1" frugal:"1,default,Request" json:"req"`
}

func NewTestServiceEchoPingPongArgs

func NewTestServiceEchoPingPongArgs() *TestServiceEchoPingPongArgs

func (*TestServiceEchoPingPongArgs) BLength

func (p *TestServiceEchoPingPongArgs) BLength() int

func (*TestServiceEchoPingPongArgs) FastRead

func (p *TestServiceEchoPingPongArgs) FastRead(buf []byte) (int, error)

func (*TestServiceEchoPingPongArgs) FastReadField1

func (p *TestServiceEchoPingPongArgs) FastReadField1(buf []byte) (int, error)

func (*TestServiceEchoPingPongArgs) FastWrite

func (p *TestServiceEchoPingPongArgs) FastWrite(buf []byte) int

func (*TestServiceEchoPingPongArgs) FastWriteNocopy

func (p *TestServiceEchoPingPongArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoPingPongArgs) GetFirstArgument

func (p *TestServiceEchoPingPongArgs) GetFirstArgument() interface{}

func (*TestServiceEchoPingPongArgs) GetReq

func (p *TestServiceEchoPingPongArgs) GetReq() (v *Request)

func (*TestServiceEchoPingPongArgs) InitDefault

func (p *TestServiceEchoPingPongArgs) InitDefault()

func (*TestServiceEchoPingPongArgs) IsSetReq

func (p *TestServiceEchoPingPongArgs) IsSetReq() bool

func (*TestServiceEchoPingPongArgs) SetReq

func (p *TestServiceEchoPingPongArgs) SetReq(val *Request)

func (*TestServiceEchoPingPongArgs) String

func (p *TestServiceEchoPingPongArgs) String() string

type TestServiceEchoPingPongResult

type TestServiceEchoPingPongResult struct {
	Success *Response `thrift:"success,0,optional" frugal:"0,optional,Response" json:"success,omitempty"`
}

func NewTestServiceEchoPingPongResult

func NewTestServiceEchoPingPongResult() *TestServiceEchoPingPongResult

func (*TestServiceEchoPingPongResult) BLength

func (p *TestServiceEchoPingPongResult) BLength() int

func (*TestServiceEchoPingPongResult) FastRead

func (p *TestServiceEchoPingPongResult) FastRead(buf []byte) (int, error)

func (*TestServiceEchoPingPongResult) FastReadField0

func (p *TestServiceEchoPingPongResult) FastReadField0(buf []byte) (int, error)

func (*TestServiceEchoPingPongResult) FastWrite

func (p *TestServiceEchoPingPongResult) FastWrite(buf []byte) int

func (*TestServiceEchoPingPongResult) FastWriteNocopy

func (p *TestServiceEchoPingPongResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoPingPongResult) GetResult

func (p *TestServiceEchoPingPongResult) GetResult() interface{}

func (*TestServiceEchoPingPongResult) GetSuccess

func (p *TestServiceEchoPingPongResult) GetSuccess() (v *Response)

func (*TestServiceEchoPingPongResult) InitDefault

func (p *TestServiceEchoPingPongResult) InitDefault()

func (*TestServiceEchoPingPongResult) IsSetSuccess

func (p *TestServiceEchoPingPongResult) IsSetSuccess() bool

func (*TestServiceEchoPingPongResult) SetSuccess

func (p *TestServiceEchoPingPongResult) SetSuccess(x interface{})

func (*TestServiceEchoPingPongResult) String

type TestServiceEchoResult

type TestServiceEchoResult struct {
	Success *Response `thrift:"success,0,optional" frugal:"0,optional,Response" json:"success,omitempty"`
}

func NewTestServiceEchoResult

func NewTestServiceEchoResult() *TestServiceEchoResult

func (*TestServiceEchoResult) BLength

func (p *TestServiceEchoResult) BLength() int

func (*TestServiceEchoResult) FastRead

func (p *TestServiceEchoResult) FastRead(buf []byte) (int, error)

func (*TestServiceEchoResult) FastReadField0

func (p *TestServiceEchoResult) FastReadField0(buf []byte) (int, error)

func (*TestServiceEchoResult) FastWrite

func (p *TestServiceEchoResult) FastWrite(buf []byte) int

func (*TestServiceEchoResult) FastWriteNocopy

func (p *TestServiceEchoResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoResult) GetResult

func (p *TestServiceEchoResult) GetResult() interface{}

func (*TestServiceEchoResult) GetSuccess

func (p *TestServiceEchoResult) GetSuccess() (v *Response)

func (*TestServiceEchoResult) InitDefault

func (p *TestServiceEchoResult) InitDefault()

func (*TestServiceEchoResult) IsSetSuccess

func (p *TestServiceEchoResult) IsSetSuccess() bool

func (*TestServiceEchoResult) SetSuccess

func (p *TestServiceEchoResult) SetSuccess(x interface{})

func (*TestServiceEchoResult) String

func (p *TestServiceEchoResult) String() string

type TestServiceEchoServerArgs

type TestServiceEchoServerArgs struct {
	Req *Request `thrift:"req,1" frugal:"1,default,Request" json:"req"`
}

func NewTestServiceEchoServerArgs

func NewTestServiceEchoServerArgs() *TestServiceEchoServerArgs

func (*TestServiceEchoServerArgs) BLength

func (p *TestServiceEchoServerArgs) BLength() int

func (*TestServiceEchoServerArgs) FastRead

func (p *TestServiceEchoServerArgs) FastRead(buf []byte) (int, error)

func (*TestServiceEchoServerArgs) FastReadField1

func (p *TestServiceEchoServerArgs) FastReadField1(buf []byte) (int, error)

func (*TestServiceEchoServerArgs) FastWrite

func (p *TestServiceEchoServerArgs) FastWrite(buf []byte) int

func (*TestServiceEchoServerArgs) FastWriteNocopy

func (p *TestServiceEchoServerArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoServerArgs) GetFirstArgument

func (p *TestServiceEchoServerArgs) GetFirstArgument() interface{}

func (*TestServiceEchoServerArgs) GetReq

func (p *TestServiceEchoServerArgs) GetReq() (v *Request)

func (*TestServiceEchoServerArgs) InitDefault

func (p *TestServiceEchoServerArgs) InitDefault()

func (*TestServiceEchoServerArgs) IsSetReq

func (p *TestServiceEchoServerArgs) IsSetReq() bool

func (*TestServiceEchoServerArgs) SetReq

func (p *TestServiceEchoServerArgs) SetReq(val *Request)

func (*TestServiceEchoServerArgs) String

func (p *TestServiceEchoServerArgs) String() string

type TestServiceEchoServerResult

type TestServiceEchoServerResult struct {
	Success *Response `thrift:"success,0,optional" frugal:"0,optional,Response" json:"success,omitempty"`
}

func NewTestServiceEchoServerResult

func NewTestServiceEchoServerResult() *TestServiceEchoServerResult

func (*TestServiceEchoServerResult) BLength

func (p *TestServiceEchoServerResult) BLength() int

func (*TestServiceEchoServerResult) FastRead

func (p *TestServiceEchoServerResult) FastRead(buf []byte) (int, error)

func (*TestServiceEchoServerResult) FastReadField0

func (p *TestServiceEchoServerResult) FastReadField0(buf []byte) (int, error)

func (*TestServiceEchoServerResult) FastWrite

func (p *TestServiceEchoServerResult) FastWrite(buf []byte) int

func (*TestServiceEchoServerResult) FastWriteNocopy

func (p *TestServiceEchoServerResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoServerResult) GetResult

func (p *TestServiceEchoServerResult) GetResult() interface{}

func (*TestServiceEchoServerResult) GetSuccess

func (p *TestServiceEchoServerResult) GetSuccess() (v *Response)

func (*TestServiceEchoServerResult) InitDefault

func (p *TestServiceEchoServerResult) InitDefault()

func (*TestServiceEchoServerResult) IsSetSuccess

func (p *TestServiceEchoServerResult) IsSetSuccess() bool

func (*TestServiceEchoServerResult) SetSuccess

func (p *TestServiceEchoServerResult) SetSuccess(x interface{})

func (*TestServiceEchoServerResult) String

func (p *TestServiceEchoServerResult) String() string

type TestServiceEchoUnaryArgs

type TestServiceEchoUnaryArgs struct {
	Req *Request `thrift:"req,1" frugal:"1,default,Request" json:"req"`
}

func NewTestServiceEchoUnaryArgs

func NewTestServiceEchoUnaryArgs() *TestServiceEchoUnaryArgs

func (*TestServiceEchoUnaryArgs) BLength

func (p *TestServiceEchoUnaryArgs) BLength() int

func (*TestServiceEchoUnaryArgs) FastRead

func (p *TestServiceEchoUnaryArgs) FastRead(buf []byte) (int, error)

func (*TestServiceEchoUnaryArgs) FastReadField1

func (p *TestServiceEchoUnaryArgs) FastReadField1(buf []byte) (int, error)

func (*TestServiceEchoUnaryArgs) FastWrite

func (p *TestServiceEchoUnaryArgs) FastWrite(buf []byte) int

func (*TestServiceEchoUnaryArgs) FastWriteNocopy

func (p *TestServiceEchoUnaryArgs) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoUnaryArgs) GetFirstArgument

func (p *TestServiceEchoUnaryArgs) GetFirstArgument() interface{}

func (*TestServiceEchoUnaryArgs) GetReq

func (p *TestServiceEchoUnaryArgs) GetReq() (v *Request)

func (*TestServiceEchoUnaryArgs) InitDefault

func (p *TestServiceEchoUnaryArgs) InitDefault()

func (*TestServiceEchoUnaryArgs) IsSetReq

func (p *TestServiceEchoUnaryArgs) IsSetReq() bool

func (*TestServiceEchoUnaryArgs) SetReq

func (p *TestServiceEchoUnaryArgs) SetReq(val *Request)

func (*TestServiceEchoUnaryArgs) String

func (p *TestServiceEchoUnaryArgs) String() string

type TestServiceEchoUnaryResult

type TestServiceEchoUnaryResult struct {
	Success *Response `thrift:"success,0,optional" frugal:"0,optional,Response" json:"success,omitempty"`
}

func NewTestServiceEchoUnaryResult

func NewTestServiceEchoUnaryResult() *TestServiceEchoUnaryResult

func (*TestServiceEchoUnaryResult) BLength

func (p *TestServiceEchoUnaryResult) BLength() int

func (*TestServiceEchoUnaryResult) FastRead

func (p *TestServiceEchoUnaryResult) FastRead(buf []byte) (int, error)

func (*TestServiceEchoUnaryResult) FastReadField0

func (p *TestServiceEchoUnaryResult) FastReadField0(buf []byte) (int, error)

func (*TestServiceEchoUnaryResult) FastWrite

func (p *TestServiceEchoUnaryResult) FastWrite(buf []byte) int

func (*TestServiceEchoUnaryResult) FastWriteNocopy

func (p *TestServiceEchoUnaryResult) FastWriteNocopy(buf []byte, w thrift.NocopyWriter) int

func (*TestServiceEchoUnaryResult) GetResult

func (p *TestServiceEchoUnaryResult) GetResult() interface{}

func (*TestServiceEchoUnaryResult) GetSuccess

func (p *TestServiceEchoUnaryResult) GetSuccess() (v *Response)

func (*TestServiceEchoUnaryResult) InitDefault

func (p *TestServiceEchoUnaryResult) InitDefault()

func (*TestServiceEchoUnaryResult) IsSetSuccess

func (p *TestServiceEchoUnaryResult) IsSetSuccess() bool

func (*TestServiceEchoUnaryResult) SetSuccess

func (p *TestServiceEchoUnaryResult) SetSuccess(x interface{})

func (*TestServiceEchoUnaryResult) String

func (p *TestServiceEchoUnaryResult) String() string

type TestService_EchoServerServer

type TestService_EchoServerServer streaming.ServerStreamingServer[Response]

Directories

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

Jump to

Keyboard shortcuts

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