Documentation
¶
Index ¶
- type Answer
- type Cmd
- type CmdImpl
- func (m CmdImpl) ErrorHandler(err error) error
- func (m CmdImpl) GetAgentForward() bool
- func (m CmdImpl) GetCmdTimeout() time.Duration
- func (m CmdImpl) GetExprCallback() ([]string, map[string]string)
- func (m CmdImpl) GetQuestionExprs() []expr.Expr
- func (m CmdImpl) GetReadTimeout() time.Duration
- func (m CmdImpl) QuestionHandler(question []byte) ([]byte, error)
- func (m CmdImpl) Value() []byte
- type CmdOption
- type CmdRes
- type CmdResList
- type ExprCallback
- type Res
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd interface {
GetCmdTimeout() time.Duration
GetReadTimeout() time.Duration
Value() []byte
GetExprCallback() ([]string, map[string]string)
QuestionHandler(question []byte) ([]byte, error)
GetQuestionExprs() []expr.Expr
ErrorHandler(error) error
GetAgentForward() bool
}
func NewCmdList ¶
type CmdImpl ¶
type CmdImpl struct {
// contains filtered or unexported fields
}
func (CmdImpl) ErrorHandler ¶
func (CmdImpl) GetAgentForward ¶
func (CmdImpl) GetCmdTimeout ¶
func (CmdImpl) GetQuestionExprs ¶
func (CmdImpl) GetReadTimeout ¶
type CmdOption ¶
type CmdOption func(*CmdImpl)
func WithAnswers ¶
func WithCmdTimeout ¶
func WithErrorIgnore ¶
func WithErrorIgnore() CmdOption
func WithExprCallback ¶
func WithExprCallback(exprCallbacks ...ExprCallback) CmdOption
func WithForwarding ¶
func WithReadTimeout ¶
type CmdRes ¶
type CmdResList ¶
type CmdResList []CmdRes
func (CmdResList) Output ¶
func (m CmdResList) Output() []byte
func (CmdResList) ToCmdRes ¶
func (m CmdResList) ToCmdRes() CmdRes
type ExprCallback ¶
type ExprCallback struct {
// contains filtered or unexported fields
}
func NewExprCallback ¶
func NewExprCallback(expr, write string) ExprCallback
Click to show internal directories.
Click to hide internal directories.