Documentation ¶
Index ¶
- Variables
- type Storage
- func (s *Storage) AddPerson(ctx context.Context, p *models.Person) (id int64, err error)
- func (s *Storage) EditPerson(ctx context.Context, person *models.Person) (err error)
- func (s *Storage) GetList() (personList []models.Person, err error)
- func (s *Storage) GetPerson(ctx context.Context, id int64) (person *models.Person, err error)
- func (s *Storage) RemovePerson(ctx context.Context, id int64) (err error)
- func (s *Storage) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserExists = errors.New("user already exists") ErrUserNotFound = errors.New("user id not found") )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) EditPerson ¶
func (*Storage) RemovePerson ¶
Click to show internal directories.
Click to hide internal directories.