Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoRepoFactory ¶
type MongoRepoFactory struct { }
func NewMongoRepoFactory ¶
func NewMongoRepoFactory() MongoRepoFactory
func (MongoRepoFactory) NewUser ¶
func (g MongoRepoFactory) NewUser(getter data.DataContextGetter) repo.User
type User ¶
type User struct { data.DocumentBase `bson:"inline"` Name string Age int Lastname *string }
func (User) CollectionName ¶
func (User) GenerateID ¶
func (u User) GenerateID()
Click to show internal directories.
Click to hide internal directories.