Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Create(ctx context.Context, pessoa domain.Pessoa) (error, uuid.UUID) Get(ctx context.Context, id uuid.UUID) (error, domain.Pessoa) GetByApelido(ctx context.Context, apelido string) (error, domain.Pessoa) Search(ctx context.Context, term string) (error, []domain.Pessoa) Count(ctx context.Context) (error, int) }
func NewPessoaRepository ¶
func NewPessoaRepository(db *pgxpool.Pool) Repository
type Service ¶
type Service interface { Create(ctx context.Context, pessoa domain.Pessoa) (error, uuid.UUID) Get(ctx context.Context, uid uuid.UUID) (error, domain.Pessoa) Search(ctx context.Context, term string) (error, []domain.Pessoa) Count(ctx context.Context) (error, int) GetByApelido(ctx context.Context, apelido string) (error, domain.Pessoa) }
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.