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

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