srv

package
v0.0.0-...-eedcae6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type TSrv

type TSrv interface {
	// Parameters:
	//  - Par
	Test(par *TestRep) (r *TestRep, err error)
}

type TSrvClient

type TSrvClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

func NewTSrvClientProtocol

func NewTSrvClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TSrvClient

func (*TSrvClient) Test

func (p *TSrvClient) Test(par *TestRep) (r *TestRep, err error)

Parameters:

  • Par

type TSrvProcessor

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

func NewTSrvProcessor

func NewTSrvProcessor(handler TSrv) *TSrvProcessor

func (*TSrvProcessor) AddToProcessorMap

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

func (*TSrvProcessor) GetProcessorFunction

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

func (*TSrvProcessor) Process

func (p *TSrvProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*TSrvProcessor) ProcessorMap

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

type TSrvTestArgs

type TSrvTestArgs struct {
	Par *TestRep `thrift:"par,1" json:"par"`
}

Attributes:

  • Par

func NewTSrvTestArgs

func NewTSrvTestArgs() *TSrvTestArgs

func (*TSrvTestArgs) GetPar

func (p *TSrvTestArgs) GetPar() *TestRep

func (*TSrvTestArgs) IsSetPar

func (p *TSrvTestArgs) IsSetPar() bool

func (*TSrvTestArgs) Read

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

func (*TSrvTestArgs) String

func (p *TSrvTestArgs) String() string

func (*TSrvTestArgs) Write

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

type TSrvTestResult

type TSrvTestResult struct {
	Success *TestRep `thrift:"success,0" json:"success,omitempty"`
}

Attributes:

  • Success

func NewTSrvTestResult

func NewTSrvTestResult() *TSrvTestResult

func (*TSrvTestResult) GetSuccess

func (p *TSrvTestResult) GetSuccess() *TestRep

func (*TSrvTestResult) IsSetSuccess

func (p *TSrvTestResult) IsSetSuccess() bool

func (*TSrvTestResult) Read

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

func (*TSrvTestResult) String

func (p *TSrvTestResult) String() string

func (*TSrvTestResult) Write

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

type TestRep

type TestRep struct {
	ID   string `thrift:"ID,1" json:"ID"`
	Data []byte `thrift:"Data,2" json:"Data"`
}

Attributes:

  • ID
  • Data
var TSrvTestArgs_Par_DEFAULT *TestRep
var TSrvTestResult_Success_DEFAULT *TestRep

func NewTestRep

func NewTestRep() *TestRep

func (*TestRep) GetData

func (p *TestRep) GetData() []byte

func (*TestRep) GetID

func (p *TestRep) GetID() string

func (*TestRep) Read

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

func (*TestRep) String

func (p *TestRep) String() string

func (*TestRep) Write

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