services

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreateError

func HandleCreateError(resourceType string, err error) *errors.ServiceError

func HandleDeleteError

func HandleDeleteError(resourceType string, field string, value interface{}, err error) *errors.ServiceError

func HandleGetError

func HandleGetError(resourceType, field string, value interface{}, err error) *errors.ServiceError

func HandleGoneError

func HandleGoneError(resourceType, field string, value interface{}) *errors.ServiceError

func HandleUpdateError

func HandleUpdateError(resourceType string, err error) *errors.ServiceError

func IsRecordNotFoundError

func IsRecordNotFoundError(err error) bool

Types

type ListArguments

type ListArguments struct {
	Page     int
	Size     int
	Preloads []string
	Search   string
	OrderBy  []string
}

ListArguments are arguments relevant for listing objects. This struct is common to all service List funcs in this package

func NewListArguments

func NewListArguments(params url.Values) *ListArguments

NewListArguments - Create ListArguments from url query parameters with sane defaults

func (*ListArguments) Validate

func (la *ListArguments) Validate(acceptedOrderByParams []string) error

Directories

Path Synopsis
The signalbus package provides a simple way to issue notifications that named events have occurred.
The signalbus package provides a simple way to issue notifications that named events have occurred.

Jump to

Keyboard shortcuts

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