mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-24 13:48:49 +08:00

* Update copyright comment for go files Signed-off-by: nwneisen <nwneisen@gmail.com> * Update copyright in assortment of file types Signed-off-by: nwneisen <nwneisen@gmail.com> * Remove missed copyright date Signed-off-by: nwneisen <nwneisen@gmail.com>
27 lines
965 B
Go
27 lines
965 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package bootstrap
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
// Inactive Thing is created, but not able to exchange messages using Mainflux.
|
|
Inactive State = iota
|
|
// Active Thing is created, configured, and whitelisted.
|
|
Active
|
|
)
|
|
|
|
// 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))
|
|
}
|