echo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type Echo

type Echo interface {
	// Parameters:
	//  - Request
	Ping(ctx context.Context, request *Request) (err error)
}

type EchoClient

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

func NewEchoClient

func NewEchoClient(c thrift.TClient) *EchoClient

func NewEchoClientProtocol

func NewEchoClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *EchoClient

func (*EchoClient) Client_

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

func (*EchoClient) Ping

func (p *EchoClient) Ping(ctx context.Context, request *Request) (err error)

Parameters:

  • Request

type EchoPingArgs

type EchoPingArgs struct {
	Request *Request `thrift:"request,1" db:"request" json:"request"`
}

Attributes:

  • Request

func NewEchoPingArgs

func NewEchoPingArgs() *EchoPingArgs

func (*EchoPingArgs) GetRequest

func (p *EchoPingArgs) GetRequest() *Request

func (*EchoPingArgs) IsSetRequest

func (p *EchoPingArgs) IsSetRequest() bool

func (*EchoPingArgs) Read

func (p *EchoPingArgs) Read(iprot thrift.TProtocol) error

func (*EchoPingArgs) ReadField1

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

func (*EchoPingArgs) String

func (p *EchoPingArgs) String() string

func (*EchoPingArgs) Write

func (p *EchoPingArgs) Write(oprot thrift.TProtocol) error

type EchoProcessor

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

func NewEchoProcessor

func NewEchoProcessor(handler Echo) *EchoProcessor

func (*EchoProcessor) AddToProcessorMap

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

func (*EchoProcessor) GetProcessorFunction

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

func (*EchoProcessor) Process

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

func (*EchoProcessor) ProcessorMap

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

type Request

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

Attributes:

  • Message
var EchoPingArgs_Request_DEFAULT *Request

func NewRequest

func NewRequest() *Request

func (*Request) GetMessage

func (p *Request) GetMessage() string

func (*Request) Read

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

func (*Request) ReadField1

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

func (*Request) String

func (p *Request) String() string

func (*Request) Write

func (p *Request) Write(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