graphql

package
v0.0.0-...-f2f1368 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateStructAndAppendErrors

func ValidateStructAndAppendErrors(ctx context.Context, validate *validator.Validate, obj interface{}, argName string) error

ValidateStructAndAppendErrors a struct and appends errors, if there is one, to response.

Types

type ErrorCode

type ErrorCode string

ErrorCode are codes for representing errors in the service

const (
	InputValidationError ErrorCode = "InputValidationError"
	InternalSystemError  ErrorCode = "InternalSystemError"
)

...

func (*ErrorCode) String

func (code *ErrorCode) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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