github.com/metux/go-metabuild@v0.0.0-20240118143255-d9ed5ab697f9/engine/autoconf/probe/base.go (about)

     1  package probe
     2  
     3  type ProbeInterface interface {
     4  	Init() error
     5  	Probe() error
     6  }
     7  
     8  type ProbeBase struct {
     9  	Check
    10  }
    11  
    12  func (cb ProbeBase) Init() error {
    13  	return nil
    14  }
    15  
    16  func (cb ProbeBase) Logf(format string, args ...any) {
    17  	cb.Check.Logf(format, args...)
    18  }
    19  
    20  func (cb ProbeBase) Id() string {
    21  	return cb.Check.Id()
    22  }
    23  
    24  func MakeProbeBase(chk Check) ProbeBase {
    25  	return ProbeBase{chk}
    26  }