pessoa

package
v0.0.0-...-a47ce12 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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