validation

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Field string
	Msg   string
}

type HasErrorsMessage

type HasErrorsMessage interface {
	ValidationErrorMessage(tag string) string
}

type Service

type Service struct{}

func NewService

func NewService() *Service

func (*Service) GetErrors

func (s *Service) GetErrors(err error, model HasErrorsMessage) []ApiError

func (*Service) ValidateIdParam

func (s *Service) ValidateIdParam(value string, paramName string) (int, error)

Jump to

Keyboard shortcuts

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