Documentation
¶
Index ¶
- Variables
- type Cmd
- func (p *Cmd) GetCmdLine() string
- func (p *Cmd) GetTicket() int64
- func (p *Cmd) Read(iprot thrift.TProtocol) error
- func (p *Cmd) ReadField1(iprot thrift.TProtocol) error
- func (p *Cmd) ReadField2(iprot thrift.TProtocol) error
- func (p *Cmd) String() string
- func (p *Cmd) Write(oprot thrift.TProtocol) error
- type ExecuteException
- func (p *ExecuteException) Error() string
- func (p *ExecuteException) GetOutput() *Output
- func (p *ExecuteException) GetWhat() string
- func (p *ExecuteException) IsSetOutput() bool
- func (p *ExecuteException) Read(iprot thrift.TProtocol) error
- func (p *ExecuteException) ReadField1(iprot thrift.TProtocol) error
- func (p *ExecuteException) ReadField2(iprot thrift.TProtocol) error
- func (p *ExecuteException) String() string
- func (p *ExecuteException) Write(oprot thrift.TProtocol) error
- type Output
- func (p *Output) GetStderr() string
- func (p *Output) GetStdout() string
- func (p *Output) GetTags() map[string]string
- func (p *Output) Read(iprot thrift.TProtocol) error
- func (p *Output) ReadField1(iprot thrift.TProtocol) error
- func (p *Output) ReadField2(iprot thrift.TProtocol) error
- func (p *Output) ReadField3(iprot thrift.TProtocol) error
- func (p *Output) String() string
- func (p *Output) Write(oprot thrift.TProtocol) error
- type Parallel
- type ParallelClient
- type ParallelExecuteArgs
- func (p *ParallelExecuteArgs) GetCommand() *Cmd
- func (p *ParallelExecuteArgs) IsSetCommand() bool
- func (p *ParallelExecuteArgs) Read(iprot thrift.TProtocol) error
- func (p *ParallelExecuteArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ParallelExecuteArgs) String() string
- func (p *ParallelExecuteArgs) Write(oprot thrift.TProtocol) error
- type ParallelExecuteResult
- func (p *ParallelExecuteResult) GetE() *ExecuteException
- func (p *ParallelExecuteResult) GetSuccess() *Output
- func (p *ParallelExecuteResult) IsSetE() bool
- func (p *ParallelExecuteResult) IsSetSuccess() bool
- func (p *ParallelExecuteResult) Read(iprot thrift.TProtocol) error
- func (p *ParallelExecuteResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ParallelExecuteResult) ReadField1(iprot thrift.TProtocol) error
- func (p *ParallelExecuteResult) String() string
- func (p *ParallelExecuteResult) Write(oprot thrift.TProtocol) error
- type ParallelPingArgs
- type ParallelPingResult
- func (p *ParallelPingResult) GetSuccess() string
- func (p *ParallelPingResult) IsSetSuccess() bool
- func (p *ParallelPingResult) Read(iprot thrift.TProtocol) error
- func (p *ParallelPingResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ParallelPingResult) String() string
- func (p *ParallelPingResult) Write(oprot thrift.TProtocol) error
- type ParallelProcessor
- func (p *ParallelProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *ParallelProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *ParallelProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *ParallelProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Result_
Constants ¶
This section is empty.
Variables ¶
View Source
var ParallelPingResult_Success_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct { CmdLine string `thrift:"cmdLine,1" db:"cmdLine" json:"cmdLine"` Ticket int64 `thrift:"ticket,2" db:"ticket" json:"ticket"` }
Attributes:
- CmdLine
- Ticket
var ParallelExecuteArgs_Command_DEFAULT *Cmd
func (*Cmd) GetCmdLine ¶
type ExecuteException ¶
type ExecuteException struct { What string `thrift:"what,1" db:"what" json:"what"` Output *Output `thrift:"output,2" db:"output" json:"output"` }
Attributes:
- What
- Output
var ParallelExecuteResult_E_DEFAULT *ExecuteException
func NewExecuteException ¶
func NewExecuteException() *ExecuteException
func (*ExecuteException) Error ¶
func (p *ExecuteException) Error() string
func (*ExecuteException) GetOutput ¶
func (p *ExecuteException) GetOutput() *Output
func (*ExecuteException) GetWhat ¶
func (p *ExecuteException) GetWhat() string
func (*ExecuteException) IsSetOutput ¶
func (p *ExecuteException) IsSetOutput() bool
func (*ExecuteException) ReadField1 ¶
func (p *ExecuteException) ReadField1(iprot thrift.TProtocol) error
func (*ExecuteException) ReadField2 ¶
func (p *ExecuteException) ReadField2(iprot thrift.TProtocol) error
func (*ExecuteException) String ¶
func (p *ExecuteException) String() string
type Output ¶
type Output struct { Stdout string `thrift:"stdout,1" db:"stdout" json:"stdout"` Stderr string `thrift:"stderr,2" db:"stderr" json:"stderr"` Tags map[string]string `thrift:"tags,3" db:"tags" json:"tags"` }
Attributes:
- Stdout
- Stderr
- Tags
var ExecuteException_Output_DEFAULT *Output
var ParallelExecuteResult_Success_DEFAULT *Output
type ParallelClient ¶
type ParallelClient struct {
// contains filtered or unexported fields
}
func NewParallelClient ¶
func NewParallelClient(c thrift.TClient) *ParallelClient
func NewParallelClientFactory ¶
func NewParallelClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ParallelClient
func NewParallelClientProtocol ¶
func NewParallelClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ParallelClient
func (*ParallelClient) Client_ ¶
func (p *ParallelClient) Client_() thrift.TClient
type ParallelExecuteArgs ¶
type ParallelExecuteArgs struct {
Command *Cmd `thrift:"command,1" db:"command" json:"command"`
}
Attributes:
- Command
func NewParallelExecuteArgs ¶
func NewParallelExecuteArgs() *ParallelExecuteArgs
func (*ParallelExecuteArgs) GetCommand ¶
func (p *ParallelExecuteArgs) GetCommand() *Cmd
func (*ParallelExecuteArgs) IsSetCommand ¶
func (p *ParallelExecuteArgs) IsSetCommand() bool
func (*ParallelExecuteArgs) ReadField1 ¶
func (p *ParallelExecuteArgs) ReadField1(iprot thrift.TProtocol) error
func (*ParallelExecuteArgs) String ¶
func (p *ParallelExecuteArgs) String() string
type ParallelExecuteResult ¶
type ParallelExecuteResult struct { Success *Output `thrift:"success,0" db:"success" json:"success,omitempty"` E *ExecuteException `thrift:"e,1" db:"e" json:"e,omitempty"` }
Attributes:
- Success
- E
func NewParallelExecuteResult ¶
func NewParallelExecuteResult() *ParallelExecuteResult
func (*ParallelExecuteResult) GetE ¶
func (p *ParallelExecuteResult) GetE() *ExecuteException
func (*ParallelExecuteResult) GetSuccess ¶
func (p *ParallelExecuteResult) GetSuccess() *Output
func (*ParallelExecuteResult) IsSetE ¶
func (p *ParallelExecuteResult) IsSetE() bool
func (*ParallelExecuteResult) IsSetSuccess ¶
func (p *ParallelExecuteResult) IsSetSuccess() bool
func (*ParallelExecuteResult) Read ¶
func (p *ParallelExecuteResult) Read(iprot thrift.TProtocol) error
func (*ParallelExecuteResult) ReadField0 ¶
func (p *ParallelExecuteResult) ReadField0(iprot thrift.TProtocol) error
func (*ParallelExecuteResult) ReadField1 ¶
func (p *ParallelExecuteResult) ReadField1(iprot thrift.TProtocol) error
func (*ParallelExecuteResult) String ¶
func (p *ParallelExecuteResult) String() string
type ParallelPingArgs ¶
type ParallelPingArgs struct { }
func NewParallelPingArgs ¶
func NewParallelPingArgs() *ParallelPingArgs
func (*ParallelPingArgs) String ¶
func (p *ParallelPingArgs) String() string
type ParallelPingResult ¶
type ParallelPingResult struct {
Success *string `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewParallelPingResult ¶
func NewParallelPingResult() *ParallelPingResult
func (*ParallelPingResult) GetSuccess ¶
func (p *ParallelPingResult) GetSuccess() string
func (*ParallelPingResult) IsSetSuccess ¶
func (p *ParallelPingResult) IsSetSuccess() bool
func (*ParallelPingResult) ReadField0 ¶
func (p *ParallelPingResult) ReadField0(iprot thrift.TProtocol) error
func (*ParallelPingResult) String ¶
func (p *ParallelPingResult) String() string
type ParallelProcessor ¶
type ParallelProcessor struct {
// contains filtered or unexported fields
}
func NewParallelProcessor ¶
func NewParallelProcessor(handler Parallel) *ParallelProcessor
func (*ParallelProcessor) AddToProcessorMap ¶
func (p *ParallelProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*ParallelProcessor) GetProcessorFunction ¶
func (p *ParallelProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*ParallelProcessor) Process ¶
func (p *ParallelProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*ParallelProcessor) ProcessorMap ¶
func (p *ParallelProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Result_ ¶
type Result_ int64
func Result_FromString ¶
func Result_Ptr ¶
func (Result_) MarshalText ¶
func (*Result_) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.