Documentation ¶
Index ¶
Constants ¶
View Source
const ( RegExpID = `^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$` DateLayout = "02.01.2006" )
Parameter references
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckRepresentation ¶
type CheckRepresentation struct { UserID *string `json:"userId,omitempty"` Operator *string `json:"operator,omitempty"` DateTime *time.Time `json:"datetime,omitempty"` Status *string `json:"status,omitempty"` Type *string `json:"type,omitempty"` Nature *string `json:"nature,omitempty"` ProofData *[]byte `json:"proofData,omitempty"` ProofType *string `json:"proofType,omitempty"` }
CheckRepresentation struct
func (*CheckRepresentation) ConvertToDBCheck ¶
func (c *CheckRepresentation) ConvertToDBCheck() dto.DBCheck
ConvertToDBCheck creates a DBCheck
func (*CheckRepresentation) Validate ¶
func (c *CheckRepresentation) Validate() error
Validate checks the validity of the given check
type UserRepresentation ¶
type UserRepresentation struct { UserID *string `json:"userId,omitempty"` Username *string `json:"username,omitempty"` Gender *string `json:"gender,omitempty"` FirstName *string `json:"firstName,omitempty"` LastName *string `json:"lastName,omitempty"` EmailAddress *string `json:"emailAddress,omitempty"` EmailAddressVerified *bool `json:"emailAddressVerified,omitempty"` PhoneNumber *string `json:"phoneNumber,omitempty"` PhoneNumberVerified *bool `json:"phoneNumberVerified,omitempty"` BirthDate *time.Time `json:"birthDate,omitempty"` BirthLocation *string `json:"birthLocation,omitempty"` IDDocumentType *string `json:"idDocumentType,omitempty"` IDDocumentNumber *string `json:"idDocumentNumber,omitempty"` IDDocumentExpiration *time.Time `json:"idDocumentExpiration,omitempty"` }
UserRepresentation struct
func (*UserRepresentation) ExportToKeycloak ¶
func (u *UserRepresentation) ExportToKeycloak(kcUser *kc.UserRepresentation)
ExportToKeycloak exports user details into a Keycloak UserRepresentation
func (*UserRepresentation) ImportFromKeycloak ¶
func (u *UserRepresentation) ImportFromKeycloak(kcUser kc.UserRepresentation)
ImportFromKeycloak import details from Keycloak
func (*UserRepresentation) Validate ¶
func (u *UserRepresentation) Validate() error
Validate checks the validity of the given User
Click to show internal directories.
Click to hide internal directories.