Documentation ¶
Index ¶
- Constants
- type AclMeta
- type AclPermissionDto
- type AclQueryParams
- type AclUserDto
- type Auth
- type AuthDto
- type AuthMeta
- type AuthToken
- type AuthTokenMeta
- type NotificationSends
- type PasswordReset
- type Permission
- type PermissionDto
- type PermissionMeta
- type PermissionQueryParams
- type PermissionRole
- type PermissionRoleDto
- type PermissionUser
- type PermissionUserDto
- type Register
- type RegisterDto
- type Role
- type RoleDto
- type RoleMeta
- type RoleQueryParams
- type RoleUser
- type RoleUserDto
- type User
Constants ¶
View Source
const ( TemplateTypeWelcome = "welcome" TemplateTypeEmailVerified = "email-verified" TemplateTypePasswordReset = "password-reset" )
View Source
const (
NotificationTypeEmail = "email"
)
View Source
const (
RABBITMQ_AUTH_AUTH_DELETE = "auth.auth.delete"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclMeta ¶
type AclMeta struct { Roles []*Role Permissions []*Permission }
type AclPermissionDto ¶
type AclQueryParams ¶
type AclQueryParams struct { }
type AclUserDto ¶
type Auth ¶
type Auth struct { ID common.ID UserId string Email string Password string EmailVerifiedAt time.Time CreatedAt time.Time UpdatedAt time.Time }
func (*Auth) SetEmailVerifiedAt ¶
func (x *Auth) SetEmailVerifiedAt()
func (*Auth) SetPasswordHash ¶
type AuthTokenMeta ¶
func NewAuthLogin ¶
func NewAuthLogin(x *AuthMeta) *AuthTokenMeta
type NotificationSends ¶
type PasswordReset ¶
type Permission ¶
type Permission struct { ID common.ID Name string DisplayName string Description string CreatedAt time.Time UpdatedAt time.Time }
func NewPermission ¶
func NewPermission(x PermissionDto, finds ...*Permission) *Permission
func (*Permission) Validate ¶
func (x *Permission) Validate() (err *multierror.Error)
type PermissionDto ¶
type PermissionMeta ¶
type PermissionMeta struct { Data []*Permission Total int }
type PermissionQueryParams ¶
type PermissionRole ¶
func NewPermissionRole ¶
func NewPermissionRole(x PermissionRoleDto) *PermissionRole
func (*PermissionRole) Validate ¶
func (x *PermissionRole) Validate() (err *multierror.Error)
type PermissionRoleDto ¶
type PermissionUser ¶
func NewPermissionUser ¶
func NewPermissionUser(x PermissionUserDto) *PermissionUser
func (*PermissionUser) Validate ¶
func (x *PermissionUser) Validate() (err *multierror.Error)
type PermissionUserDto ¶
type Register ¶
func NewRegister ¶
func NewRegister(x RegisterDto) *Register
type RegisterDto ¶
type Role ¶
type RoleQueryParams ¶
type RoleUser ¶
func NewRoleUser ¶
func NewRoleUser(x RoleUserDto) *RoleUser
Click to show internal directories.
Click to hide internal directories.