Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitializationSequenceMutex sync.Mutex
Functions ¶
This section is empty.
Types ¶
type FanController ¶
type FanController interface { // Run starts the control loop Run(ctx context.Context) error GetFanId() string GetStatistics() FanControllerStatistics // RunInitializationSequence for the given fan to determine its characteristics RunInitializationSequence() (err error) UpdateFanSpeed() error }
func NewFanController ¶
func NewFanController( persistence persistence.Persistence, fan fans.Fan, pidLoop util.PidLoop, updateRate time.Duration, ) FanController
type FanControllerStatistics ¶
type PidFanController ¶
type PidFanController struct {
// contains filtered or unexported fields
}
func (*PidFanController) GetFanId ¶
func (f *PidFanController) GetFanId() string
func (*PidFanController) GetStatistics ¶
func (f *PidFanController) GetStatistics() FanControllerStatistics
func (*PidFanController) RunInitializationSequence ¶
func (f *PidFanController) RunInitializationSequence() (err error)
func (*PidFanController) UpdateFanSpeed ¶
func (f *PidFanController) UpdateFanSpeed() error
Click to show internal directories.
Click to hide internal directories.