Documentation ¶
Index ¶
- Variables
- type AppService
- type AppServiceClient
- type AppServiceProcessor
- func (p *AppServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *AppServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *AppServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *AppServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type AppServiceRunProcessorArgs
- func (p *AppServiceRunProcessorArgs) GetReins() *Reinstruct
- func (p *AppServiceRunProcessorArgs) IsSetReins() bool
- func (p *AppServiceRunProcessorArgs) Read(iprot thrift.TProtocol) error
- func (p *AppServiceRunProcessorArgs) String() string
- func (p *AppServiceRunProcessorArgs) Write(oprot thrift.TProtocol) error
- type AppServiceRunProcessorResult
- func (p *AppServiceRunProcessorResult) GetSuccess() string
- func (p *AppServiceRunProcessorResult) IsSetSuccess() bool
- func (p *AppServiceRunProcessorResult) Read(iprot thrift.TProtocol) error
- func (p *AppServiceRunProcessorResult) String() string
- func (p *AppServiceRunProcessorResult) Write(oprot thrift.TProtocol) error
- type Instruct
- func (p *Instruct) GetApp() string
- func (p *Instruct) GetFunc() string
- func (p *Instruct) GetID() string
- func (p *Instruct) GetIP() string
- func (p *Instruct) GetMode() string
- func (p *Instruct) GetParam() string
- func (p *Instruct) GetProxy() string
- func (p *Instruct) GetTimeout() int32
- func (p *Instruct) GetType() string
- func (p *Instruct) Read(iprot thrift.TProtocol) error
- func (p *Instruct) String() string
- func (p *Instruct) Write(oprot thrift.TProtocol) error
- type Reinstruct
- func (p *Reinstruct) GetCosttime() int32
- func (p *Reinstruct) GetFlag() int32
- func (p *Reinstruct) GetIns() *Instruct
- func (p *Reinstruct) GetResult_() string
- func (p *Reinstruct) IsSetIns() bool
- func (p *Reinstruct) Read(iprot thrift.TProtocol) error
- func (p *Reinstruct) String() string
- func (p *Reinstruct) Write(oprot thrift.TProtocol) error
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 (p *AppServiceRunProcessorResult) String() 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) GetTimeout ¶
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
Click to show internal directories.
Click to hide internal directories.