rpc

package
v0.0.0-...-8908e29 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DionysusGreetArgs_Req_DEFAULT *greet.GreetRequest
View Source
var DionysusGreetResult_Success_DEFAULT *greet.GreetResponse
View Source
var KitexUnusedProtection = struct{}{}

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

Functions

This section is empty.

Types

type Dionysus

type Dionysus interface {
	Greet(ctx context.Context, req *greet.GreetRequest) (r *greet.GreetResponse, err error)
}

type DionysusClient

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

func NewDionysusClient

func NewDionysusClient(c thrift.TClient) *DionysusClient

func NewDionysusClientProtocol

func NewDionysusClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *DionysusClient

func (*DionysusClient) Client_

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

func (*DionysusClient) Greet

func (p *DionysusClient) Greet(ctx context.Context, req *greet.GreetRequest) (r *greet.GreetResponse, err error)

type DionysusGreetArgs

type DionysusGreetArgs struct {
	Req *greet.GreetRequest `thrift:"req,1" frugal:"1,default,greet.GreetRequest" json:"req"`
}

func NewDionysusGreetArgs

func NewDionysusGreetArgs() *DionysusGreetArgs

func (*DionysusGreetArgs) BLength

func (p *DionysusGreetArgs) BLength() int

func (*DionysusGreetArgs) DeepEqual

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

func (*DionysusGreetArgs) FastRead

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

func (*DionysusGreetArgs) FastReadField1

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

func (*DionysusGreetArgs) FastWrite

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

for compatibility

func (*DionysusGreetArgs) FastWriteNocopy

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

func (*DionysusGreetArgs) Field1DeepEqual

func (p *DionysusGreetArgs) Field1DeepEqual(src *greet.GreetRequest) bool

func (*DionysusGreetArgs) GetFirstArgument

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

func (*DionysusGreetArgs) GetReq

func (p *DionysusGreetArgs) GetReq() (v *greet.GreetRequest)

func (*DionysusGreetArgs) InitDefault

func (p *DionysusGreetArgs) InitDefault()

func (*DionysusGreetArgs) IsSetReq

func (p *DionysusGreetArgs) IsSetReq() bool

func (*DionysusGreetArgs) Read

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

func (*DionysusGreetArgs) ReadField1

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

func (*DionysusGreetArgs) SetReq

func (p *DionysusGreetArgs) SetReq(val *greet.GreetRequest)

func (*DionysusGreetArgs) String

func (p *DionysusGreetArgs) String() string

func (*DionysusGreetArgs) Write

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

type DionysusGreetResult

type DionysusGreetResult struct {
	Success *greet.GreetResponse `thrift:"success,0,optional" frugal:"0,optional,greet.GreetResponse" json:"success,omitempty"`
}

func NewDionysusGreetResult

func NewDionysusGreetResult() *DionysusGreetResult

func (*DionysusGreetResult) BLength

func (p *DionysusGreetResult) BLength() int

func (*DionysusGreetResult) DeepEqual

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

func (*DionysusGreetResult) FastRead

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

func (*DionysusGreetResult) FastReadField0

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

func (*DionysusGreetResult) FastWrite

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

for compatibility

func (*DionysusGreetResult) FastWriteNocopy

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

func (*DionysusGreetResult) Field0DeepEqual

func (p *DionysusGreetResult) Field0DeepEqual(src *greet.GreetResponse) bool

func (*DionysusGreetResult) GetResult

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

func (*DionysusGreetResult) GetSuccess

func (p *DionysusGreetResult) GetSuccess() (v *greet.GreetResponse)

func (*DionysusGreetResult) InitDefault

func (p *DionysusGreetResult) InitDefault()

func (*DionysusGreetResult) IsSetSuccess

func (p *DionysusGreetResult) IsSetSuccess() bool

func (*DionysusGreetResult) Read

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

func (*DionysusGreetResult) ReadField0

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

func (*DionysusGreetResult) SetSuccess

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

func (*DionysusGreetResult) String

func (p *DionysusGreetResult) String() string

func (*DionysusGreetResult) Write

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

type DionysusProcessor

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

func NewDionysusProcessor

func NewDionysusProcessor(handler Dionysus) *DionysusProcessor

func (*DionysusProcessor) AddToProcessorMap

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

func (*DionysusProcessor) GetProcessorFunction

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

func (*DionysusProcessor) Process

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

func (*DionysusProcessor) ProcessorMap

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

Directories

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

Jump to

Keyboard shortcuts

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