service

package
v0.1.2-0...-cc8761f Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Users

type Users struct {
	Store  database.Store
	Events *users.Events
}

Users ...

func NewUsers

func NewUsers(store database.Store, events *users.Events) *Users

NewUsers ...

func (*Users) Create

func (us *Users) Create(u *users.User) error

Create ...

func (*Users) Delete

func (us *Users) Delete(u *users.User) error

Delete ...

func (*Users) GetByEmail

func (us *Users) GetByEmail(email string) (*users.User, error)

GetByEmail ...

func (*Users) GetByID

func (us *Users) GetByID(id string) (*users.User, error)

GetByID ...

func (*Users) Update

func (us *Users) Update(u *users.User) error

Update ...

func (*Users) UserList

func (us *Users) UserList() ([]*users.User, error)

UserList ...

Jump to

Keyboard shortcuts

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