mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
24 lines
787 B
Go
24 lines
787 B
Go
![]() |
//
|
||
|
// Copyright (c) 2018
|
||
|
// Mainflux
|
||
|
//
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
//
|
||
|
|
||
|
package bootstrap
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
// State represents corresponding Mainflux Thing state. The possible Config States
|
||
|
// as well as description of what that State represents are given in the table:
|
||
|
// | State | What it means |
|
||
|
// |----------+--------------------------------------------------------------------------------|
|
||
|
// | Inactive | Thing is created, but isn't able to communicate over Mainflux |
|
||
|
// | Active | Thing is able to communicate using Mainflux |
|
||
|
type State int
|
||
|
|
||
|
// String returns string representation of State.
|
||
|
func (s State) String() string {
|
||
|
return strconv.Itoa(int(s))
|
||
|
}
|