services

package
v0.0.0-...-a116ab3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Some       SomeService
	Validation ValidationService
	Processing ProcessingService
)

Functions

This section is empty.

Types

type ProcessingService

type ProcessingService interface {
	QueueItem(some models.Some)
	Shutdown()
}

type SomeService

type SomeService interface {
	CreateNew(item *models.Some, formData requests.Some) error
	GetSomeToProcess(count uint) *[]models.Some
	LockItem(id uint) error
	FreeItem(id uint)
}

type ValidationService

type ValidationService interface {
	GetErrors(err error, model validation.HasErrorsMessage) []validation.ApiError
	ValidateIdParam(value string, paramName string) (int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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