Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = translator.Translate{translator.RU: "Пользователь не найден", translator.EN: "User not found"} ErrUserExists = translator.Translate{translator.RU: "Пользователь с таким логином уже зарегистрирован", translator.EN: "A user with this login is already registered"} ErrUserRolesCannotBeChanged = translator.Translate{translator.RU: "Нельзя назначать пользователю другие роли", translator.EN: "User roles cannot be changed"} ErrUserCannotBeDeleted = translator.Translate{translator.RU: "Пользователя нельзя удалять", translator.EN: "User cannot be deleted"} )
View Source
var ( ErrRoleNotFound = translator.Translate{translator.RU: "Роль не найдена", translator.EN: "Role not found"} ErrRoleExists = translator.Translate{translator.RU: "Роль уже добавлена", translator.EN: "Role has already been added"} ErrRoleCannotBeChanged = translator.Translate{translator.RU: "Роль нельзя редактировать", translator.EN: "Role cannot be changed"} ErrRoleCannotBeDeleted = translator.Translate{translator.RU: "Роль нельзя удалять", translator.EN: "Role cannot be deleted"} )
View Source
var ( RolesPermission = translator.Translate{translator.RU: "Роли", translator.EN: "Roles"} UsersPermission = translator.Translate{translator.RU: "Пользователи", translator.EN: "Users"} PermissionsPermission = translator.Translate{translator.RU: "Права", translator.EN: "Permissions"} SessionsPermission = translator.Translate{translator.RU: "Активные сеансы", translator.EN: "Active sessions"} )
View Source
var (
ErrSessionNotFound = translator.Translate{translator.RU: "Сессия не найдена", translator.EN: "Session not found"}
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.