github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/engine/function/collectionDeleteFuncs.go (about)

     1  package funcs
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  )
     7  
     8  type CollectionDeleteFuncs struct {
     9  }
    10  
    11  func (cf *CollectionDeleteFuncs) Execute(f *Funcs) {
    12  	startTime := time.Now()
    13  	defer func() {
    14  		elapsed := time.Since(startTime)
    15  		f.iLog.PerformanceWithDuration("engine.func.CollectionDeleeFuncs.Execute", elapsed)
    16  	}()
    17  	defer func() {
    18  		if err := recover(); err != nil {
    19  			f.iLog.Error(fmt.Sprintf("There is error to engine.func.CollectionDeleeFuncs.Execute with error: %s", err))
    20  			return
    21  		}
    22  	}()
    23  	f.iLog.Debug(fmt.Sprintf("CollectionDeleteFuncs Execute: %v", f))
    24  
    25  }