Documentation
¶
Index ¶
- func NewSqliteRepository(db *gorm.DB) (repository.UserRepository, error)
- type Sqlite
- func (r *Sqlite) Create(c context.Context, user repository.UserModel) error
- func (r *Sqlite) CreateManifest(c context.Context, manifest repository.ManifestModel) error
- func (r *Sqlite) Get(c context.Context, id string) (repository.UserModel, error)
- func (r *Sqlite) GetByAddress(c context.Context, address string) (repository.UserModel, error)
- func (r *Sqlite) GetByEmail(c context.Context, email string) (repository.UserModel, error)
- func (r *Sqlite) GetManifests(c context.Context, userId string) ([]repository.ManifestModel, error)
- func (r *Sqlite) Migrate() error
- func (r *Sqlite) NewLogin(c context.Context, id string, nonce string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSqliteRepository ¶
func NewSqliteRepository(db *gorm.DB) (repository.UserRepository, error)
Types ¶
type Sqlite ¶
type Sqlite struct { repository.UserRepository // contains filtered or unexported fields }
func (*Sqlite) CreateManifest ¶
func (r *Sqlite) CreateManifest(c context.Context, manifest repository.ManifestModel) error
func (*Sqlite) GetByAddress ¶
func (*Sqlite) GetByEmail ¶
func (*Sqlite) GetManifests ¶
func (r *Sqlite) GetManifests(c context.Context, userId string) ([]repository.ManifestModel, error)
Click to show internal directories.
Click to hide internal directories.