api

package
v0.0.0-...-92745da Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 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 Hello

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

type HelloClient

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

func NewHelloClient

func NewHelloClient(c thrift.TClient) *HelloClient

func NewHelloClientProtocol

func NewHelloClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *HelloClient

func (*HelloClient) Client_

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

func (*HelloClient) Echo

func (p *HelloClient) Echo(ctx context.Context, req *Request) (r *Response, err error)

type HelloEchoArgs

type HelloEchoArgs struct {
	Req *Request `thrift:"req,1" 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

for compatibility

func (*HelloEchoArgs) FastWriteNocopy

func (p *HelloEchoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) 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() *Request

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" 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

for compatibility

func (*HelloEchoResult) FastWriteNocopy

func (p *HelloEchoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) 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() *Response

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 HelloProcessor

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

func NewHelloProcessor

func NewHelloProcessor(handler Hello) *HelloProcessor

func (*HelloProcessor) AddToProcessorMap

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

func (*HelloProcessor) GetProcessorFunction

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

func (*HelloProcessor) Process

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

func (*HelloProcessor) ProcessorMap

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

type Request

type Request struct {
	Message string `thrift:"message,1" 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

for compatibility

func (*Request) FastWriteNocopy

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

func (*Request) Field1DeepEqual

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

func (*Request) GetMessage

func (p *Request) GetMessage() string

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" 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

for compatibility

func (*Response) FastWriteNocopy

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

func (*Response) Field1DeepEqual

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

func (*Response) GetMessage

func (p *Response) GetMessage() string

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

Jump to

Keyboard shortcuts

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