Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PRODUCTION production environment PRODUCTION = ENVIRONMENT("PRODUCTION") // DEVELOP development environment DEVELOP = ENVIRONMENT("DEVELOP") // TEST test environment TEST = ENVIRONMENT("TEST") )
View Source
const ( // MONGO mongo as db MONGO = "MONGO" // INMEMORY in memory storage as db INMEMORY = "INMEMORY" )
View Source
const ( // APPEND_PERMISSION refers to append permission update option APPEND_PERMISSION = ROLE_UPDATE_OPTION("append") // REMOVE_PERMISSION refers to remove permission update option REMOVE_PERMISSION = ROLE_UPDATE_OPTION("remove") )
View Source
const ( // REGULAR_TOKEN refers to limited lifetime token and refresh token REGULAR_TOKEN = TOKEN_TYPE("regular") // CTL_TOKEN refers to long lifetime token and refresh token CTL_TOKEN = TOKEN_TYPE("ctl") )
View Source
const ( // RESET_PASSWORD refers to password reset action RESET_PASSWORD = USER_UPDATE_ACTION("reset_password") // FORGOT_PASSWORD refers to password forgot action FORGOT_PASSWORD = USER_UPDATE_ACTION("forgot_password") // ATTACH_COMPANY refers to company attachment action ATTACH_COMPANY = USER_UPDATE_ACTION("attach_company") // UPDATE_STATUS refers to status update action UPDATE_STATUS = USER_UPDATE_ACTION("update_status") )
View Source
const ( // ACTIVE user status for active user ACTIVE = STATUS("active") // INACTIVE user status for inactive user INACTIVE = STATUS("inactive") // DELETED user status for deleted user DELETED = STATUS("deleted") )
View Source
const ( // EMAIL refers to email media EMAIL = MEDIA("email") // PHONE refers to phone media PHONE = MEDIA("phone") )
View Source
const ( // ADMIN refers to admin role ADMIN = ROLE("ADMIN") // VIEWER refers to user role VIEWER = ROLE("VIEWER") )
View Source
const ( // USER refers to user resource USER = RESOURCE("user") // PIPELINE refers to pipeline resource PIPELINE = RESOURCE("pipeline") // PROCESS refers to process resource PROCESS = RESOURCE("process") // COMPANY refers to company resource COMPANY = RESOURCE("company") // REPOSITORY refers to repository resource REPOSITORY = RESOURCE("repository") // APPLICATION refers to application resource APPLICATION = RESOURCE("application") // ROLE_RESOURCE refers to role resource ROLE_RESOURCE = RESOURCE("role") // PERMISSION_RESOURCE refers to permission resource PERMISSION_RESOURCE = RESOURCE("permission") )
View Source
const ( // CREATE refers to CREATE permission CREATE = PERMISSION("CREATE") // READ refers to READ permission READ = PERMISSION("READ") // UPDATE refers to UPDATE permission UPDATE = PERMISSION("UPDATE") // DELETE refers to DELETE permission DELETE = PERMISSION("DELETE") )
View Source
const ( // CREATE_USER refers to create user by admin CREATE_USER = USER_REGISTRATION_ACTION("create_user") )
View Source
const ( // PASSWORD grand_type of users authentication PASSWORD = AUTH_TYPE("password") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type USER_REGISTRATION_ACTION ¶
type USER_REGISTRATION_ACTION string
USER_REGISTRATION_ACTION user registration action
Click to show internal directories.
Click to hide internal directories.