ping

package
v0.0.0-...-aece62e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package ping is generated code used to make or handle TChannel calls using Thrift.

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var Pong_Pheader_DEFAULT string

Functions

func NewTChanPingPongServiceInheritedClient

func NewTChanPingPongServiceInheritedClient(thriftService string, client thrift.TChanClient) *tchanPingPongServiceClient

func NewTChanPingPongServiceServer

func NewTChanPingPongServiceServer(handler TChanPingPongService) thrift.TChanServer

NewTChanPingPongServiceServer wraps a handler for TChanPingPongService so it can be registered with a thrift.Server.

Types

type Ping

type Ping struct {
	Key string `thrift:"key,1,required" db:"key" json:"key"`
}

Attributes:

  • Key
var PingPongServicePingArgs_Request_DEFAULT *Ping

func NewPing

func NewPing() *Ping

func (*Ping) Equals

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

func (*Ping) GetKey

func (p *Ping) GetKey() string

func (*Ping) Read

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

func (*Ping) ReadField1

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

func (*Ping) String

func (p *Ping) String() string

func (*Ping) Write

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

type PingPongService

type PingPongService interface {
	// Parameters:
	//  - Request
	Ping(ctx context.Context, request *Ping) (_r *Pong, _err error)
}

type PingPongServiceClient

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

func NewPingPongServiceClient

func NewPingPongServiceClient(c thrift.TClient) *PingPongServiceClient

func NewPingPongServiceClientProtocol

func NewPingPongServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *PingPongServiceClient

func (*PingPongServiceClient) Client_

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

func (*PingPongServiceClient) LastResponseMeta_

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

func (*PingPongServiceClient) Ping

func (p *PingPongServiceClient) Ping(ctx context.Context, request *Ping) (_r *Pong, _err error)

Parameters:

  • Request

func (*PingPongServiceClient) SetLastResponseMeta_

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

type PingPongServicePingArgs

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

Attributes:

  • Request

func NewPingPongServicePingArgs

func NewPingPongServicePingArgs() *PingPongServicePingArgs

func (*PingPongServicePingArgs) GetRequest

func (p *PingPongServicePingArgs) GetRequest() *Ping

func (*PingPongServicePingArgs) IsSetRequest

func (p *PingPongServicePingArgs) IsSetRequest() bool

func (*PingPongServicePingArgs) Read

func (*PingPongServicePingArgs) ReadField1

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

func (*PingPongServicePingArgs) String

func (p *PingPongServicePingArgs) String() string

func (*PingPongServicePingArgs) Write

type PingPongServicePingResult

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

Attributes:

  • Success

func NewPingPongServicePingResult

func NewPingPongServicePingResult() *PingPongServicePingResult

func (*PingPongServicePingResult) GetSuccess

func (p *PingPongServicePingResult) GetSuccess() *Pong

func (*PingPongServicePingResult) IsSetSuccess

func (p *PingPongServicePingResult) IsSetSuccess() bool

func (*PingPongServicePingResult) Read

func (*PingPongServicePingResult) ReadField0

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

func (*PingPongServicePingResult) String

func (p *PingPongServicePingResult) String() string

func (*PingPongServicePingResult) Write

type PingPongServiceProcessor

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

func NewPingPongServiceProcessor

func NewPingPongServiceProcessor(handler PingPongService) *PingPongServiceProcessor

func (*PingPongServiceProcessor) AddToProcessorMap

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

func (*PingPongServiceProcessor) GetProcessorFunction

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

func (*PingPongServiceProcessor) Process

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

func (*PingPongServiceProcessor) ProcessorMap

type Pong

type Pong struct {
	Message string  `thrift:"message,1,required" db:"message" json:"message"`
	From_   string  `thrift:"from_,2,required" db:"from_" json:"from_"`
	Pheader *string `thrift:"pheader,3" db:"pheader" json:"pheader,omitempty"`
}

Attributes:

  • Message
  • From_
  • Pheader
var PingPongServicePingResult_Success_DEFAULT *Pong

func NewPong

func NewPong() *Pong

func (*Pong) Equals

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

func (*Pong) GetFrom_

func (p *Pong) GetFrom_() string

func (*Pong) GetMessage

func (p *Pong) GetMessage() string

func (*Pong) GetPheader

func (p *Pong) GetPheader() string

func (*Pong) IsSetPheader

func (p *Pong) IsSetPheader() bool

func (*Pong) Read

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

func (*Pong) ReadField1

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

func (*Pong) ReadField2

func (p *Pong) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*Pong) ReadField3

func (p *Pong) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*Pong) String

func (p *Pong) String() string

func (*Pong) Write

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

type TChanPingPongService

type TChanPingPongService interface {
	Ping(ctx thrift.Context, request *Ping) (*Pong, error)
}

TChanPingPongService is the interface that defines the server handler and client interface.

func NewTChanPingPongServiceClient

func NewTChanPingPongServiceClient(client thrift.TChanClient) TChanPingPongService

NewTChanPingPongServiceClient creates a client that can be used to make remote calls.

Jump to

Keyboard shortcuts

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