api

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: 17 modules, 37 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Hello

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

type HelloEchoArgs

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

func NewHelloEchoArgs

func NewHelloEchoArgs() *HelloEchoArgs

func (*HelloEchoArgs) BLength

func (p *HelloEchoArgs) BLength() int

func (*HelloEchoArgs) DeepEqual

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

func (*HelloEchoArgs) FastRead

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

func (*HelloEchoArgs) FastReadField1

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

func (*HelloEchoArgs) FastWrite

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

func (*HelloEchoArgs) FastWriteNocopy

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

func (*HelloEchoArgs) Field1DeepEqual

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

func (*HelloEchoArgs) GetFirstArgument

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

func (*HelloEchoArgs) GetReq

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

func (*HelloEchoArgs) InitDefault added in v0.4.0

func (p *HelloEchoArgs) InitDefault()

func (*HelloEchoArgs) IsSetReq

func (p *HelloEchoArgs) IsSetReq() bool

func (*HelloEchoArgs) Read

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

func (*HelloEchoArgs) ReadField1

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

func (*HelloEchoArgs) SetReq

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

func (*HelloEchoArgs) String

func (p *HelloEchoArgs) String() string

func (*HelloEchoArgs) Write

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

type HelloEchoResult

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

func NewHelloEchoResult

func NewHelloEchoResult() *HelloEchoResult

func (*HelloEchoResult) BLength

func (p *HelloEchoResult) BLength() int

func (*HelloEchoResult) DeepEqual

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

func (*HelloEchoResult) FastRead

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

func (*HelloEchoResult) FastReadField0

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

func (*HelloEchoResult) FastWrite

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

func (*HelloEchoResult) FastWriteNocopy

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

func (*HelloEchoResult) Field0DeepEqual

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

func (*HelloEchoResult) GetResult

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

func (*HelloEchoResult) GetSuccess

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

func (*HelloEchoResult) InitDefault added in v0.4.0

func (p *HelloEchoResult) InitDefault()

func (*HelloEchoResult) IsSetSuccess

func (p *HelloEchoResult) IsSetSuccess() bool

func (*HelloEchoResult) Read

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

func (*HelloEchoResult) ReadField0

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

func (*HelloEchoResult) SetSuccess

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

func (*HelloEchoResult) String

func (p *HelloEchoResult) String() string

func (*HelloEchoResult) Write

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

type Request

type Request struct {
	Message string `thrift:"message,1" frugal:"1,default,string" json:"message"`
}
var HelloEchoArgs_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.4.0

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 HelloEchoResult_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.4.0

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