Documentation ¶
Index ¶
- type MongoDatastore
- type User
- type UserRepository
- func (r *UserRepository) GetOneUser() (*User, error)
- func (r *UserRepository) GetUser(ctx context.Context, args struct{ ... }) (*User, error)
- func (r *UserRepository) GetUserByEmail(ctx context.Context, email string) (*User, error)
- func (r *UserRepository) SaveUser(user User) (*primitive.ObjectID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDatastore ¶
func NewDatastore ¶
func NewDatastore(config *config.GeneralConfig, logger *logrus.Logger) *MongoDatastore
func (*MongoDatastore) GetCollection ¶
func (store *MongoDatastore) GetCollection(name string) *mongo.Collection
func (*MongoDatastore) GetUserRepository ¶
func (store *MongoDatastore) GetUserRepository() *UserRepository
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (*UserRepository) GetOneUser ¶
func (r *UserRepository) GetOneUser() (*User, error)
func (*UserRepository) GetUserByEmail ¶
Click to show internal directories.
Click to hide internal directories.