Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKitNames ¶
func GetKitNames() []string
GetKitNames returns a list of available kit names to be used in lists and interactive menus
Types ¶
type AquaponicsKit ¶
type AquaponicsKit struct {
// contains filtered or unexported fields
}
func (*AquaponicsKit) Init ¶
func (e *AquaponicsKit) Init() error
func (*AquaponicsKit) SetPath ¶
func (e *AquaponicsKit) SetPath(path string)
func (*AquaponicsKit) SetPort ¶
func (e *AquaponicsKit) SetPort(port string)
func (*AquaponicsKit) Upload ¶
func (e *AquaponicsKit) Upload() error
type Kit ¶
type Kit interface { // SetPort specifies where it should be operating when flashing and monitoring SetPort(port string) // SetPath specifies the path to the sketch to be flashed SetPath(path string) // Init initializes the kit, installing libraries and other dependencies Init() error // Upload flashes the sketch to the specified port Upload() error // Monitor starts monitoring the specified port Monitor(ctx context.Context) error }
func GetKitByName ¶
GetKitByName returns a new kit instance by its name
func NewAquaponicsKit ¶
func NewAquaponicsKit() Kit
type KitConstructor ¶
type KitConstructor func() Kit
KitConstructor is a function that returns a new Kit and allows them to be registered in the map below without initializing them immediately
Click to show internal directories.
Click to hide internal directories.