Documentation ¶
Index ¶
Constants ¶
View Source
const ( Disabled = "disabled" Enabled = "enabled" All = "all" Unknown = "unknown" )
String representation of the possible status values.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(g groups.Repository, idp magistrala.IDProvider, policyService policies.Service) groups.Service
NewService returns a new Clients service implementation.
Types ¶
type Status ¶
type Status uint8
Status represents Group status.
const ( // EnabledStatus represents enabled Group. EnabledStatus Status = iota // DisabledStatus represents disabled Group. DisabledStatus // AllStatus is used for querying purposes to list groups irrespective // of their status - both active and inactive. It is never stored in the // database as the actual Group status and should always be the largest // value in this enumeration. AllStatus )
Possible Group status values.
Directories ¶
Path | Synopsis |
---|---|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
Package events contains event source Redis client implementation.
|
Package events contains event source Redis client implementation. |
Package middleware provides middleware for Magistrala Groups service.
|
Package middleware provides middleware for Magistrala Groups service. |
Package postgres contains the database implementation of groups repository layer.
|
Package postgres contains the database implementation of groups repository layer. |
Package tracing provides tracing instrumentation for Magistrala Users Groups service.
|
Package tracing provides tracing instrumentation for Magistrala Users Groups service. |
Click to show internal directories.
Click to hide internal directories.