service

package
v0.0.0-...-f4a484a Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: EUPL-1.2 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func ToSearchName

func ToSearchName(input string) string

func ToVreemdeling

func ToVreemdeling(record *queries.BvvBackendVreemdeling) *api.Vreemdeling

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger, storage *storage.Database) (*Service, error)

func (*Service) CreateSamenvoeging

func (service *Service) CreateSamenvoeging(ctx context.Context, leadingID, expiredID string) error

func (*Service) CreateVreemdeling

func (service *Service) CreateVreemdeling(ctx context.Context, vreemdeling api.VreemdelingWithoutId) (*api.Vreemdeling, error)

func (*Service) DeleteVreemdelingByID

func (service *Service) DeleteVreemdelingByID(ctx context.Context, vreemdelingID api.VreemdelingId) error

func (*Service) FindVreemdeling

func (service *Service) FindVreemdeling(ctx context.Context, params api.FindVreemdelingParams) ([]api.Vreemdeling, error)

func (*Service) GetSamenvoegingen

func (service *Service) GetSamenvoegingen(ctx context.Context, vreemdelingID api.VreemdelingId) ([]api.VreemdelingId, error)

func (*Service) ReadVreemdelingByID

func (service *Service) ReadVreemdelingByID(ctx context.Context, vreemdelingID api.VreemdelingId) (*api.Vreemdeling, error)

func (*Service) UpdateVreemdelingByID

func (service *Service) UpdateVreemdelingByID(ctx context.Context, vreemdelingID api.VreemdelingId, vreemdeling api.Vreemdeling) (*api.Vreemdeling, error)

Jump to

Keyboard shortcuts

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