package
0.6.8
Repository: https://github.com/theopenlane/core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AddAllExtensions adds all the extensions to the server including auth, latency and trace.
NewResolver returns a resolver configured with the given ent client.
WithContextLevelCache adds a context level cache to the handler.
WithFileUploader adds the file uploader to the graphql handler this will handle the file upload process for the multipart form.
WithSkipCache adds a skip cache middleware to the handler This is useful for testing, where you don't want to cache responses so you can see the changes immediately.
WithTransactions adds the transactioner to the ent db client.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AuthExtensionKey is the key used to store the auth data in the extensions map.
ServerLatencyExtensionKey is the key used to store the server latency in the extensions map.
TraceExtensionKey is the key used to store the trace id in the extensions map.

# Variables

ErrCascadeDelete is returned when an error occurs while performing cascade deletes on associated objects.
ErrInternalServerError is returned when an internal error occurs.
ErrNoOrganizationID is returned when the organization ID is not provided.
ErrSearchFailed is returned when the search operation fails.
ErrSearchQueryTooShort is returned when the search query is too short.
ErrUnableToDetermineObjectType is returned when the object type up the parent upload object cannot be determined.

# Structs

AlreadyExistsError is returned when an object already exists.
Auth contains the authentication data to be added to the extensions map.
ForeignKeyError is returned when an object does not exist in the related table.
Handler is an http handler wrapping a Resolver.
NotFoundError is returned when the requested object is not found.
Resolver provides a graph response resolver.