Refactor file structure
This commit is contained in:
parent
02ccfce9d5
commit
cf89044898
2 changed files with 14 additions and 15 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
@ -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
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue