application

package
v0.0.0-...-81386c3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 (ps *PersonService) CreatePerson(ctx context.Context, p *domain.Person) (*domain.Person, error)

func (*PersonService) GetPersonByID

func (ps *PersonService) GetPersonByID(p domain.Person) error

func (*PersonService) GetPersons

func (ps *PersonService) GetPersons(ctx context.Context) ([]domain.Person, error)

func (*PersonService) ListPersons

func (ps *PersonService) ListPersons() map[string]domain.Person

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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