Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ALL_ROLES = []Role{Admin, User, Author, Editor, DirectorRRHH, CoordinatorRRHH}
ALL_ROLES is a list of all roles for use in the application.
var AUTHORS_GROUP = []Role{Admin, Author}
AUTHORS_GROUP is a list of Author and Admin roles for use in the application.
var EDITORS_GROUP = []Role{Admin, Editor}
EDITORS_GROUP is a list of Editor and Admin roles for use in the application.
var HR_ADMIN_GROUP = []Role{Admin, DirectorRRHH}
HR_ADMIN_GROUP is a list of DirectorRRHH and Admin roles for use in the application.
var HR_COORDINATOR_GROUP = []Role{Admin, CoordinatorRRHH, DirectorRRHH}
HR_COORDINATOR_GROUP is a list of CoordinatorRRHH and Admin roles for use in the application.
var ORGANIZATION_GROUP = []Role{Admin, DirectorRRHH, CoordinatorRRHH, User}
ORGANIZATION_GROUP is a list of roles that can be assigned to an organization.
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" )