Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveAccreditationRepresentation ¶
type ArchiveAccreditationRepresentation struct { Type *string `json:"type"` ExpiryDate *string `json:"expiryDate"` Revoked *bool `json:"revoked,omitempty"` }
ArchiveAccreditationRepresentation is a representation of accreditations
type ArchiveUserRepresentation ¶
type ArchiveUserRepresentation struct { ID *string `json:"-"` Username *string `json:"username,omitempty"` Gender *string `json:"gender,omitempty"` FirstName *string `json:"firstName,omitempty"` LastName *string `json:"lastName,omitempty"` Email *string `json:"email,omitempty"` EmailVerified *bool `json:"emailVerified,omitempty"` PhoneNumber *string `json:"phoneNumber,omitempty"` PhoneNumberVerified *bool `json:"phoneNumberVerified,omitempty"` BirthDate *string `json:"birthDate,omitempty"` BirthLocation *string `json:"birthLocation,omitempty"` Nationality *string `json:"nationality,omitempty"` IDDocumentType *string `json:"idDocumentType,omitempty"` IDDocumentNumber *string `json:"idDocumentNumber,omitempty"` IDDocumentExpiration *string `json:"idDocumentExpiration,omitempty"` IDDocumentCountry *string `json:"idDocumentCountry,omitempty"` Locale *string `json:"locale,omitempty"` Comment *string `json:"comment,omitempty"` Accreditations []ArchiveAccreditationRepresentation `json:"accreditations,omitempty"` Checks []DBCheck `json:"checks,omitempty"` }
ArchiveUserRepresentation struct
func ToArchiveUserRepresentation ¶
func ToArchiveUserRepresentation(user kc.UserRepresentation) ArchiveUserRepresentation
ToArchiveUserRepresentation converts a Keycloak user to an ArchiveUserRepresentation
func (*ArchiveUserRepresentation) SetDetails ¶
func (u *ArchiveUserRepresentation) SetDetails(dbUser DBUser)
SetDetails sets user details coming from database in the given ArchiveUserRepresentation
type BackOfficeConfiguration ¶
BackOfficeConfiguration definition
type DBCheck ¶
type DBCheck struct { Operator *string DateTime *time.Time Status *string Type *string Nature *string ProofData *[]byte ProofType *string Comment *string }
DBCheck struct
type DBUser ¶
type DBUser struct { UserID *string `json:"-"` BirthLocation *string `json:"birth_location,omitempty"` Nationality *string `json:"nationality,omitempty"` IDDocumentType *string `json:"id_document_typ,omitempty"` IDDocumentNumber *string `json:"id_document_num,omitempty"` IDDocumentExpiration *string `json:"id_document_exp,omitempty"` IDDocumentCountry *string `json:"id_document_country,omitempty"` }
DBUser struct
Click to show internal directories.
Click to hide internal directories.