Documentation ¶
Index ¶
- func HandlerAPIDef(fetchFunc func(keys []ParamAPIDef) ([]*graphql.APIDefinitionPage, []error), ...) func(next http.Handler) http.Handler
- func HandlerAssignmentOperation(...) func(next http.Handler) http.Handler
- func HandlerBundle(fetchFunc func(keys []ParamBundle) ([]*graphql.BundlePage, []error), ...) func(next http.Handler) http.Handler
- func HandlerDocument(fetchFunc func(keys []ParamDocument) ([]*graphql.DocumentPage, []error), ...) func(next http.Handler) http.Handler
- func HandlerEventDef(fetchFunc func(keys []ParamEventDef) ([]*graphql.EventDefinitionPage, []error), ...) func(next http.Handler) http.Handler
- func HandlerFetchRequestAPIDef(...) func(next http.Handler) http.Handler
- func HandlerFetchRequestDocument(...) func(next http.Handler) http.Handler
- func HandlerFetchRequestEventDef(...) func(next http.Handler) http.Handler
- func HandlerFormationAssignment(...) func(next http.Handler) http.Handler
- func HandlerFormationConstraint(...) func(next http.Handler) http.Handler
- func HandlerFormationParticipant(...) func(next http.Handler) http.Handler
- func HandlerFormationStatus(...) func(next http.Handler) http.Handler
- func HandlerIntegrationDependency(...) func(next http.Handler) http.Handler
- func HandlerRuntimeContext(...) func(next http.Handler) http.Handler
- type APIDefLoader
- func (l *APIDefLoader) Clear(key ParamAPIDef)
- func (l *APIDefLoader) Load(key ParamAPIDef) (*graphql.APIDefinitionPage, error)
- func (l *APIDefLoader) LoadAll(keys []ParamAPIDef) ([]*graphql.APIDefinitionPage, []error)
- func (l *APIDefLoader) LoadAllThunk(keys []ParamAPIDef) func() ([]*graphql.APIDefinitionPage, []error)
- func (l *APIDefLoader) LoadThunk(key ParamAPIDef) func() (*graphql.APIDefinitionPage, error)
- func (l *APIDefLoader) Prime(key ParamAPIDef, value *graphql.APIDefinitionPage) bool
- type APIDefLoaderConfig
- type APIDefLoaders
- type AssignmentOperationLoader
- func (l *AssignmentOperationLoader) Clear(key ParamAssignmentOperation)
- func (l *AssignmentOperationLoader) Load(key ParamAssignmentOperation) (*graphql.AssignmentOperationPage, error)
- func (l *AssignmentOperationLoader) LoadAll(keys []ParamAssignmentOperation) ([]*graphql.AssignmentOperationPage, []error)
- func (l *AssignmentOperationLoader) LoadAllThunk(keys []ParamAssignmentOperation) func() ([]*graphql.AssignmentOperationPage, []error)
- func (l *AssignmentOperationLoader) LoadThunk(key ParamAssignmentOperation) func() (*graphql.AssignmentOperationPage, error)
- func (l *AssignmentOperationLoader) Prime(key ParamAssignmentOperation, value *graphql.AssignmentOperationPage) bool
- type AssignmentOperationLoaderConfig
- type AssignmentOperationLoaders
- type BundleLoader
- func (l *BundleLoader) Clear(key ParamBundle)
- func (l *BundleLoader) Load(key ParamBundle) (*graphql.BundlePage, error)
- func (l *BundleLoader) LoadAll(keys []ParamBundle) ([]*graphql.BundlePage, []error)
- func (l *BundleLoader) LoadAllThunk(keys []ParamBundle) func() ([]*graphql.BundlePage, []error)
- func (l *BundleLoader) LoadThunk(key ParamBundle) func() (*graphql.BundlePage, error)
- func (l *BundleLoader) Prime(key ParamBundle, value *graphql.BundlePage) bool
- type BundleLoaderConfig
- type BundleLoaders
- type DocumentLoader
- func (l *DocumentLoader) Clear(key ParamDocument)
- func (l *DocumentLoader) Load(key ParamDocument) (*graphql.DocumentPage, error)
- func (l *DocumentLoader) LoadAll(keys []ParamDocument) ([]*graphql.DocumentPage, []error)
- func (l *DocumentLoader) LoadAllThunk(keys []ParamDocument) func() ([]*graphql.DocumentPage, []error)
- func (l *DocumentLoader) LoadThunk(key ParamDocument) func() (*graphql.DocumentPage, error)
- func (l *DocumentLoader) Prime(key ParamDocument, value *graphql.DocumentPage) bool
- type DocumentLoaderConfig
- type DocumentLoaders
- type EventDefLoader
- func (l *EventDefLoader) Clear(key ParamEventDef)
- func (l *EventDefLoader) Load(key ParamEventDef) (*graphql.EventDefinitionPage, error)
- func (l *EventDefLoader) LoadAll(keys []ParamEventDef) ([]*graphql.EventDefinitionPage, []error)
- func (l *EventDefLoader) LoadAllThunk(keys []ParamEventDef) func() ([]*graphql.EventDefinitionPage, []error)
- func (l *EventDefLoader) LoadThunk(key ParamEventDef) func() (*graphql.EventDefinitionPage, error)
- func (l *EventDefLoader) Prime(key ParamEventDef, value *graphql.EventDefinitionPage) bool
- type EventDefLoaderConfig
- type EventDefLoaders
- type FetchRequestAPIDefLoader
- func (l *FetchRequestAPIDefLoader) Clear(key ParamFetchRequestAPIDef)
- func (l *FetchRequestAPIDefLoader) Load(key ParamFetchRequestAPIDef) (*graphql.FetchRequest, error)
- func (l *FetchRequestAPIDefLoader) LoadAll(keys []ParamFetchRequestAPIDef) ([]*graphql.FetchRequest, []error)
- func (l *FetchRequestAPIDefLoader) LoadAllThunk(keys []ParamFetchRequestAPIDef) func() ([]*graphql.FetchRequest, []error)
- func (l *FetchRequestAPIDefLoader) LoadThunk(key ParamFetchRequestAPIDef) func() (*graphql.FetchRequest, error)
- func (l *FetchRequestAPIDefLoader) Prime(key ParamFetchRequestAPIDef, value *graphql.FetchRequest) bool
- type FetchRequestAPIDefLoaderConfig
- type FetchRequestDocumentLoader
- func (l *FetchRequestDocumentLoader) Clear(key ParamFetchRequestDocument)
- func (l *FetchRequestDocumentLoader) Load(key ParamFetchRequestDocument) (*graphql.FetchRequest, error)
- func (l *FetchRequestDocumentLoader) LoadAll(keys []ParamFetchRequestDocument) ([]*graphql.FetchRequest, []error)
- func (l *FetchRequestDocumentLoader) LoadAllThunk(keys []ParamFetchRequestDocument) func() ([]*graphql.FetchRequest, []error)
- func (l *FetchRequestDocumentLoader) LoadThunk(key ParamFetchRequestDocument) func() (*graphql.FetchRequest, error)
- func (l *FetchRequestDocumentLoader) Prime(key ParamFetchRequestDocument, value *graphql.FetchRequest) bool
- type FetchRequestDocumentLoaderConfig
- type FetchRequestEventDefLoader
- func (l *FetchRequestEventDefLoader) Clear(key ParamFetchRequestEventDef)
- func (l *FetchRequestEventDefLoader) Load(key ParamFetchRequestEventDef) (*graphql.FetchRequest, error)
- func (l *FetchRequestEventDefLoader) LoadAll(keys []ParamFetchRequestEventDef) ([]*graphql.FetchRequest, []error)
- func (l *FetchRequestEventDefLoader) LoadAllThunk(keys []ParamFetchRequestEventDef) func() ([]*graphql.FetchRequest, []error)
- func (l *FetchRequestEventDefLoader) LoadThunk(key ParamFetchRequestEventDef) func() (*graphql.FetchRequest, error)
- func (l *FetchRequestEventDefLoader) Prime(key ParamFetchRequestEventDef, value *graphql.FetchRequest) bool
- type FetchRequestEventDefLoaderConfig
- type FormationAssignmentLoader
- func (l *FormationAssignmentLoader) Clear(key ParamFormationAssignment)
- func (l *FormationAssignmentLoader) Load(key ParamFormationAssignment) (*graphql.FormationAssignmentPage, error)
- func (l *FormationAssignmentLoader) LoadAll(keys []ParamFormationAssignment) ([]*graphql.FormationAssignmentPage, []error)
- func (l *FormationAssignmentLoader) LoadAllThunk(keys []ParamFormationAssignment) func() ([]*graphql.FormationAssignmentPage, []error)
- func (l *FormationAssignmentLoader) LoadThunk(key ParamFormationAssignment) func() (*graphql.FormationAssignmentPage, error)
- func (l *FormationAssignmentLoader) Prime(key ParamFormationAssignment, value *graphql.FormationAssignmentPage) bool
- type FormationAssignmentLoaderConfig
- type FormationAssignmentLoaders
- type FormationConstraintLoader
- func (l *FormationConstraintLoader) Clear(key ParamFormationConstraint)
- func (l *FormationConstraintLoader) Load(key ParamFormationConstraint) ([]*graphql.FormationConstraint, error)
- func (l *FormationConstraintLoader) LoadAll(keys []ParamFormationConstraint) ([][]*graphql.FormationConstraint, []error)
- func (l *FormationConstraintLoader) LoadAllThunk(keys []ParamFormationConstraint) func() ([][]*graphql.FormationConstraint, []error)
- func (l *FormationConstraintLoader) LoadThunk(key ParamFormationConstraint) func() ([]*graphql.FormationConstraint, error)
- func (l *FormationConstraintLoader) Prime(key ParamFormationConstraint, value []*graphql.FormationConstraint) bool
- type FormationConstraintLoaderConfig
- type FormationConstraintLoaders
- type FormationParticipantDataloader
- func (l *FormationParticipantDataloader) Clear(key ParamFormationParticipant)
- func (l *FormationParticipantDataloader) Load(key ParamFormationParticipant) (graphql.FormationParticipant, error)
- func (l *FormationParticipantDataloader) LoadAll(keys []ParamFormationParticipant) ([]graphql.FormationParticipant, []error)
- func (l *FormationParticipantDataloader) LoadAllThunk(keys []ParamFormationParticipant) func() ([]graphql.FormationParticipant, []error)
- func (l *FormationParticipantDataloader) LoadThunk(key ParamFormationParticipant) func() (graphql.FormationParticipant, error)
- func (l *FormationParticipantDataloader) Prime(key ParamFormationParticipant, value graphql.FormationParticipant) bool
- type FormationParticipantDataloaderConfig
- type FormationStatusLoader
- func (l *FormationStatusLoader) Clear(key ParamFormationStatus)
- func (l *FormationStatusLoader) Load(key ParamFormationStatus) (*graphql.FormationStatus, error)
- func (l *FormationStatusLoader) LoadAll(keys []ParamFormationStatus) ([]*graphql.FormationStatus, []error)
- func (l *FormationStatusLoader) LoadAllThunk(keys []ParamFormationStatus) func() ([]*graphql.FormationStatus, []error)
- func (l *FormationStatusLoader) LoadThunk(key ParamFormationStatus) func() (*graphql.FormationStatus, error)
- func (l *FormationStatusLoader) Prime(key ParamFormationStatus, value *graphql.FormationStatus) bool
- type FormationStatusLoaderConfig
- type FormationStatusLoaders
- type IntegrationDependencyLoader
- func (l *IntegrationDependencyLoader) Clear(key ParamIntegrationDependency)
- func (l *IntegrationDependencyLoader) Load(key ParamIntegrationDependency) (*graphql.IntegrationDependencyPage, error)
- func (l *IntegrationDependencyLoader) LoadAll(keys []ParamIntegrationDependency) ([]*graphql.IntegrationDependencyPage, []error)
- func (l *IntegrationDependencyLoader) LoadAllThunk(keys []ParamIntegrationDependency) func() ([]*graphql.IntegrationDependencyPage, []error)
- func (l *IntegrationDependencyLoader) LoadThunk(key ParamIntegrationDependency) func() (*graphql.IntegrationDependencyPage, error)
- func (l *IntegrationDependencyLoader) Prime(key ParamIntegrationDependency, value *graphql.IntegrationDependencyPage) bool
- type IntegrationDependencyLoaderConfig
- type IntegrationDependencyLoaders
- type LoadersFetchRequestAPIDef
- type LoadersFetchRequestDocument
- type LoadersFetchRequestEventDef
- type LoadersFormationParticipant
- type ParamAPIDef
- type ParamAssignmentOperation
- type ParamBundle
- type ParamDocument
- type ParamEventDef
- type ParamFetchRequestAPIDef
- type ParamFetchRequestDocument
- type ParamFetchRequestEventDef
- type ParamFormationAssignment
- type ParamFormationConstraint
- type ParamFormationParticipant
- type ParamFormationStatus
- type ParamIntegrationDependency
- type ParamRuntimeContext
- type RuntimeContextLoader
- func (l *RuntimeContextLoader) Clear(key ParamRuntimeContext)
- func (l *RuntimeContextLoader) Load(key ParamRuntimeContext) (*graphql.RuntimeContextPage, error)
- func (l *RuntimeContextLoader) LoadAll(keys []ParamRuntimeContext) ([]*graphql.RuntimeContextPage, []error)
- func (l *RuntimeContextLoader) LoadAllThunk(keys []ParamRuntimeContext) func() ([]*graphql.RuntimeContextPage, []error)
- func (l *RuntimeContextLoader) LoadThunk(key ParamRuntimeContext) func() (*graphql.RuntimeContextPage, error)
- func (l *RuntimeContextLoader) Prime(key ParamRuntimeContext, value *graphql.RuntimeContextPage) bool
- type RuntimeContextLoaderConfig
- type RuntimeContextLoaders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerAPIDef ¶
func HandlerAPIDef(fetchFunc func(keys []ParamAPIDef) ([]*graphql.APIDefinitionPage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerAPIDef missing godoc
func HandlerAssignmentOperation ¶
func HandlerAssignmentOperation(fetchFunc func(keys []ParamAssignmentOperation) ([]*graphql.AssignmentOperationPage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerAssignmentOperation missing godoc
func HandlerBundle ¶
func HandlerBundle(fetchFunc func(keys []ParamBundle) ([]*graphql.BundlePage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerBundle missing godoc
func HandlerDocument ¶
func HandlerDocument(fetchFunc func(keys []ParamDocument) ([]*graphql.DocumentPage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerDocument missing godoc
func HandlerEventDef ¶
func HandlerEventDef(fetchFunc func(keys []ParamEventDef) ([]*graphql.EventDefinitionPage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerEventDef missing godoc
func HandlerFetchRequestAPIDef ¶
func HandlerFetchRequestAPIDef(fetchFunc func(keys []ParamFetchRequestAPIDef) ([]*graphql.FetchRequest, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerFetchRequestAPIDef missing godoc
func HandlerFetchRequestDocument ¶
func HandlerFetchRequestDocument(fetchFunc func(keys []ParamFetchRequestDocument) ([]*graphql.FetchRequest, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerFetchRequestDocument missing godoc
func HandlerFetchRequestEventDef ¶
func HandlerFetchRequestEventDef(fetchFunc func(keys []ParamFetchRequestEventDef) ([]*graphql.FetchRequest, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerFetchRequestEventDef missing godoc
func HandlerFormationAssignment ¶
func HandlerFormationAssignment(fetchFunc func(keys []ParamFormationAssignment) ([]*graphql.FormationAssignmentPage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerFormationAssignment missing godoc
func HandlerFormationConstraint ¶
func HandlerFormationConstraint(fetchFunc func(keys []ParamFormationConstraint) ([][]*graphql.FormationConstraint, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerFormationConstraint missing godoc
func HandlerFormationParticipant ¶
func HandlerFormationParticipant(fetchFunc func(keys []ParamFormationParticipant) ([]graphql.FormationParticipant, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerFormationParticipant prepares the parameters for the dataloader
func HandlerFormationStatus ¶
func HandlerFormationStatus(fetchFunc func(keys []ParamFormationStatus) ([]*graphql.FormationStatus, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerFormationStatus missing godoc
func HandlerIntegrationDependency ¶
func HandlerIntegrationDependency(fetchFunc func(keys []ParamIntegrationDependency) ([]*graphql.IntegrationDependencyPage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerIntegrationDependency missing godoc
func HandlerRuntimeContext ¶
func HandlerRuntimeContext(fetchFunc func(keys []ParamRuntimeContext) ([]*graphql.RuntimeContextPage, []error), maxBatch int, wait time.Duration) func(next http.Handler) http.Handler
HandlerRuntimeContext missing godoc
Types ¶
type APIDefLoader ¶
type APIDefLoader struct {
// contains filtered or unexported fields
}
APIDefLoader batches and caches requests
func NewAPIDefLoader ¶
func NewAPIDefLoader(config APIDefLoaderConfig) *APIDefLoader
NewAPIDefLoader creates a new APIDefLoader given a fetch, wait, and maxBatch
func (*APIDefLoader) Clear ¶
func (l *APIDefLoader) Clear(key ParamAPIDef)
Clear the value at key from the cache, if it exists
func (*APIDefLoader) Load ¶
func (l *APIDefLoader) Load(key ParamAPIDef) (*graphql.APIDefinitionPage, error)
Load a APIDefinitionPage by key, batching and caching will be applied automatically
func (*APIDefLoader) LoadAll ¶
func (l *APIDefLoader) LoadAll(keys []ParamAPIDef) ([]*graphql.APIDefinitionPage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*APIDefLoader) LoadAllThunk ¶
func (l *APIDefLoader) LoadAllThunk(keys []ParamAPIDef) func() ([]*graphql.APIDefinitionPage, []error)
LoadAllThunk returns a function that when called will block waiting for a APIDefinitionPages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*APIDefLoader) LoadThunk ¶
func (l *APIDefLoader) LoadThunk(key ParamAPIDef) func() (*graphql.APIDefinitionPage, error)
LoadThunk returns a function that when called will block waiting for a APIDefinitionPage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*APIDefLoader) Prime ¶
func (l *APIDefLoader) Prime(key ParamAPIDef, value *graphql.APIDefinitionPage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type APIDefLoaderConfig ¶
type APIDefLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamAPIDef) ([]*graphql.APIDefinitionPage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
APIDefLoaderConfig captures the config to create a new APIDefLoader
type APIDefLoaders ¶
type APIDefLoaders struct {
APIDefByID APIDefLoader
}
APIDefLoaders missing godoc
type AssignmentOperationLoader ¶
type AssignmentOperationLoader struct {
// contains filtered or unexported fields
}
AssignmentOperationLoader batches and caches requests
func NewAssignmentOperationLoader ¶
func NewAssignmentOperationLoader(config AssignmentOperationLoaderConfig) *AssignmentOperationLoader
NewAssignmentOperationLoader creates a new AssignmentOperationLoader given a fetch, wait, and maxBatch
func (*AssignmentOperationLoader) Clear ¶
func (l *AssignmentOperationLoader) Clear(key ParamAssignmentOperation)
Clear the value at key from the cache, if it exists
func (*AssignmentOperationLoader) Load ¶
func (l *AssignmentOperationLoader) Load(key ParamAssignmentOperation) (*graphql.AssignmentOperationPage, error)
Load a AssignmentOperationPage by key, batching and caching will be applied automatically
func (*AssignmentOperationLoader) LoadAll ¶
func (l *AssignmentOperationLoader) LoadAll(keys []ParamAssignmentOperation) ([]*graphql.AssignmentOperationPage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*AssignmentOperationLoader) LoadAllThunk ¶
func (l *AssignmentOperationLoader) LoadAllThunk(keys []ParamAssignmentOperation) func() ([]*graphql.AssignmentOperationPage, []error)
LoadAllThunk returns a function that when called will block waiting for a AssignmentOperationPages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*AssignmentOperationLoader) LoadThunk ¶
func (l *AssignmentOperationLoader) LoadThunk(key ParamAssignmentOperation) func() (*graphql.AssignmentOperationPage, error)
LoadThunk returns a function that when called will block waiting for a AssignmentOperationPage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*AssignmentOperationLoader) Prime ¶
func (l *AssignmentOperationLoader) Prime(key ParamAssignmentOperation, value *graphql.AssignmentOperationPage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type AssignmentOperationLoaderConfig ¶
type AssignmentOperationLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamAssignmentOperation) ([]*graphql.AssignmentOperationPage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
AssignmentOperationLoaderConfig captures the config to create a new AssignmentOperationLoader
type AssignmentOperationLoaders ¶
type AssignmentOperationLoaders struct {
AssignmentOperationByID AssignmentOperationLoader
}
AssignmentOperationLoaders missing godoc
func FormationAssignmentFor ¶
func FormationAssignmentFor(ctx context.Context) *AssignmentOperationLoaders
FormationAssignmentFor missing godoc
type BundleLoader ¶
type BundleLoader struct {
// contains filtered or unexported fields
}
BundleLoader batches and caches requests
func NewBundleLoader ¶
func NewBundleLoader(config BundleLoaderConfig) *BundleLoader
NewBundleLoader creates a new BundleLoader given a fetch, wait, and maxBatch
func (*BundleLoader) Clear ¶
func (l *BundleLoader) Clear(key ParamBundle)
Clear the value at key from the cache, if it exists
func (*BundleLoader) Load ¶
func (l *BundleLoader) Load(key ParamBundle) (*graphql.BundlePage, error)
Load a BundlePage by key, batching and caching will be applied automatically
func (*BundleLoader) LoadAll ¶
func (l *BundleLoader) LoadAll(keys []ParamBundle) ([]*graphql.BundlePage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*BundleLoader) LoadAllThunk ¶
func (l *BundleLoader) LoadAllThunk(keys []ParamBundle) func() ([]*graphql.BundlePage, []error)
LoadAllThunk returns a function that when called will block waiting for a BundlePages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*BundleLoader) LoadThunk ¶
func (l *BundleLoader) LoadThunk(key ParamBundle) func() (*graphql.BundlePage, error)
LoadThunk returns a function that when called will block waiting for a BundlePage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*BundleLoader) Prime ¶
func (l *BundleLoader) Prime(key ParamBundle, value *graphql.BundlePage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type BundleLoaderConfig ¶
type BundleLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamBundle) ([]*graphql.BundlePage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
BundleLoaderConfig captures the config to create a new BundleLoader
type BundleLoaders ¶
type BundleLoaders struct {
BundleByID BundleLoader
}
BundleLoaders missing godoc
type DocumentLoader ¶
type DocumentLoader struct {
// contains filtered or unexported fields
}
DocumentLoader batches and caches requests
func NewDocumentLoader ¶
func NewDocumentLoader(config DocumentLoaderConfig) *DocumentLoader
NewDocumentLoader creates a new DocumentLoader given a fetch, wait, and maxBatch
func (*DocumentLoader) Clear ¶
func (l *DocumentLoader) Clear(key ParamDocument)
Clear the value at key from the cache, if it exists
func (*DocumentLoader) Load ¶
func (l *DocumentLoader) Load(key ParamDocument) (*graphql.DocumentPage, error)
Load a DocumentPage by key, batching and caching will be applied automatically
func (*DocumentLoader) LoadAll ¶
func (l *DocumentLoader) LoadAll(keys []ParamDocument) ([]*graphql.DocumentPage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*DocumentLoader) LoadAllThunk ¶
func (l *DocumentLoader) LoadAllThunk(keys []ParamDocument) func() ([]*graphql.DocumentPage, []error)
LoadAllThunk returns a function that when called will block waiting for a DocumentPages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*DocumentLoader) LoadThunk ¶
func (l *DocumentLoader) LoadThunk(key ParamDocument) func() (*graphql.DocumentPage, error)
LoadThunk returns a function that when called will block waiting for a DocumentPage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*DocumentLoader) Prime ¶
func (l *DocumentLoader) Prime(key ParamDocument, value *graphql.DocumentPage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type DocumentLoaderConfig ¶
type DocumentLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamDocument) ([]*graphql.DocumentPage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
DocumentLoaderConfig captures the config to create a new DocumentLoader
type DocumentLoaders ¶
type DocumentLoaders struct {
DocumentByID DocumentLoader
}
DocumentLoaders missing godoc
type EventDefLoader ¶
type EventDefLoader struct {
// contains filtered or unexported fields
}
EventDefLoader batches and caches requests
func NewEventDefLoader ¶
func NewEventDefLoader(config EventDefLoaderConfig) *EventDefLoader
NewEventDefLoader creates a new EventDefLoader given a fetch, wait, and maxBatch
func (*EventDefLoader) Clear ¶
func (l *EventDefLoader) Clear(key ParamEventDef)
Clear the value at key from the cache, if it exists
func (*EventDefLoader) Load ¶
func (l *EventDefLoader) Load(key ParamEventDef) (*graphql.EventDefinitionPage, error)
Load a EventDefinitionPage by key, batching and caching will be applied automatically
func (*EventDefLoader) LoadAll ¶
func (l *EventDefLoader) LoadAll(keys []ParamEventDef) ([]*graphql.EventDefinitionPage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*EventDefLoader) LoadAllThunk ¶
func (l *EventDefLoader) LoadAllThunk(keys []ParamEventDef) func() ([]*graphql.EventDefinitionPage, []error)
LoadAllThunk returns a function that when called will block waiting for a EventDefinitionPages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*EventDefLoader) LoadThunk ¶
func (l *EventDefLoader) LoadThunk(key ParamEventDef) func() (*graphql.EventDefinitionPage, error)
LoadThunk returns a function that when called will block waiting for a EventDefinitionPage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*EventDefLoader) Prime ¶
func (l *EventDefLoader) Prime(key ParamEventDef, value *graphql.EventDefinitionPage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type EventDefLoaderConfig ¶
type EventDefLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamEventDef) ([]*graphql.EventDefinitionPage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
EventDefLoaderConfig captures the config to create a new EventDefLoader
type EventDefLoaders ¶
type EventDefLoaders struct {
EventDefByID EventDefLoader
}
EventDefLoaders missing godoc
type FetchRequestAPIDefLoader ¶
type FetchRequestAPIDefLoader struct {
// contains filtered or unexported fields
}
FetchRequestAPIDefLoader batches and caches requests
func NewFetchRequestAPIDefLoader ¶
func NewFetchRequestAPIDefLoader(config FetchRequestAPIDefLoaderConfig) *FetchRequestAPIDefLoader
NewFetchRequestAPIDefLoader creates a new FetchRequestAPIDefLoader given a fetch, wait, and maxBatch
func (*FetchRequestAPIDefLoader) Clear ¶
func (l *FetchRequestAPIDefLoader) Clear(key ParamFetchRequestAPIDef)
Clear the value at key from the cache, if it exists
func (*FetchRequestAPIDefLoader) Load ¶
func (l *FetchRequestAPIDefLoader) Load(key ParamFetchRequestAPIDef) (*graphql.FetchRequest, error)
Load a FetchRequest by key, batching and caching will be applied automatically
func (*FetchRequestAPIDefLoader) LoadAll ¶
func (l *FetchRequestAPIDefLoader) LoadAll(keys []ParamFetchRequestAPIDef) ([]*graphql.FetchRequest, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*FetchRequestAPIDefLoader) LoadAllThunk ¶
func (l *FetchRequestAPIDefLoader) LoadAllThunk(keys []ParamFetchRequestAPIDef) func() ([]*graphql.FetchRequest, []error)
LoadAllThunk returns a function that when called will block waiting for a FetchRequests. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FetchRequestAPIDefLoader) LoadThunk ¶
func (l *FetchRequestAPIDefLoader) LoadThunk(key ParamFetchRequestAPIDef) func() (*graphql.FetchRequest, error)
LoadThunk returns a function that when called will block waiting for a FetchRequest. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FetchRequestAPIDefLoader) Prime ¶
func (l *FetchRequestAPIDefLoader) Prime(key ParamFetchRequestAPIDef, value *graphql.FetchRequest) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type FetchRequestAPIDefLoaderConfig ¶
type FetchRequestAPIDefLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamFetchRequestAPIDef) ([]*graphql.FetchRequest, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
FetchRequestAPIDefLoaderConfig captures the config to create a new FetchRequestAPIDefLoader
type FetchRequestDocumentLoader ¶
type FetchRequestDocumentLoader struct {
// contains filtered or unexported fields
}
FetchRequestDocumentLoader batches and caches requests
func NewFetchRequestDocumentLoader ¶
func NewFetchRequestDocumentLoader(config FetchRequestDocumentLoaderConfig) *FetchRequestDocumentLoader
NewFetchRequestDocumentLoader creates a new FetchRequestDocumentLoader given a fetch, wait, and maxBatch
func (*FetchRequestDocumentLoader) Clear ¶
func (l *FetchRequestDocumentLoader) Clear(key ParamFetchRequestDocument)
Clear the value at key from the cache, if it exists
func (*FetchRequestDocumentLoader) Load ¶
func (l *FetchRequestDocumentLoader) Load(key ParamFetchRequestDocument) (*graphql.FetchRequest, error)
Load a FetchRequest by key, batching and caching will be applied automatically
func (*FetchRequestDocumentLoader) LoadAll ¶
func (l *FetchRequestDocumentLoader) LoadAll(keys []ParamFetchRequestDocument) ([]*graphql.FetchRequest, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*FetchRequestDocumentLoader) LoadAllThunk ¶
func (l *FetchRequestDocumentLoader) LoadAllThunk(keys []ParamFetchRequestDocument) func() ([]*graphql.FetchRequest, []error)
LoadAllThunk returns a function that when called will block waiting for a FetchRequests. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FetchRequestDocumentLoader) LoadThunk ¶
func (l *FetchRequestDocumentLoader) LoadThunk(key ParamFetchRequestDocument) func() (*graphql.FetchRequest, error)
LoadThunk returns a function that when called will block waiting for a FetchRequest. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FetchRequestDocumentLoader) Prime ¶
func (l *FetchRequestDocumentLoader) Prime(key ParamFetchRequestDocument, value *graphql.FetchRequest) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type FetchRequestDocumentLoaderConfig ¶
type FetchRequestDocumentLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamFetchRequestDocument) ([]*graphql.FetchRequest, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
FetchRequestDocumentLoaderConfig captures the config to create a new FetchRequestDocumentLoader
type FetchRequestEventDefLoader ¶
type FetchRequestEventDefLoader struct {
// contains filtered or unexported fields
}
FetchRequestEventDefLoader batches and caches requests
func NewFetchRequestEventDefLoader ¶
func NewFetchRequestEventDefLoader(config FetchRequestEventDefLoaderConfig) *FetchRequestEventDefLoader
NewFetchRequestEventDefLoader creates a new FetchRequestEventDefLoader given a fetch, wait, and maxBatch
func (*FetchRequestEventDefLoader) Clear ¶
func (l *FetchRequestEventDefLoader) Clear(key ParamFetchRequestEventDef)
Clear the value at key from the cache, if it exists
func (*FetchRequestEventDefLoader) Load ¶
func (l *FetchRequestEventDefLoader) Load(key ParamFetchRequestEventDef) (*graphql.FetchRequest, error)
Load a FetchRequest by key, batching and caching will be applied automatically
func (*FetchRequestEventDefLoader) LoadAll ¶
func (l *FetchRequestEventDefLoader) LoadAll(keys []ParamFetchRequestEventDef) ([]*graphql.FetchRequest, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*FetchRequestEventDefLoader) LoadAllThunk ¶
func (l *FetchRequestEventDefLoader) LoadAllThunk(keys []ParamFetchRequestEventDef) func() ([]*graphql.FetchRequest, []error)
LoadAllThunk returns a function that when called will block waiting for a FetchRequests. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FetchRequestEventDefLoader) LoadThunk ¶
func (l *FetchRequestEventDefLoader) LoadThunk(key ParamFetchRequestEventDef) func() (*graphql.FetchRequest, error)
LoadThunk returns a function that when called will block waiting for a FetchRequest. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FetchRequestEventDefLoader) Prime ¶
func (l *FetchRequestEventDefLoader) Prime(key ParamFetchRequestEventDef, value *graphql.FetchRequest) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type FetchRequestEventDefLoaderConfig ¶
type FetchRequestEventDefLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamFetchRequestEventDef) ([]*graphql.FetchRequest, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
FetchRequestEventDefLoaderConfig captures the config to create a new FetchRequestEventDefLoader
type FormationAssignmentLoader ¶
type FormationAssignmentLoader struct {
// contains filtered or unexported fields
}
FormationAssignmentLoader batches and caches requests
func NewFormationAssignmentLoader ¶
func NewFormationAssignmentLoader(config FormationAssignmentLoaderConfig) *FormationAssignmentLoader
NewFormationAssignmentLoader creates a new FormationAssignmentLoader given a fetch, wait, and maxBatch
func (*FormationAssignmentLoader) Clear ¶
func (l *FormationAssignmentLoader) Clear(key ParamFormationAssignment)
Clear the value at key from the cache, if it exists
func (*FormationAssignmentLoader) Load ¶
func (l *FormationAssignmentLoader) Load(key ParamFormationAssignment) (*graphql.FormationAssignmentPage, error)
Load a FormationAssignmentPage by key, batching and caching will be applied automatically
func (*FormationAssignmentLoader) LoadAll ¶
func (l *FormationAssignmentLoader) LoadAll(keys []ParamFormationAssignment) ([]*graphql.FormationAssignmentPage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*FormationAssignmentLoader) LoadAllThunk ¶
func (l *FormationAssignmentLoader) LoadAllThunk(keys []ParamFormationAssignment) func() ([]*graphql.FormationAssignmentPage, []error)
LoadAllThunk returns a function that when called will block waiting for a FormationAssignmentPages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationAssignmentLoader) LoadThunk ¶
func (l *FormationAssignmentLoader) LoadThunk(key ParamFormationAssignment) func() (*graphql.FormationAssignmentPage, error)
LoadThunk returns a function that when called will block waiting for a FormationAssignmentPage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationAssignmentLoader) Prime ¶
func (l *FormationAssignmentLoader) Prime(key ParamFormationAssignment, value *graphql.FormationAssignmentPage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type FormationAssignmentLoaderConfig ¶
type FormationAssignmentLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamFormationAssignment) ([]*graphql.FormationAssignmentPage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
FormationAssignmentLoaderConfig captures the config to create a new FormationAssignmentLoader
type FormationAssignmentLoaders ¶
type FormationAssignmentLoaders struct {
FormationAssignmentByID FormationAssignmentLoader
}
FormationAssignmentLoaders missing godoc
func FormationFor ¶
func FormationFor(ctx context.Context) *FormationAssignmentLoaders
FormationFor missing godoc
type FormationConstraintLoader ¶
type FormationConstraintLoader struct {
// contains filtered or unexported fields
}
FormationConstraintLoader batches and caches requests
func NewFormationConstraintLoader ¶
func NewFormationConstraintLoader(config FormationConstraintLoaderConfig) *FormationConstraintLoader
NewFormationConstraintLoader creates a new FormationConstraintLoader given a fetch, wait, and maxBatch
func (*FormationConstraintLoader) Clear ¶
func (l *FormationConstraintLoader) Clear(key ParamFormationConstraint)
Clear the value at key from the cache, if it exists
func (*FormationConstraintLoader) Load ¶
func (l *FormationConstraintLoader) Load(key ParamFormationConstraint) ([]*graphql.FormationConstraint, error)
Load a FormationConstraint by key, batching and caching will be applied automatically
func (*FormationConstraintLoader) LoadAll ¶
func (l *FormationConstraintLoader) LoadAll(keys []ParamFormationConstraint) ([][]*graphql.FormationConstraint, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*FormationConstraintLoader) LoadAllThunk ¶
func (l *FormationConstraintLoader) LoadAllThunk(keys []ParamFormationConstraint) func() ([][]*graphql.FormationConstraint, []error)
LoadAllThunk returns a function that when called will block waiting for a FormationConstraints. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationConstraintLoader) LoadThunk ¶
func (l *FormationConstraintLoader) LoadThunk(key ParamFormationConstraint) func() ([]*graphql.FormationConstraint, error)
LoadThunk returns a function that when called will block waiting for a FormationConstraint. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationConstraintLoader) Prime ¶
func (l *FormationConstraintLoader) Prime(key ParamFormationConstraint, value []*graphql.FormationConstraint) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type FormationConstraintLoaderConfig ¶
type FormationConstraintLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamFormationConstraint) ([][]*graphql.FormationConstraint, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
FormationConstraintLoaderConfig captures the config to create a new FormationConstraintLoader
type FormationConstraintLoaders ¶
type FormationConstraintLoaders struct {
FormationConstraintByID FormationConstraintLoader
}
FormationConstraintLoaders missing godoc
func FormationTemplateFor ¶
func FormationTemplateFor(ctx context.Context) *FormationConstraintLoaders
FormationTemplateFor missing godoc
type FormationParticipantDataloader ¶
type FormationParticipantDataloader struct {
// contains filtered or unexported fields
}
FormationParticipantDataloader batches and caches requests
func NewFormationParticipantDataloader ¶
func NewFormationParticipantDataloader(config FormationParticipantDataloaderConfig) *FormationParticipantDataloader
NewFormationParticipantDataloader creates a new FormationParticipantDataloader given a fetch, wait, and maxBatch
func (*FormationParticipantDataloader) Clear ¶
func (l *FormationParticipantDataloader) Clear(key ParamFormationParticipant)
Clear the value at key from the cache, if it exists
func (*FormationParticipantDataloader) Load ¶
func (l *FormationParticipantDataloader) Load(key ParamFormationParticipant) (graphql.FormationParticipant, error)
Load a FormationParticipant by key, batching and caching will be applied automatically
func (*FormationParticipantDataloader) LoadAll ¶
func (l *FormationParticipantDataloader) LoadAll(keys []ParamFormationParticipant) ([]graphql.FormationParticipant, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*FormationParticipantDataloader) LoadAllThunk ¶
func (l *FormationParticipantDataloader) LoadAllThunk(keys []ParamFormationParticipant) func() ([]graphql.FormationParticipant, []error)
LoadAllThunk returns a function that when called will block waiting for a FormationParticipants. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationParticipantDataloader) LoadThunk ¶
func (l *FormationParticipantDataloader) LoadThunk(key ParamFormationParticipant) func() (graphql.FormationParticipant, error)
LoadThunk returns a function that when called will block waiting for a FormationParticipant. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationParticipantDataloader) Prime ¶
func (l *FormationParticipantDataloader) Prime(key ParamFormationParticipant, value graphql.FormationParticipant) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type FormationParticipantDataloaderConfig ¶
type FormationParticipantDataloaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamFormationParticipant) ([]graphql.FormationParticipant, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
FormationParticipantDataloaderConfig captures the config to create a new FormationParticipantDataloader
type FormationStatusLoader ¶
type FormationStatusLoader struct {
// contains filtered or unexported fields
}
FormationStatusLoader batches and caches requests
func NewFormationStatusLoader ¶
func NewFormationStatusLoader(config FormationStatusLoaderConfig) *FormationStatusLoader
NewFormationStatusLoader creates a new FormationStatusLoader given a fetch, wait, and maxBatch
func (*FormationStatusLoader) Clear ¶
func (l *FormationStatusLoader) Clear(key ParamFormationStatus)
Clear the value at key from the cache, if it exists
func (*FormationStatusLoader) Load ¶
func (l *FormationStatusLoader) Load(key ParamFormationStatus) (*graphql.FormationStatus, error)
Load a FormationStatus by key, batching and caching will be applied automatically
func (*FormationStatusLoader) LoadAll ¶
func (l *FormationStatusLoader) LoadAll(keys []ParamFormationStatus) ([]*graphql.FormationStatus, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*FormationStatusLoader) LoadAllThunk ¶
func (l *FormationStatusLoader) LoadAllThunk(keys []ParamFormationStatus) func() ([]*graphql.FormationStatus, []error)
LoadAllThunk returns a function that when called will block waiting for a FormationStatuss. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationStatusLoader) LoadThunk ¶
func (l *FormationStatusLoader) LoadThunk(key ParamFormationStatus) func() (*graphql.FormationStatus, error)
LoadThunk returns a function that when called will block waiting for a FormationStatus. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*FormationStatusLoader) Prime ¶
func (l *FormationStatusLoader) Prime(key ParamFormationStatus, value *graphql.FormationStatus) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type FormationStatusLoaderConfig ¶
type FormationStatusLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamFormationStatus) ([]*graphql.FormationStatus, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
FormationStatusLoaderConfig captures the config to create a new FormationStatusLoader
type FormationStatusLoaders ¶
type FormationStatusLoaders struct {
FormationStatusByID FormationStatusLoader
}
FormationStatusLoaders missing godoc
func FormationStatusFor ¶
func FormationStatusFor(ctx context.Context) *FormationStatusLoaders
FormationStatusFor missing godoc
type IntegrationDependencyLoader ¶
type IntegrationDependencyLoader struct {
// contains filtered or unexported fields
}
IntegrationDependencyLoader batches and caches requests
func NewIntegrationDependencyLoader ¶
func NewIntegrationDependencyLoader(config IntegrationDependencyLoaderConfig) *IntegrationDependencyLoader
NewIntegrationDependencyLoader creates a new IntegrationDependencyLoader given a fetch, wait, and maxBatch
func (*IntegrationDependencyLoader) Clear ¶
func (l *IntegrationDependencyLoader) Clear(key ParamIntegrationDependency)
Clear the value at key from the cache, if it exists
func (*IntegrationDependencyLoader) Load ¶
func (l *IntegrationDependencyLoader) Load(key ParamIntegrationDependency) (*graphql.IntegrationDependencyPage, error)
Load a IntegrationDependencyPage by key, batching and caching will be applied automatically
func (*IntegrationDependencyLoader) LoadAll ¶
func (l *IntegrationDependencyLoader) LoadAll(keys []ParamIntegrationDependency) ([]*graphql.IntegrationDependencyPage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*IntegrationDependencyLoader) LoadAllThunk ¶
func (l *IntegrationDependencyLoader) LoadAllThunk(keys []ParamIntegrationDependency) func() ([]*graphql.IntegrationDependencyPage, []error)
LoadAllThunk returns a function that when called will block waiting for a IntegrationDependencyPages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*IntegrationDependencyLoader) LoadThunk ¶
func (l *IntegrationDependencyLoader) LoadThunk(key ParamIntegrationDependency) func() (*graphql.IntegrationDependencyPage, error)
LoadThunk returns a function that when called will block waiting for a IntegrationDependencyPage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*IntegrationDependencyLoader) Prime ¶
func (l *IntegrationDependencyLoader) Prime(key ParamIntegrationDependency, value *graphql.IntegrationDependencyPage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type IntegrationDependencyLoaderConfig ¶
type IntegrationDependencyLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamIntegrationDependency) ([]*graphql.IntegrationDependencyPage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
IntegrationDependencyLoaderConfig captures the config to create a new IntegrationDependencyLoader
type IntegrationDependencyLoaders ¶
type IntegrationDependencyLoaders struct {
IntegrationDependencyByID IntegrationDependencyLoader
}
IntegrationDependencyLoaders missing godoc
func IntegrationDependencyFor ¶
func IntegrationDependencyFor(ctx context.Context) *IntegrationDependencyLoaders
IntegrationDependencyFor missing godoc
type LoadersFetchRequestAPIDef ¶
type LoadersFetchRequestAPIDef struct {
FetchRequestAPIDefByID FetchRequestAPIDefLoader
}
LoadersFetchRequestAPIDef missing godoc
func ForFetchRequestAPIDef ¶
func ForFetchRequestAPIDef(ctx context.Context) *LoadersFetchRequestAPIDef
ForFetchRequestAPIDef missing godoc
type LoadersFetchRequestDocument ¶
type LoadersFetchRequestDocument struct {
FetchRequestDocumentByID FetchRequestDocumentLoader
}
LoadersFetchRequestDocument missing godoc
func ForFetchRequestDocument ¶
func ForFetchRequestDocument(ctx context.Context) *LoadersFetchRequestDocument
ForFetchRequestDocument missing godoc
type LoadersFetchRequestEventDef ¶
type LoadersFetchRequestEventDef struct {
FetchRequestEventDefByID FetchRequestEventDefLoader
}
LoadersFetchRequestEventDef missing godoc
func ForFetchRequestEventDef ¶
func ForFetchRequestEventDef(ctx context.Context) *LoadersFetchRequestEventDef
ForFetchRequestEventDef missing godoc
type LoadersFormationParticipant ¶
type LoadersFormationParticipant struct {
FormationParticipantDataloader FormationParticipantDataloader
}
LoadersFormationParticipant is a dataloader for formation participants
func ForSourceFormationParticipant ¶
func ForSourceFormationParticipant(ctx context.Context) *LoadersFormationParticipant
ForSourceFormationParticipant retrieves the dataloader for formation assignment sources from the context
func ForTargetFormationParticipant ¶
func ForTargetFormationParticipant(ctx context.Context) *LoadersFormationParticipant
ForTargetFormationParticipant retrieves the dataloader for formation assignment targets from the context
type ParamAPIDef ¶
ParamAPIDef missing godoc
type ParamAssignmentOperation ¶
type ParamAssignmentOperation struct { ID string First *int After *graphql.PageCursor Ctx context.Context }
ParamAssignmentOperation missing godoc
type ParamBundle ¶
ParamBundle missing godoc
type ParamDocument ¶
ParamDocument missing godoc
type ParamEventDef ¶
ParamEventDef missing godoc
type ParamFetchRequestAPIDef ¶
ParamFetchRequestAPIDef missing godoc
type ParamFetchRequestDocument ¶
ParamFetchRequestDocument missing godoc
type ParamFetchRequestEventDef ¶
ParamFetchRequestEventDef missing godoc
type ParamFormationAssignment ¶
type ParamFormationAssignment struct { ID string First *int After *graphql.PageCursor Ctx context.Context Tenant string }
ParamFormationAssignment missing godoc
type ParamFormationConstraint ¶
ParamFormationConstraint missing godoc
type ParamFormationParticipant ¶
type ParamFormationParticipant struct { ID string ParticipantID string ParticipantType string Ctx context.Context }
ParamFormationParticipant are parameters for the formation participant dataloader
type ParamFormationStatus ¶
type ParamFormationStatus struct { ID string State string Message string ErrorCode int Ctx context.Context Tenant string }
ParamFormationStatus missing godoc
type ParamIntegrationDependency ¶
type ParamIntegrationDependency struct { ID string First *int After *graphql.PageCursor Ctx context.Context }
ParamIntegrationDependency missing godoc
type ParamRuntimeContext ¶
type ParamRuntimeContext struct { ID string First *int After *graphql.PageCursor Ctx context.Context }
ParamRuntimeContext missing godoc
type RuntimeContextLoader ¶
type RuntimeContextLoader struct {
// contains filtered or unexported fields
}
RuntimeContextLoader batches and caches requests
func NewRuntimeContextLoader ¶
func NewRuntimeContextLoader(config RuntimeContextLoaderConfig) *RuntimeContextLoader
NewRuntimeContextLoader creates a new RuntimeContextLoader given a fetch, wait, and maxBatch
func (*RuntimeContextLoader) Clear ¶
func (l *RuntimeContextLoader) Clear(key ParamRuntimeContext)
Clear the value at key from the cache, if it exists
func (*RuntimeContextLoader) Load ¶
func (l *RuntimeContextLoader) Load(key ParamRuntimeContext) (*graphql.RuntimeContextPage, error)
Load a RuntimeContextPage by key, batching and caching will be applied automatically
func (*RuntimeContextLoader) LoadAll ¶
func (l *RuntimeContextLoader) LoadAll(keys []ParamRuntimeContext) ([]*graphql.RuntimeContextPage, []error)
LoadAll fetches many keys at once. It will be broken into appropriate sized sub batches depending on how the loader is configured
func (*RuntimeContextLoader) LoadAllThunk ¶
func (l *RuntimeContextLoader) LoadAllThunk(keys []ParamRuntimeContext) func() ([]*graphql.RuntimeContextPage, []error)
LoadAllThunk returns a function that when called will block waiting for a RuntimeContextPages. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*RuntimeContextLoader) LoadThunk ¶
func (l *RuntimeContextLoader) LoadThunk(key ParamRuntimeContext) func() (*graphql.RuntimeContextPage, error)
LoadThunk returns a function that when called will block waiting for a RuntimeContextPage. This method should be used if you want one goroutine to make requests to many different data loaders without blocking until the thunk is called.
func (*RuntimeContextLoader) Prime ¶
func (l *RuntimeContextLoader) Prime(key ParamRuntimeContext, value *graphql.RuntimeContextPage) bool
Prime the cache with the provided key and value. If the key already exists, no change is made and false is returned. (To forcefully prime the cache, clear the key first with loader.clear(key).prime(key, value).)
type RuntimeContextLoaderConfig ¶
type RuntimeContextLoaderConfig struct { // Fetch is a method that provides the data for the loader Fetch func(keys []ParamRuntimeContext) ([]*graphql.RuntimeContextPage, []error) // Wait is how long wait before sending a batch Wait time.Duration // MaxBatch will limit the maximum number of keys to send in one batch, 0 = not limit MaxBatch int }
RuntimeContextLoaderConfig captures the config to create a new RuntimeContextLoader
type RuntimeContextLoaders ¶
type RuntimeContextLoaders struct {
RuntimeContextByID RuntimeContextLoader
}
RuntimeContextLoaders missing godoc
func RuntimeContextFor ¶
func RuntimeContextFor(ctx context.Context) *RuntimeContextLoaders
RuntimeContextFor missing godoc
Source Files ¶
- apiDefLoaders.go
- apidefloader_gen.go
- assignmentOperationLoaders.go
- assignmentoperationloader_gen.go
- bundleLoaders.go
- bundleloader_gen.go
- documentLoaders.go
- documentloader_gen.go
- eventDefLoaders.go
- eventdefloader_gen.go
- fetchRequestApiDefLoaders.go
- fetchRequestDocumentDataLoader.go
- fetchRequestEventDefLoaders.go
- fetchrequestapidefloader_gen.go
- fetchrequestdocumentloader_gen.go
- fetchrequesteventdefloader_gen.go
- formationAssignmentLoaders.go
- formationConstraintLoaders.go
- formationParticipantDataloader.go
- formationStatusLoaders.go
- formationassignmentloader_gen.go
- formationconstraintloader_gen.go
- formationparticipantdataloader_gen.go
- formationstatusloader_gen.go
- integrationDependencyLoaders.go
- integrationdependencyloader_gen.go
- runtimeContextLoaders.go
- runtimecontextloader_gen.go