Refactor file structure

This commit is contained in:
andig 2020-04-06 15:11:52 +02:00
parent 02ccfce9d5
commit cf89044898
2 changed files with 14 additions and 15 deletions

View file

@ -13,3 +13,17 @@ type (
// BoolGetter gets bool value
BoolGetter func() (bool, error)
)
// Setters update typed device data.
// They are used to abstract the underlying device implementation.
type (
// FloatSetter sets float value
FloatSetter func(float64) error
// IntSetter sets int value
IntSetter func(int64) error
// StringSetter sets string value
StringSetter func(string) error
// BoolSetter sets bool value
BoolSetter func(bool) error
)

View file

@ -1,15 +0,0 @@
package provider
// Setters update typed device data.
// They are used to abstract the underlying device implementation.
type (
// FloatSetter sets float value
FloatSetter func(float64) error
// IntSetter sets int value
IntSetter func(int64) error
// StringSetter sets string value
StringSetter func(string) error
// BoolSetter sets bool value
BoolSetter func(bool) error
)