mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:00:25 +00:00
ef5c253c51
Continuous Delivery / lint-and-build (push) Has been cancelled
Continuous Delivery / Build and Push Docker Images (push) Has been cancelled
Deploy GitHub Pages / swagger-ui (push) Has been cancelled
CI Pipeline / Lint Proto (push) Has been cancelled
CI Pipeline / lint-and-build (push) Has been cancelled
CI Pipeline / Detect Changes (push) Has been cancelled
CI Pipeline / Test ${{ matrix.module }} (push) Has been cancelled
CI Pipeline / Upload Coverage (push) Has been cancelled
Property Based Tests / api-test (push) Has been cancelled
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com> Signed-off-by: dusan <borovcanindusan1@gmail.com> Co-authored-by: Steve Munene <stevenyaga2014@gmail.com>
27 lines
976 B
Go
27 lines
976 B
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package bootstrap
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
// Inactive Client is created, but not able to exchange messages using SuperMQ.
|
|
Inactive State = iota
|
|
// Active Client is created, configured, and whitelisted.
|
|
Active
|
|
)
|
|
|
|
// State represents corresponding SuperMQ Client state. The possible Config States
|
|
// as well as description of what that State represents are given in the table:
|
|
// | State | What it means |
|
|
// |----------+--------------------------------------------------------------------------------|
|
|
// | Inactive | Client is created, but isn't able to communicate over SuperMQ |
|
|
// | Active | Client is able to communicate using SuperMQ |.
|
|
type State int
|
|
|
|
// String returns string representation of State.
|
|
func (s State) String() string {
|
|
return strconv.Itoa(int(s))
|
|
}
|