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: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func ToProces

func ToProces(record *sigma_api.Proces) api.Proces

Types

type Service

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

func New

func New(cfg *config.Config, logger *slog.Logger) (*Service, error)

func (*Service) ReadProcesByID

func (service *Service) ReadProcesByID(ctx context.Context, procesID api.ProcesId, sources []string, attributes *api.QueryAttributesOptional) (*api.Proces, error)

func (*Service) ReadProcessen

func (service *Service) ReadProcessen(ctx context.Context, sources []string, attributes *api.QueryAttributesOptional) ([]api.Proces, error)

func (*Service) ReadProcessenByVreemdelingID

func (service *Service) ReadProcessenByVreemdelingID(ctx context.Context, vreemdelingID api.VreemdelingId, sources []string, attributes *api.QueryAttributesOptional) ([]api.Proces, error)

func (*Service) ReadVreemdelingByID

func (service *Service) ReadVreemdelingByID(
	ctx context.Context,
	vreemdelingID api.VreemdelingId,
	attributes map[string]struct{},
	sources []string,
) (map[string]api.Attribute, error)

Jump to

Keyboard shortcuts

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