apierrs

package
v0.0.0-...-f9f6af2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SETTINGS          = "Settings"
	CONNECTOR_TYPES   = "ConnectorTypes"
	ERROR_BLANK       = "Can't be empty"
	ERROR_SLUG_FORMAT = "Invalid format: only lowercase alphanumeric characters and _"
	ERROR_ZERO        = "Can't be zero"
	ERROR_UNIQUE      = "Is already in use"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

type Errors map[string]interface{}

func NewErrors

func NewErrors() Errors

func (Errors) Add

func (errors Errors) Add(attribute, message string)

func (Errors) AddConnectorTypesError

func (errors Errors) AddConnectorTypesError(connector string)

func (Errors) AddSettingError

func (errors Errors) AddSettingError(attribute, message string)

func (Errors) Empty

func (errors Errors) Empty() bool

func (Errors) Get

func (errors Errors) Get(attribute string) []string

func (Errors) GetConnectorTypesError

func (errors Errors) GetConnectorTypesError(connector string) []string

func (Errors) GetSettingError

func (errors Errors) GetSettingError(attribute string) []string

func (Errors) GetSettings

func (errors Errors) GetSettings() Errors

Test method

Jump to

Keyboard shortcuts

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