Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound when a element is not found
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { GetInfo() (models.Info, error) GetDigitalInputs() ([]models.DigitalInput, error) GetDosingPumps() ([]models.DosingPump, error) GetLevelSensors() ([]models.LevelSensor, error) GetLights() ([]models.Light, error) GetLPorts() ([]models.LPort, error) GetProbes() ([]models.Probe, error) GetProgrammableLogics() ([]models.ProgrammableLogic, error) GetCurrentPumps() ([]models.CurrentPump, error) GetSPorts() ([]models.SPort, error) GetCurrentPump(id string) (models.CurrentPump, error) GetDigitalInput(id string) (models.DigitalInput, error) GetDosingPump(id string) (models.DosingPump, error) GetLevelSensor(id string) (models.LevelSensor, error) GetLight(id string) (models.Light, error) GetLPort(id string) (models.LPort, error) GetProbe(id string) (models.Probe, error) GetProgrammableLogic(id string) (models.ProgrammableLogic, error) GetSPort(id string) (models.SPort, error) SetInfo(info models.Info) error SetDigitalInput(input models.DigitalInput) error SetDosingPump(pump models.DosingPump) error SetLevelSensor(models.LevelSensor) error SetLight(models.Light) error SetLPort(models.LPort) error SetProbe(models.Probe) error SetProgrammableLogic(models.ProgrammableLogic) error SetCurrentPump(models.CurrentPump) error SetSPort(models.SPort) error DeleteDigitalInput(id string) error DeleteDosingPump(id string) error DeleteLevelSensor(id string) error DeleteLight(id string) error DeleteLPort(id string) error DeleteProbe(id string) error DeleteProgrammableLogic(id string) error DeleteCurrentPump(id string) error DeleteSPort(id string) error }
Controller repo interface
func NewController ¶
func NewController(address string, password string) (Controller, error)
NewController create a new controller
Click to show internal directories.
Click to hide internal directories.