model

package
v0.0.0-...-5d22fbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUser

func NewUser(getter data.DataContextGetter) repo.User

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 (d User) CollectionName() string

func (User) GenerateID

func (u User) GenerateID()

func (User) GetID

func (u User) GetID() string

func (User) SetID

func (u User) SetID(id string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL