utils

package
v0.0.0-...-8c8a4b5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CAN_NOT_FETCH_BY_ID   = "CAN_NOT_FETCH_BY_ID"
	INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR"
	GRAPHQL_PARSE_FAILED  = "GRAPHQL_PARSE_FAILED"
)

Variables

This section is empty.

Functions

func ConstructErrorResponse

func ConstructErrorResponse(_errorCode string, _errorMessage string, _logger *zap.Logger) *gqlerror.Error

func GqlErrorRespMiddleware

func GqlErrorRespMiddleware(_logger *zap.Logger) func(context.Context, error) *gqlerror.Error

Types

This section is empty.

Jump to

Keyboard shortcuts

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