Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecuteOptionFunc ¶
type ExecuteOptionFunc func(*ExecutorTimeMeasurement)
ExecuteOptionFunc is a function to set executor options
type ExecutorTimeMeasurement ¶
type ExecutorTimeMeasurement struct {
// contains filtered or unexported fields
}
ExecutorTimeMeasurement is a middleware that measure the execution time of a command
func NewExecutorTimeMeasurement ¶
func NewExecutorTimeMeasurement(executor execute.Executor, options ...ExecuteOptionFunc) *ExecutorTimeMeasurement
NewExecutorTimeMeasurement returns a new ExecutorTimeMeasurement
func (*ExecutorTimeMeasurement) Duration ¶
func (e *ExecutorTimeMeasurement) Duration() time.Duration
Duration returns the duration of the command
Click to show internal directories.
Click to hide internal directories.