Documentation ¶
Index ¶
- Variables
- type PersonService
- func (ps *PersonService) CreatePerson(ctx context.Context, p *domain.Person) (*domain.Person, error)
- func (ps *PersonService) GetPersonByID(p domain.Person) error
- func (ps *PersonService) GetPersons(ctx context.Context) ([]domain.Person, error)
- func (ps *PersonService) ListPersons() map[string]domain.Person
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPersonExists = errors.New("person exits")
)
Functions ¶
This section is empty.
Types ¶
type PersonService ¶
type PersonService struct {
// contains filtered or unexported fields
}
func NewPersonaService ¶
func NewPersonaService() *PersonService
func (*PersonService) CreatePerson ¶
func (*PersonService) GetPersonByID ¶
func (ps *PersonService) GetPersonByID(p domain.Person) error
func (*PersonService) GetPersons ¶
func (*PersonService) ListPersons ¶
func (ps *PersonService) ListPersons() map[string]domain.Person
Click to show internal directories.
Click to hide internal directories.