Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenerateCommand ¶
func NewImportCommand ¶
func NewUserCommand ¶
func RegisterCommands ¶
Types ¶
type ImportEmail ¶
type ImportEmail struct { // Address Valid email address Address string `json:"address" yaml:"address"` // IsPrimary indicates if this is the primary email of the users. In the Emails array there has to be exactly one primary email. IsPrimary bool `json:"is_primary" yaml:"is_primary"` // IsVerified indicates if the email address was previously verified. IsVerified bool `json:"is_verified" yaml:"is_verified"` }
ImportEmail The import format for a user's email
type ImportEntry ¶
type ImportEntry struct { // UserID optional uuid.v4. If not provided a new one will be generated for the user UserID string `json:"user_id" yaml:"user_id"` // Emails List of emails Emails Emails `json:"emails" yaml:"emails"` // CreatedAt optional timestamp of the users' creation. Will be set to the import date if not provided. CreatedAt *time.Time `json:"created_at" yaml:"created_at"` // UpdatedAt optional timestamp of the last update to the user. Will be set to the import date if not provided. UpdatedAt *time.Time `json:"updated_at" yaml:"updated_at"` }
ImportEntry represents a user to be imported to the Hanko database
Click to show internal directories.
Click to hide internal directories.