echo

package
v0.0.0-...-a8e0795 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT 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 EchoRequest

type EchoRequest struct {
	Message string `thrift:"message,1,required" frugal:"1,required,string" json:"message"`
}
var EchoServiceEchoArgs_Req_DEFAULT *EchoRequest

func NewEchoRequest

func NewEchoRequest() *EchoRequest

func (*EchoRequest) BLength

func (p *EchoRequest) BLength() int

func (*EchoRequest) DeepEqual

func (p *EchoRequest) DeepEqual(ano *EchoRequest) bool

func (*EchoRequest) FastRead

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

func (*EchoRequest) FastReadField1

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

func (*EchoRequest) FastWrite

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

for compatibility

func (*EchoRequest) FastWriteNocopy

func (p *EchoRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*EchoRequest) Field1DeepEqual

func (p *EchoRequest) Field1DeepEqual(src string) bool

func (*EchoRequest) GetMessage

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

func (*EchoRequest) InitDefault

func (p *EchoRequest) InitDefault()

func (*EchoRequest) Read

func (p *EchoRequest) Read(iprot thrift.TProtocol) (err error)

func (*EchoRequest) ReadField1

func (p *EchoRequest) ReadField1(iprot thrift.TProtocol) error

func (*EchoRequest) SetMessage

func (p *EchoRequest) SetMessage(val string)

func (*EchoRequest) String

func (p *EchoRequest) String() string

func (*EchoRequest) Write

func (p *EchoRequest) Write(oprot thrift.TProtocol) (err error)

type EchoResponse

type EchoResponse struct {
	Message string `thrift:"message,1,required" frugal:"1,required,string" json:"message"`
}
var EchoServiceEchoResult_Success_DEFAULT *EchoResponse

func NewEchoResponse

func NewEchoResponse() *EchoResponse

func (*EchoResponse) BLength

func (p *EchoResponse) BLength() int

func (*EchoResponse) DeepEqual

func (p *EchoResponse) DeepEqual(ano *EchoResponse) bool

func (*EchoResponse) FastRead

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

func (*EchoResponse) FastReadField1

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

func (*EchoResponse) FastWrite

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

for compatibility

func (*EchoResponse) FastWriteNocopy

func (p *EchoResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*EchoResponse) Field1DeepEqual

func (p *EchoResponse) Field1DeepEqual(src string) bool

func (*EchoResponse) GetMessage

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

func (*EchoResponse) InitDefault

func (p *EchoResponse) InitDefault()

func (*EchoResponse) Read

func (p *EchoResponse) Read(iprot thrift.TProtocol) (err error)

func (*EchoResponse) ReadField1

func (p *EchoResponse) ReadField1(iprot thrift.TProtocol) error

func (*EchoResponse) SetMessage

func (p *EchoResponse) SetMessage(val string)

func (*EchoResponse) String

func (p *EchoResponse) String() string

func (*EchoResponse) Write

func (p *EchoResponse) Write(oprot thrift.TProtocol) (err error)

type EchoService

type EchoService interface {
	Echo(ctx context.Context, req *EchoRequest) (r *EchoResponse, err error)
}

type EchoServiceClient

type EchoServiceClient struct {
	// contains filtered or unexported fields
}

func NewEchoServiceClient

func NewEchoServiceClient(c thrift.TClient) *EchoServiceClient

func NewEchoServiceClientProtocol

func NewEchoServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *EchoServiceClient

func (*EchoServiceClient) Client_

func (p *EchoServiceClient) Client_() thrift.TClient

func (*EchoServiceClient) Echo

func (p *EchoServiceClient) Echo(ctx context.Context, req *EchoRequest) (r *EchoResponse, err error)

type EchoServiceEchoArgs

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

func NewEchoServiceEchoArgs

func NewEchoServiceEchoArgs() *EchoServiceEchoArgs

func (*EchoServiceEchoArgs) BLength

func (p *EchoServiceEchoArgs) BLength() int

func (*EchoServiceEchoArgs) DeepEqual

