groups

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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.

func ToStatus

func ToStatus(status string) (Status, error)

ToStatus converts string value to a valid Group status.

func (Status) String

func (s Status) String() string

String converts group status to string literal.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL