echo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type EchoService

type EchoService interface {
	// Parameters:
	//  - Req
	Echo(ctx context.Context, req *Request) (_r *Response, _err error)
	// Parameters:
	//  - Req
	VisitOneway(ctx context.Context, req *Request) (_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 *Request) (_r *Response, _err error)

Parameters:

  • Req

func (*EchoServiceClient) LastResponseMeta_

func (p *EchoServiceClient) LastResponseMeta_() thrift.ResponseMeta

func (*EchoServiceClient) SetLastResponseMeta_

func (p *EchoServiceClient) SetLastResponseMeta_(meta thrift.ResponseMeta)

func (*EchoServiceClient) VisitOneway

func (p *EchoServiceClient) VisitOneway(ctx context.Context, req *Request) (_err error)

Parameters:

  • Req

type EchoServiceEchoArgs

type EchoServiceEchoArgs struct {
	Req *Request `thrift:"req,1" db:"req" json:"req"`
}

Attributes:

  • Req

func NewEchoServiceEchoArgs

func NewEchoServiceEchoArgs() *EchoServiceEchoArgs

func (*EchoServiceEchoArgs) GetReq

func (p *EchoServiceEchoArgs) GetReq() *Request

func (*EchoServiceEchoArgs) IsSetReq

func (p *EchoServiceEchoArgs) IsSetReq() bool

func (*EchoServiceEchoArgs) Read

func (*EchoServiceEchoArgs) ReadField1

func (p *EchoServiceEchoArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*EchoServiceEchoArgs) String

func (p *EchoServiceEchoArgs) String() string

func (*EchoServiceEchoArgs) Write

type EchoServiceEchoResult

type EchoServiceEchoResult struct {
	Success *Response `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewEchoServiceEchoResult

func NewEchoServiceEchoResult() *EchoServiceEchoResult

func (*EchoServiceEchoResult) GetSuccess

func (p *EchoServiceEchoResult) GetSuccess() *Response

func (*EchoServiceEchoResult) IsSetSuccess

func (p *EchoServiceEchoResult) IsSetSuccess() bool

func (*EchoServiceEchoResult) Read

func (*EchoServiceEchoResult) ReadField0

func (p *EchoServiceEchoResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error

func (*EchoServiceEchoResult) String

func (p *EchoServiceEchoResult) String() string

func (*EchoServiceEchoResult) Write

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

type EchoServiceVisitOnewayArgs

type EchoServiceVisitOnewayArgs struct {
	Req *Request `thrift:"req,1" db:"req" json:"req"`
}

Attributes:

  • Req

func NewEchoServiceVisitOnewayArgs

func NewEchoServiceVisitOnewayArgs() *EchoServiceVisitOnewayArgs

func (*EchoServiceVisitOnewayArgs) GetReq

func (p *EchoServiceVisitOnewayArgs) GetReq() *Request

func (*EchoServiceVisitOnewayArgs) IsSetReq

func (p *EchoServiceVisitOnewayArgs) IsSetReq() bool

func (*EchoServiceVisitOnewayArgs) Read

func (*EchoServiceVisitOnewayArgs) ReadField1

func (p *EchoServiceVisitOnewayArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*EchoServiceVisitOnewayArgs) String

func (p *EchoServiceVisitOnewayArgs) String() string

func (*EchoServiceVisitOnewayArgs) Write

type Request

type Request struct {
	Msg string `thrift:"Msg,1" db:"Msg" json:"Msg"`
}

Attributes:

  • Msg
var EchoServiceEchoArgs_Req_DEFAULT *Request
var EchoServiceVisitOnewayArgs_Req_DEFAULT *Request

func NewRequest

func NewRequest() *Request

func (*Request) Equals

func (p *Request) Equals(other *Request) bool

func (*Request) GetMsg

func (p *Request) GetMsg() string

func (*Request) Read

func (p *Request) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) ReadField1

func (p *Request) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Request) String

func (p *Request) String() string

func (*Request) Validate

func (p *Request) Validate() error

func (*Request) Write

func (p *Request) Write(ctx context.Context, oprot thrift.TProtocol) error

type Response

type Response struct {
	Msg string `thrift:"Msg,1" db:"Msg" json:"Msg"`
}

Attributes:

  • Msg
var EchoServiceEchoResult_Success_DEFAULT *Response

func NewResponse

func NewResponse() *Response

func (*Response) Equals

func (p *Response) Equals(other *Response) bool

func (*Response) GetMsg

func (p *Response) GetMsg() string

func (*Response) Read

func (p *Response) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*Response) ReadField1

func (p *Response) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*Response) String

func (p *Response) String() string

func (*Response) Validate

func (p *Response) Validate() error

func (*Response) Write

func (p *Response) Write(ctx context.Context, oprot thrift.TProtocol) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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