gitlab.com/evatix-go/core@v1.3.55/coreinstruction/BaseEnabler.go (about)

     1  package coreinstruction
     2  
     3  type BaseEnabler struct {
     4  	IsEnabled bool `json:"IsEnabled"`
     5  }
     6  
     7  func (b *BaseEnabler) SetEnable() {
     8  	b.IsEnabled = true
     9  }
    10  
    11  func (b *BaseEnabler) SetDisable() {
    12  	b.IsEnabled = false
    13  }
    14  
    15  func (b *BaseEnabler) SetEnableVal(v bool) {
    16  	b.IsEnabled = v
    17  }