app

package
v0.0.0-...-a47f05f Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppServiceRunProcessorResult_Success_DEFAULT string
View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type AppService

type AppService interface {
	// Parameters:
	//  - Reins
	RunProcessor(reins *Reinstruct) (r string, err error)
}

type AppServiceClient

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

func NewAppServiceClientFactory

func NewAppServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *AppServiceClient

func NewAppServiceClientProtocol

func NewAppServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *AppServiceClient

func (*AppServiceClient) RunProcessor

func (p *AppServiceClient) RunProcessor(reins *Reinstruct) (r string, err error)

Parameters:

  • Reins

type AppServiceProcessor

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

func NewAppServiceProcessor

func NewAppServiceProcessor(handler AppService) *AppServiceProcessor

func (*AppServiceProcessor) AddToProcessorMap

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

func (*AppServiceProcessor) GetProcessorFunction

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

func (*AppServiceProcessor) Process

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

func (*AppServiceProcessor) ProcessorMap

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

type AppServiceRunProcessorArgs

type AppServiceRunProcessorArgs struct {
	Reins *Reinstruct `thrift:"reins,1" json:"reins"`
}

Attributes:

  • Reins

func NewAppServiceRunProcessorArgs

func NewAppServiceRunProcessorArgs() *AppServiceRunProcessorArgs

func (*AppServiceRunProcessorArgs) GetReins

func (p *AppServiceRunProcessorArgs) GetReins() *Reinstruct

func (*AppServiceRunProcessorArgs) IsSetReins

func (p *AppServiceRunProcessorArgs) IsSetReins() bool

func (*AppServiceRunProcessorArgs) Read

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

func (*AppServiceRunProcessorArgs) String

func (p *AppServiceRunProcessorArgs) String() string

func (*AppServiceRunProcessorArgs) Write

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

type AppServiceRunProcessorResult

type AppServiceRunProcessorResult struct {
	Success *string `thrift:"success,0" json:"success,omitempty"`
}

Attributes:

  • Success

func NewAppServiceRunProcessorResult

func NewAppServiceRunProcessorResult() *AppServiceRunProcessorResult

func (*AppServiceRunProcessorResult) GetSuccess

func (p *AppServiceRunProcessorResult) GetSuccess() string

func (*AppServiceRunProcessorResult) IsSetSuccess

func (p *AppServiceRunProcessorResult) IsSetSuccess() bool

func (*AppServiceRunProcessorResult) Read

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

func (*AppServiceRunProcessorResult) String

func (*AppServiceRunProcessorResult) Write

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

type Instruct

type Instruct struct {
	ID      string `thrift:"id,1" json:"id"`
	IP      string `thrift:"ip,2" json:"ip"`
	Type    string `thrift:"type,3" json:"type"`
	Mode    string `thrift:"mode,4" json:"mode"`
	App     string `thrift:"app,5" json:"app"`
	Func    string `thrift:"func,6" json:"func"`
	Param   string `thrift:"param,7" json:"param"`
	Timeout int32  `thrift:"timeout,8" json:"timeout"`
	Proxy   string `thrift:"proxy,9" json:"proxy"`
}

Attributes:

  • ID
  • IP
  • Type
  • Mode
  • App
  • Func
  • Param
  • Timeout
  • Proxy
var Reinstruct_Ins_DEFAULT *Instruct

func NewInstruct

func NewInstruct() *Instruct

func (*Instruct) GetApp

func (p *Instruct) GetApp() string

func (*Instruct) GetFunc

func (p *Instruct) GetFunc() string

func (*Instruct) GetID

func (p *Instruct) GetID() string

func (*Instruct) GetIP

func (p *Instruct) GetIP() string

func (*Instruct) GetMode

func (p *Instruct) GetMode() string

func (*Instruct) GetParam

func (p *Instruct) GetParam() string

func (*Instruct) GetProxy

func (p *Instruct) GetProxy() string

func (*Instruct) GetTimeout

func (p *Instruct) GetTimeout() int32

func (*Instruct) GetType

func (p *Instruct) GetType() string

func (*Instruct) Read

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

func (*Instruct) String

func (p *Instruct) String() string

func (*Instruct) Write

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

type Reinstruct

type Reinstruct struct {
	Ins *Instruct `thrift:"ins,1" json:"ins"`
	// unused field # 2
	Flag     int32  `thrift:"flag,3" json:"flag"`
	Costtime int32  `thrift:"costtime,4" json:"costtime"`
	Result_  string `thrift:"result,5" json:"result"`
}

Attributes:

  • Ins
  • Flag
  • Costtime
  • Result_
var AppServiceRunProcessorArgs_Reins_DEFAULT *Reinstruct

func NewReinstruct

func NewReinstruct() *Reinstruct

func (*Reinstruct) GetCosttime

func (p *Reinstruct) GetCosttime() int32

func (*Reinstruct) GetFlag

func (p *Reinstruct) GetFlag() int32

func (*Reinstruct) GetIns

func (p *Reinstruct) GetIns() *Instruct

func (*Reinstruct) GetResult_

func (p *Reinstruct) GetResult_() string

func (*Reinstruct) IsSetIns

func (p *Reinstruct) IsSetIns() bool

func (*Reinstruct) Read

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

func (*Reinstruct) String

func (p *Reinstruct) String() string

func (*Reinstruct) Write

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