api

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: 52

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 Echo

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

type EchoEchoArgs

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

func NewEchoEchoArgs

func NewEchoEchoArgs() *EchoEchoArgs

func (*EchoEchoArgs) BLength

func (p *EchoEchoArgs) BLength() int

func (*EchoEchoArgs) DeepEqual

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

func (*EchoEchoArgs) FastRead

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

func (*EchoEchoArgs) FastReadField1

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

func (*EchoEchoArgs) FastWrite

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

func (*EchoEchoArgs) FastWriteNocopy

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

func (*EchoEchoArgs) Field1DeepEqual

func (p *EchoEchoArgs) Field1DeepEqual(src *Request) bool

func (*EchoEchoArgs) GetFirstArgument

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

func (*EchoEchoArgs) GetReq

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

func (*EchoEchoArgs) InitDefault added in v0.2.1

func (p *EchoEchoArgs) InitDefault()

func (*EchoEchoArgs) IsSetReq

func (p *EchoEchoArgs) IsSetReq() bool

func (*EchoEchoArgs) Read

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

func (*EchoEchoArgs) ReadField1

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

func (*EchoEchoArgs) SetReq

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

func (*EchoEchoArgs) String

func (p *EchoEchoArgs) String() string

func (*EchoEchoArgs) Write

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

type EchoEchoResult

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

func NewEchoEchoResult

func NewEchoEchoResult() *EchoEchoResult

func (*EchoEchoResult) BLength

func (p *EchoEchoResult) BLength() int

func (*EchoEchoResult) DeepEqual

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

func (*EchoEchoResult) FastRead

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

func (*EchoEchoResult) FastReadField0

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

func (*EchoEchoResult) FastWrite

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

func (*EchoEchoResult) FastWriteNocopy

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

func (*EchoEchoResult) Field0DeepEqual

func (p *EchoEchoResult) Field0DeepEqual(src *Response) bool

func (*EchoEchoResult) GetResult

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

func (*EchoEchoResult) GetSuccess

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

func (*EchoEchoResult) InitDefault added in v0.2.1

func (p *EchoEchoResult) InitDefault()

func (*EchoEchoResult) IsSetSuccess

func (p *EchoEchoResult) IsSetSuccess() bool

func (*EchoEchoResult) Read

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

func (*EchoEchoResult) ReadField0

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

func (*EchoEchoResult) SetSuccess

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

func (*EchoEchoResult) String

func (p *EchoEchoResult) String() string

func (*EchoEchoResult) Write

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

type Request

type Request struct {
	Message string `thrift:"message,1" frugal:"1,default,string" json:"message"`
}
var EchoEchoArgs_Req_DEFAULT *Request

func NewRequest

func NewRequest() *Request

func (*Request) BLength

func (p *Request) BLength() int

func (*Request) DeepEqual

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

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) Field1DeepEqual

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

func (*Request) GetMessage

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

func (*Request) InitDefault added in v0.2.1

func (p *Request) InitDefault()

func (*Request) Read

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

func (*Request) ReadField1

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

func (*Request) SetMessage

func (p *Request) SetMessage(val string)

func (*Request) String

func (p *Request) String() string

func (*Request) Write

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

type Response

type Response struct {
	Message string `thrift:"message,1" frugal:"1,default,string" json:"message"`
}
var EchoEchoResult_Success_DEFAULT *Response

func NewResponse

func NewResponse() *Response

func (*Response) BLength

func (p *Response) BLength() int

func (*Response) DeepEqual

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

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) Field1DeepEqual

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

func (*Response) GetMessage

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

func (*Response) InitDefault added in v0.2.1

func (p *Response) InitDefault()

func (*Response) Read

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

func (*Response) ReadField1

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

func (*Response) SetMessage

func (p *Response) SetMessage(val string)

func (*Response) String

func (p *Response) String() string

func (*Response) Write

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

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