func (p *EchoServiceEchoArgs) DeepEqual(ano *EchoServiceEchoArgs) bool

func (*EchoServiceEchoArgs) FastRead

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

func (*EchoServiceEchoArgs) FastReadField1

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

func (*EchoServiceEchoArgs) FastWrite

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

for compatibility

func (*EchoServiceEchoArgs) FastWriteNocopy

func (p *EchoServiceEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*EchoServiceEchoArgs) Field1DeepEqual

func (p *EchoServiceEchoArgs) Field1DeepEqual(src *EchoRequest) bool

func (*EchoServiceEchoArgs) GetFirstArgument

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

func (*EchoServiceEchoArgs) GetReq

func (p *EchoServiceEchoArgs) GetReq() (v *EchoRequest)

func (*EchoServiceEchoArgs) InitDefault

func (p *EchoServiceEchoArgs) InitDefault()

func (*EchoServiceEchoArgs) IsSetReq

func (p *EchoServiceEchoArgs) IsSetReq() bool

func (*EchoServiceEchoArgs) Read

func (p *EchoServiceEchoArgs) Read(iprot thrift.TProtocol) (err error)

func (*EchoServiceEchoArgs) ReadField1

func (p *EchoServiceEchoArgs) ReadField1(iprot thrift.TProtocol) error

func (*EchoServiceEchoArgs) SetReq

func (p *EchoServiceEchoArgs) SetReq(val *EchoRequest)

func (*EchoServiceEchoArgs) String

func (p *EchoServiceEchoArgs) String() string

func (*EchoServiceEchoArgs) Write

func (p *EchoServiceEchoArgs) Write(oprot thrift.TProtocol) (err error)

type EchoServiceEchoResult

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

func NewEchoServiceEchoResult

func NewEchoServiceEchoResult() *EchoServiceEchoResult

func (*EchoServiceEchoResult) BLength

func (p *EchoServiceEchoResult) BLength() int

func (*EchoServiceEchoResult) DeepEqual

func (*EchoServiceEchoResult) FastRead

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

func (*EchoServiceEchoResult) FastReadField0

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

func (*EchoServiceEchoResult) FastWrite

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

for compatibility

func (*EchoServiceEchoResult) FastWriteNocopy

func (p *EchoServiceEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*EchoServiceEchoResult) Field0DeepEqual

func (p *EchoServiceEchoResult) Field0DeepEqual(src *EchoResponse) bool

func (*EchoServiceEchoResult) GetResult

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

func (*EchoServiceEchoResult) GetSuccess

func (p *EchoServiceEchoResult) GetSuccess() (v *EchoResponse)

func (*EchoServiceEchoResult) InitDefault

func (p *EchoServiceEchoResult) InitDefault()

func (*EchoServiceEchoResult) IsSetSuccess

func (p *EchoServiceEchoResult) IsSetSuccess() bool

func (*EchoServiceEchoResult) Read

func (p *EchoServiceEchoResult) Read(iprot thrift.TProtocol) (err error)

func (*EchoServiceEchoResult) ReadField0

func (p *EchoServiceEchoResult) ReadField0(iprot thrift.TProtocol) error

func (*EchoServiceEchoResult) SetSuccess

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

func (*EchoServiceEchoResult) String

func (p *EchoServiceEchoResult) String() string

func (*EchoServiceEchoResult) Write

func (p *EchoServiceEchoResult) Write(oprot thrift.TProtocol) (err error)

type EchoServiceProcessor

type EchoServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewEchoServiceProcessor

func NewEchoServiceProcessor(handler EchoService) *EchoServiceProcessor

func (*EchoServiceProcessor) AddToProcessorMap

func (p *EchoServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*EchoServiceProcessor) GetProcessorFunction

func (p *EchoServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*EchoServiceProcessor) Process

func (p *EchoServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*EchoServiceProcessor) ProcessorMap

func (p *EchoServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

Directories

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

Jump to

Keyboard shortcuts

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