Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetErrorPresenter ¶
func GetErrorPresenter(log logrus.FieldLogger) graphql.ErrorPresenterFunc
GetErrorPresenter returns a GraphQL error presenter that filters out error messages not intended for end users. All filtered errors are logged.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is an error that can be presented to end-users
func Errorf ¶
Errorf formats an error message for end-users. Remember not to leak sensitive information in error messages.
func (Error) GraphError ¶
Click to show internal directories.
Click to hide internal directories.