github.com/Jeffail/benthos/v3@v3.65.0/public/bloblang/executor_unwrapper.go (about)

     1  package bloblang
     2  
     3  import "github.com/Jeffail/benthos/v3/internal/bloblang/mapping"
     4  
     5  type executorUnwrapper struct {
     6  	child *mapping.Executor
     7  }
     8  
     9  func (e executorUnwrapper) Unwrap() *mapping.Executor {
    10  	return e.child
    11  }
    12  
    13  // XUnwrapper is for internal use only, do not use this.
    14  func (e *Executor) XUnwrapper() interface{} {
    15  	return executorUnwrapper{child: e.exec}
    16  }