enums

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ALL_ROLES is a list of all roles for use in the application.

View Source
var AUTHORS_GROUP = []Role{Admin, Author}

AUTHORS_GROUP is a list of Author and Admin roles for use in the application.

View Source
var EDITORS_GROUP = []Role{Admin, Editor}

EDITORS_GROUP is a list of Editor and Admin roles for use in the application.

View Source
var HR_ADMIN_GROUP = []Role{Admin, DirectorRRHH}

HR_ADMIN_GROUP is a list of DirectorRRHH and Admin roles for use in the application.

View Source
var HR_COORDINATOR_GROUP = []Role{Admin, CoordinatorRRHH, DirectorRRHH}

HR_COORDINATOR_GROUP is a list of CoordinatorRRHH and Admin roles for use in the application.

View Source
var ORGANIZATION_GROUP = []Role{Admin, DirectorRRHH, CoordinatorRRHH, User}

ORGANIZATION_GROUP is a list of roles that can be assigned to an organization.

View Source
var USERS_GROUP = []Role{Admin, User}

USERS is a list of User and Admin roles for use in the application.

Functions

This section is empty.

Types

type CustomTypes

type CustomTypes string
const (
	Integer CustomTypes = "integer"
	String  CustomTypes = "string"
	Float   CustomTypes = "float"
	Boolean CustomTypes = "boolean"
)

Integer represents the custom type for integers.

type Environment

type Environment string
const (
	PRODUCTION  Environment = "production"
	DEVELOPMENT Environment = "development"
)

PRODUCTION represents the production environment.

type Operator

type Operator string
const (
	Equal              Operator = "eq"
	NotEqual           Operator = "ne"
	GreaterThan        Operator = "gt"
	GreaterThanOrEqual Operator = "gte"
	LessThan           Operator = "lt"
	LessThanOrEqual    Operator = "lte"
	Like               Operator = "like"
	NotLike            Operator = "notLike"
	In                 Operator = "in"
	NotIn              Operator = "notIn"
)

Equal represents the equality operator.

type Role

type Role string

Role represents a user role in the system. @name Role

const (
	// Admin represents the role of an administrator.
	// @description Administrator role
	Admin Role = "admin"

	// User represents the role of a regular user.
	// @description Regular user role
	User Role = "user"

	// Author represents the role of an author.
	// @description Author role
	Author Role = "author"

	// Editor represents the role of an editor.
	// @description Editor role
	Editor Role = "editor"

	// HR represents the role of a human resources manager.
	// @description Human resources manager role
	DirectorRRHH Role = "director_rrhh"

	// CoordinatorRRHH represents the role of a human resources coordinator.
	// @description Human resources coordinator role
	CoordinatorRRHH Role = "coordinator_rrhh"
)

type SortOrder

type SortOrder string
const (
	Asc  SortOrder = "asc"
	Desc SortOrder = "desc"
)

Asc represents the ascending sort order.

Jump to

Keyboard shortcuts

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