Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateObject ¶
func CreateObject(a interface{}) interface{}
func CreateObjects ¶
func CreateObjects(a interface{}, num int) []interface{}
Types ¶
type Event ¶
type Event struct { Id primitive.ObjectID `faker:"-" json:"_id,omitempty" bson:"_id,omitempty"` Name string `json:"name" bson:"name"` IsVirtual bool `json:"is_virtual" bson:"isVirtual"` IsPrivate bool `json:"is_private" bson:"isPrivate"` Size int `json:"size" bson:"size"` Owner primitive.ObjectID `json:"owner_id,omitempty" bson:"owner_id,omitempty"` Guests []primitive.ObjectID `json:"guests" bson:"guests"` Intro string `faker:"sentence" json:"intro" bson:"intro"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt time.Time `faker:"-" json:"updatedAt,omitempty" bson:"updatedAt,omitempty"` DeletedAt time.Time `faker:"-" json:"deletedAt,omitempty" bson:"deletedAt,omitempty"` StartAt time.Time `json:"startAt" bson:"startAt"` EndAt time.Time `json:"endAt" bson:"endAt"` Locations []Address `json:"locations" bson:"locations"` Chats []Message `json:"chats"` }
type User ¶
type User struct { Id primitive.ObjectID `faker:"-" json:"_id,omitempty" bson:"_id,omitempty"` Name string `faker:"name" json:"name" bson:"name"` Password string `faker:"password" json:"password" bson:"password"` Phone string `faker:"phone_number" json:"phone" bson:"phone"` Email string `faker:"email" json:"email" bson:"email"` Token string `faker:"jwt" json:"token" bson:"token"` EmailConfirmed bool `json:"emailConfirmed" bson:"emailConfirmed"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt time.Time `faker:"-" json:"updatedAt,omitempty" bson:"updatedAt,omitempty"` DeletedAt time.Time `faker:"-" json:"deletedAt,omitempty" bson:"deletedAt,omitempty"` }
Click to show internal directories.
Click to hide internal directories.