Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationFactory ¶
type AuthenticationFactory struct { *Factory Fields AuthenticationFields // contains filtered or unexported fields }
Authentication factory
func (*AuthenticationFactory) Create ¶
func (f *AuthenticationFactory) Create(ctx context.Context) *data.Authentication
func (*AuthenticationFactory) With ¶
func (f *AuthenticationFactory) With(cb func(*data.AuthenticationCreate)) *AuthenticationFactory
type AuthenticationFields ¶
type AuthenticationFields struct { PersonID uuid.UUID `json:"person_id,omitempty"` Token []byte `json:"token,omitempty" fakesize:"64"` CreatedIP string `json:"created_ip,omitempty" fake:"{ipv6address}"` LastUsedIP string `json:"last_used_ip,omitempty" fake:"{ipv6address}"` CreatedAt time.Time `json:"created_at,omitempty"` LastUsedAt time.Time `json:"last_used_at,omitempty"` }
type AuthorizationFactory ¶
type AuthorizationFactory struct { *Factory Fields AuthorizationFields // contains filtered or unexported fields }
Authorization factory
func (*AuthorizationFactory) Create ¶
func (f *AuthorizationFactory) Create(ctx context.Context) *data.Authorization
func (*AuthorizationFactory) With ¶
func (f *AuthorizationFactory) With(cb func(*data.AuthorizationCreate)) *AuthorizationFactory
type AuthorizationFields ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Base factory
func (*Factory) Authentication ¶
func (bf *Factory) Authentication() *AuthenticationFactory
func (*Factory) Authorization ¶
func (bf *Factory) Authorization() *AuthorizationFactory
func (*Factory) Person ¶
func (bf *Factory) Person() *PersonFactory
type PersonFactory ¶
type PersonFactory struct { *Factory Fields PersonFields // contains filtered or unexported fields }
Person factory
func (*PersonFactory) With ¶
func (f *PersonFactory) With(cb func(*data.PersonCreate)) *PersonFactory
type PersonFields ¶
type PersonFields struct { StripeID *string `json:"stripe_id,omitempty"` Email string `json:"email,omitempty" fake:"{email}"` EmailVerifiedAt *time.Time `json:"email_verified_at,omitempty"` Phone *string `json:"phone,omitempty" fake:"{phone_e164}"` Password string `json:"password,omitempty"` TaxID string `json:"tax_id,omitempty" fake:"{tax_id}"` FirstName string `json:"first_name,omitempty" fake:"{firstname}"` LastName *string `json:"last_name,omitempty" fake:"{lastname}"` Language string `json:"language,omitempty" fake:"{randomstring:[ca,es,en]}"` Birthdate *time.Time `json:"birthdate,omitempty" fake:"{date}"` Gender *person.Gender `json:"gender,omitempty" fake:"{randomstring:[woman,man,nonbinary]}"` Address *string `json:"address,omitempty" fake:"{street}"` PostalCode *string `json:"postal_code,omitempty" fake:"{zip}"` City *string `json:"city,omitempty" fake:"{city}"` Country *string `json:"country,omitempty" fake:"{countryabr}"` Subscribed bool `json:"subscribed,omitempty"` CreatedAt time.Time `json:"created_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
Click to show internal directories.
Click to hide internal directories.