Documentation ¶
Index ¶
- Variables
- func RegisterAsset(svc *graphql.Service, impl AssetFieldResolvers)
- func RegisterCheck(svc *graphql.Service, impl CheckFieldResolvers)
- func RegisterCheckConfig(svc *graphql.Service, impl CheckConfigFieldResolvers)
- func RegisterCheckConfigConnection(svc *graphql.Service, impl CheckConfigConnectionFieldResolvers)
- func RegisterCheckConfigInputs(svc *graphql.Service)
- func RegisterCheckHistory(svc *graphql.Service, impl CheckHistoryFieldResolvers)
- func RegisterCheckListOrder(svc *graphql.Service)
- func RegisterClusterRole(svc *graphql.Service, impl ClusterRoleFieldResolvers)
- func RegisterClusterRoleBinding(svc *graphql.Service, impl ClusterRoleBindingFieldResolvers)
- func RegisterCreateCheckInput(svc *graphql.Service)
- func RegisterCreateCheckPayload(svc *graphql.Service, impl CreateCheckPayloadFieldResolvers)
- func RegisterCreateSilenceInput(svc *graphql.Service)
- func RegisterCreateSilencePayload(svc *graphql.Service, impl CreateSilencePayloadFieldResolvers)
- func RegisterDeleteRecordInput(svc *graphql.Service)
- func RegisterDeleteRecordPayload(svc *graphql.Service, impl DeleteRecordPayloadFieldResolvers)
- func RegisterDeregistration(svc *graphql.Service, impl DeregistrationFieldResolvers)
- func RegisterEntity(svc *graphql.Service, impl EntityFieldResolvers)
- func RegisterEntityConnection(svc *graphql.Service, impl EntityConnectionFieldResolvers)
- func RegisterEntityListOrder(svc *graphql.Service)
- func RegisterErrCode(svc *graphql.Service)
- func RegisterError(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
- func RegisterEvent(svc *graphql.Service, impl EventFieldResolvers)
- func RegisterEventConnection(svc *graphql.Service, impl EventConnectionFieldResolvers)
- func RegisterEventsListOrder(svc *graphql.Service)
- func RegisterExecuteCheckInput(svc *graphql.Service)
- func RegisterExecuteCheckPayload(svc *graphql.Service, impl ExecuteCheckPayloadFieldResolvers)
- func RegisterHandler(svc *graphql.Service, impl HandlerFieldResolvers)
- func RegisterHandlerConnection(svc *graphql.Service, impl HandlerConnectionFieldResolvers)
- func RegisterHandlerEdge(svc *graphql.Service, impl HandlerEdgeFieldResolvers)
- func RegisterHandlerListOrder(svc *graphql.Service)
- func RegisterHandlerSocket(svc *graphql.Service, impl HandlerSocketFieldResolvers)
- func RegisterHook(svc *graphql.Service, impl HookFieldResolvers)
- func RegisterHookConfig(svc *graphql.Service, impl HookConfigFieldResolvers)
- func RegisterHookList(svc *graphql.Service, impl HookListFieldResolvers)
- func RegisterIcon(svc *graphql.Service)
- func RegisterJSON(svc *graphql.Service, impl graphql.ScalarResolver)
- func RegisterKVPairString(svc *graphql.Service, impl KVPairStringFieldResolvers)
- func RegisterMutation(svc *graphql.Service, impl MutationFieldResolvers)
- func RegisterMutator(svc *graphql.Service, impl MutatorFieldResolvers)
- func RegisterMutedColour(svc *graphql.Service)
- func RegisterNamespace(svc *graphql.Service, impl NamespaceFieldResolvers)
- func RegisterNamespaced(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
- func RegisterNetwork(svc *graphql.Service, impl NetworkFieldResolvers)
- func RegisterNetworkInterface(svc *graphql.Service, impl NetworkInterfaceFieldResolvers)
- func RegisterNode(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
- func RegisterObjectMeta(svc *graphql.Service, impl ObjectMetaFieldResolvers)
- func RegisterOffsetPageInfo(svc *graphql.Service, impl OffsetPageInfoFieldResolvers)
- func RegisterProxyRequests(svc *graphql.Service, impl ProxyRequestsFieldResolvers)
- func RegisterPutWrappedPayload(svc *graphql.Service, impl PutWrappedPayloadFieldResolvers)
- func RegisterQuery(svc *graphql.Service, impl QueryFieldResolvers)
- func RegisterResolveEventInput(svc *graphql.Service)
- func RegisterResolveEventPayload(svc *graphql.Service, impl ResolveEventPayloadFieldResolvers)
- func RegisterResource(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
- func RegisterRole(svc *graphql.Service, impl RoleFieldResolvers)
- func RegisterRoleBinding(svc *graphql.Service, impl RoleBindingFieldResolvers)
- func RegisterRoleRef(svc *graphql.Service, impl RoleRefFieldResolvers)
- func RegisterRule(svc *graphql.Service, impl RuleFieldResolvers)
- func RegisterSchema(svc *graphql.Service)
- func RegisterSilenceInputs(svc *graphql.Service)
- func RegisterSilenceable(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
- func RegisterSilenced(svc *graphql.Service, impl SilencedFieldResolvers)
- func RegisterSilencedConnection(svc *graphql.Service, impl SilencedConnectionFieldResolvers)
- func RegisterSilencesListOrder(svc *graphql.Service)
- func RegisterStandardError(svc *graphql.Service, impl StandardErrorFieldResolvers)
- func RegisterSubject(svc *graphql.Service, impl SubjectFieldResolvers)
- func RegisterSubscriptionOccurences(svc *graphql.Service, impl SubscriptionOccurencesFieldResolvers)
- func RegisterSubscriptionSet(svc *graphql.Service, impl SubscriptionSetFieldResolvers)
- func RegisterSubscriptionSetOrder(svc *graphql.Service)
- func RegisterSuggestionOrder(svc *graphql.Service)
- func RegisterSuggestionResultSet(svc *graphql.Service, impl SuggestionResultSetFieldResolvers)
- func RegisterSystem(svc *graphql.Service, impl SystemFieldResolvers)
- func RegisterTimeWindowDays(svc *graphql.Service, impl TimeWindowDaysFieldResolvers)
- func RegisterTimeWindowTimeRange(svc *graphql.Service, impl TimeWindowTimeRangeFieldResolvers)
- func RegisterTimeWindowWhen(svc *graphql.Service, impl TimeWindowWhenFieldResolvers)
- func RegisterUint(svc *graphql.Service, impl graphql.ScalarResolver)
- func RegisterUpdateCheckInput(svc *graphql.Service)
- func RegisterUpdateCheckPayload(svc *graphql.Service, impl UpdateCheckPayloadFieldResolvers)
- func RegisterUser(svc *graphql.Service, impl UserFieldResolvers)
- func RegisterViewer(svc *graphql.Service, impl ViewerFieldResolvers)
- type AssetAliases
- func (_ AssetAliases) Filters(p graphql.ResolveParams) ([]string, error)
- func (_ AssetAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ AssetAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ AssetAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ AssetAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ AssetAliases) Sha512(p graphql.ResolveParams) (string, error)
- func (_ AssetAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- func (_ AssetAliases) Url(p graphql.ResolveParams) (string, error)
- type AssetFieldResolvers
- type AssetFiltersFieldResolver
- type AssetIDFieldResolver
- type AssetMetadataFieldResolver
- type AssetNameFieldResolver
- type AssetNamespaceFieldResolver
- type AssetSha512FieldResolver
- type AssetToJSONFieldResolver
- type AssetUrlFieldResolver
- type CheckAliases
- func (_ CheckAliases) CheckHooks(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Command(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) Cron(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) Duration(p graphql.ResolveParams) (float64, error)
- func (_ CheckAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
- func (_ CheckAliases) Executed(p graphql.ResolveParams) (time.Time, error)
- func (_ CheckAliases) ExtendedAttributes(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Handlers(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) HighFlapThreshold(p graphql.ResolveParams) (int, error)
- func (_ CheckAliases) History(p CheckHistoryFieldResolverParams) (interface{}, error)
- func (_ CheckAliases) Hooks(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Interval(p graphql.ResolveParams) (int, error)
- func (_ CheckAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
- func (_ CheckAliases) Issued(p graphql.ResolveParams) (time.Time, error)
- func (_ CheckAliases) LastOK(p graphql.ResolveParams) (*time.Time, error)
- func (_ CheckAliases) LowFlapThreshold(p graphql.ResolveParams) (int, error)
- func (_ CheckAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) NodeID(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) Occurrences(p graphql.ResolveParams) (int, error)
- func (_ CheckAliases) OccurrencesWatermark(p graphql.ResolveParams) (int, error)
- func (_ CheckAliases) Output(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) OutputMetricFormat(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) OutputMetricHandlers(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) ProxyEntityName(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) ProxyRequests(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Publish(p graphql.ResolveParams) (bool, error)
- func (_ CheckAliases) RoundRobin(p graphql.ResolveParams) (bool, error)
- func (_ CheckAliases) RuntimeAssets(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Silenced(p graphql.ResolveParams) ([]string, error)
- func (_ CheckAliases) Silences(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) State(p graphql.ResolveParams) (string, error)
- func (_ CheckAliases) Status(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Stdin(p graphql.ResolveParams) (bool, error)
- func (_ CheckAliases) Subdue(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) Subscriptions(p graphql.ResolveParams) ([]string, error)
- func (_ CheckAliases) Timeout(p graphql.ResolveParams) (int, error)
- func (_ CheckAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckAliases) TotalStateChange(p graphql.ResolveParams) (int, error)
- func (_ CheckAliases) Ttl(p graphql.ResolveParams) (int, error)
- type CheckCheckHooksFieldResolver
- type CheckCommandFieldResolver
- type CheckConfigAliases
- func (_ CheckConfigAliases) CheckHooks(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Command(p graphql.ResolveParams) (string, error)
- func (_ CheckConfigAliases) Cron(p graphql.ResolveParams) (string, error)
- func (_ CheckConfigAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
- func (_ CheckConfigAliases) ExtendedAttributes(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Handlers(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) HighFlapThreshold(p graphql.ResolveParams) (int, error)
- func (_ CheckConfigAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ CheckConfigAliases) Interval(p graphql.ResolveParams) (int, error)
- func (_ CheckConfigAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
- func (_ CheckConfigAliases) LowFlapThreshold(p graphql.ResolveParams) (int, error)
- func (_ CheckConfigAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ CheckConfigAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ CheckConfigAliases) OutputMetricFormat(p graphql.ResolveParams) (string, error)
- func (_ CheckConfigAliases) OutputMetricHandlers(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) ProxyEntityName(p graphql.ResolveParams) (string, error)
- func (_ CheckConfigAliases) ProxyRequests(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Publish(p graphql.ResolveParams) (bool, error)
- func (_ CheckConfigAliases) RoundRobin(p graphql.ResolveParams) (bool, error)
- func (_ CheckConfigAliases) RuntimeAssets(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Silences(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Stdin(p graphql.ResolveParams) (bool, error)
- func (_ CheckConfigAliases) Subdue(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Subscriptions(p graphql.ResolveParams) ([]string, error)
- func (_ CheckConfigAliases) Timeout(p graphql.ResolveParams) (int, error)
- func (_ CheckConfigAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- func (_ CheckConfigAliases) Ttl(p graphql.ResolveParams) (int, error)
- type CheckConfigCheckHooksFieldResolver
- type CheckConfigCommandFieldResolver
- type CheckConfigConnectionAliases
- type CheckConfigConnectionFieldResolvers
- type CheckConfigConnectionNodesFieldResolver
- type CheckConfigConnectionPageInfoFieldResolver
- type CheckConfigCronFieldResolver
- type CheckConfigEnvVarsFieldResolver
- type CheckConfigExtendedAttributesFieldResolver
- type CheckConfigFieldResolvers
- type CheckConfigHandlersFieldResolver
- type CheckConfigHighFlapThresholdFieldResolver
- type CheckConfigIDFieldResolver
- type CheckConfigInputs
- type CheckConfigIntervalFieldResolver
- type CheckConfigIsSilencedFieldResolver
- type CheckConfigLowFlapThresholdFieldResolver
- type CheckConfigMetadataFieldResolver
- type CheckConfigNameFieldResolver
- type CheckConfigNamespaceFieldResolver
- type CheckConfigOutputMetricFormatFieldResolver
- type CheckConfigOutputMetricHandlersFieldResolver
- type CheckConfigProxyEntityNameFieldResolver
- type CheckConfigProxyRequestsFieldResolver
- type CheckConfigPublishFieldResolver
- type CheckConfigRoundRobinFieldResolver
- type CheckConfigRuntimeAssetsFieldResolver
- type CheckConfigSilencesFieldResolver
- type CheckConfigStdinFieldResolver
- type CheckConfigSubdueFieldResolver
- type CheckConfigSubscriptionsFieldResolver
- type CheckConfigTimeoutFieldResolver
- type CheckConfigToJSONFieldResolver
- type CheckConfigTtlFieldResolver
- type CheckCronFieldResolver
- type CheckDurationFieldResolver
- type CheckEnvVarsFieldResolver
- type CheckExecutedFieldResolver
- type CheckExtendedAttributesFieldResolver
- type CheckFieldResolvers
- type CheckHandlersFieldResolver
- type CheckHighFlapThresholdFieldResolver
- type CheckHistoryAliases
- type CheckHistoryExecutedFieldResolver
- type CheckHistoryFieldResolver
- type CheckHistoryFieldResolverArgs
- type CheckHistoryFieldResolverParams
- type CheckHistoryFieldResolvers
- type CheckHistoryStatusFieldResolver
- type CheckHooksFieldResolver
- type CheckIntervalFieldResolver
- type CheckIsSilencedFieldResolver
- type CheckIssuedFieldResolver
- type CheckLastOKFieldResolver
- type CheckListOrder
- type CheckLowFlapThresholdFieldResolver
- type CheckMetadataFieldResolver
- type CheckNameFieldResolver
- type CheckNodeIDFieldResolver
- type CheckOccurrencesFieldResolver
- type CheckOccurrencesWatermarkFieldResolver
- type CheckOutputFieldResolver
- type CheckOutputMetricFormatFieldResolver
- type CheckOutputMetricHandlersFieldResolver
- type CheckProxyEntityNameFieldResolver
- type CheckProxyRequestsFieldResolver
- type CheckPublishFieldResolver
- type CheckRoundRobinFieldResolver
- type CheckRuntimeAssetsFieldResolver
- type CheckSilencedFieldResolver
- type CheckSilencesFieldResolver
- type CheckStateFieldResolver
- type CheckStatusFieldResolver
- type CheckStdinFieldResolver
- type CheckSubdueFieldResolver
- type CheckSubscriptionsFieldResolver
- type CheckTimeoutFieldResolver
- type CheckToJSONFieldResolver
- type CheckTotalStateChangeFieldResolver
- type CheckTtlFieldResolver
- type ClusterRoleAliases
- type ClusterRoleBindingAliases
- type ClusterRoleBindingFieldResolvers
- type ClusterRoleBindingNameFieldResolver
- type ClusterRoleBindingRoleRefFieldResolver
- type ClusterRoleBindingSubjectsFieldResolver
- type ClusterRoleFieldResolvers
- type ClusterRoleNameFieldResolver
- type ClusterRoleRulesFieldResolver
- type CreateCheckInput
- type CreateCheckPayloadAliases
- type CreateCheckPayloadCheckFieldResolver
- type CreateCheckPayloadClientMutationIDFieldResolver
- type CreateCheckPayloadFieldResolvers
- type CreateSilenceInput
- type CreateSilencePayloadAliases
- type CreateSilencePayloadClientMutationIDFieldResolver
- type CreateSilencePayloadFieldResolvers
- type CreateSilencePayloadSilenceFieldResolver
- type DeleteRecordInput
- type DeleteRecordPayloadAliases
- type DeleteRecordPayloadClientMutationIDFieldResolver
- type DeleteRecordPayloadDeletedIDFieldResolver
- type DeleteRecordPayloadFieldResolvers
- type DeregistrationAliases
- type DeregistrationFieldResolvers
- type DeregistrationHandlerFieldResolver
- type EntityAliases
- func (_ EntityAliases) Deregister(p graphql.ResolveParams) (bool, error)
- func (_ EntityAliases) Deregistration(p graphql.ResolveParams) (interface{}, error)
- func (_ EntityAliases) EntityClass(p graphql.ResolveParams) (string, error)
- func (_ EntityAliases) Events(p EntityEventsFieldResolverParams) (interface{}, error)
- func (_ EntityAliases) ExtendedAttributes(p graphql.ResolveParams) (interface{}, error)
- func (_ EntityAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ EntityAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
- func (_ EntityAliases) LastSeen(p graphql.ResolveParams) (*time.Time, error)
- func (_ EntityAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ EntityAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ EntityAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ EntityAliases) Redact(p graphql.ResolveParams) ([]string, error)
- func (_ EntityAliases) Related(p EntityRelatedFieldResolverParams) (interface{}, error)
- func (_ EntityAliases) Silences(p graphql.ResolveParams) (interface{}, error)
- func (_ EntityAliases) Status(p graphql.ResolveParams) (interface{}, error)
- func (_ EntityAliases) Subscriptions(p graphql.ResolveParams) ([]string, error)
- func (_ EntityAliases) System(p graphql.ResolveParams) (interface{}, error)
- func (_ EntityAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- func (_ EntityAliases) User(p graphql.ResolveParams) (string, error)
- type EntityConnectionAliases
- type EntityConnectionFieldResolvers
- type EntityConnectionNodesFieldResolver
- type EntityConnectionPageInfoFieldResolver
- type EntityDeregisterFieldResolver
- type EntityDeregistrationFieldResolver
- type EntityEntityClassFieldResolver
- type EntityEventsFieldResolver
- type EntityEventsFieldResolverArgs
- type EntityEventsFieldResolverParams
- type EntityExtendedAttributesFieldResolver
- type EntityFieldResolvers
- type EntityIDFieldResolver
- type EntityIsSilencedFieldResolver
- type EntityLastSeenFieldResolver
- type EntityListOrder
- type EntityMetadataFieldResolver
- type EntityNameFieldResolver
- type EntityNamespaceFieldResolver
- type EntityRedactFieldResolver
- type EntityRelatedFieldResolver
- type EntityRelatedFieldResolverArgs
- type EntityRelatedFieldResolverParams
- type EntitySilencesFieldResolver
- type EntityStatusFieldResolver
- type EntitySubscriptionsFieldResolver
- type EntitySystemFieldResolver
- type EntityToJSONFieldResolver
- type EntityUserFieldResolver
- type ErrCode
- type EventAliases
- func (_ EventAliases) Check(p graphql.ResolveParams) (interface{}, error)
- func (_ EventAliases) Entity(p graphql.ResolveParams) (interface{}, error)
- func (_ EventAliases) Hooks(p graphql.ResolveParams) (interface{}, error)
- func (_ EventAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ EventAliases) IsIncident(p graphql.ResolveParams) (bool, error)
- func (_ EventAliases) IsNewIncident(p graphql.ResolveParams) (bool, error)
- func (_ EventAliases) IsResolution(p graphql.ResolveParams) (bool, error)
- func (_ EventAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
- func (_ EventAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ EventAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ EventAliases) Silenced(p graphql.ResolveParams) ([]string, error)
- func (_ EventAliases) Silences(p graphql.ResolveParams) (interface{}, error)
- func (_ EventAliases) Timestamp(p graphql.ResolveParams) (time.Time, error)
- func (_ EventAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- func (_ EventAliases) WasSilenced(p graphql.ResolveParams) (bool, error)
- type EventCheckFieldResolver
- type EventConnectionAliases
- type EventConnectionFieldResolvers
- type EventConnectionNodesFieldResolver
- type EventConnectionPageInfoFieldResolver
- type EventEntityFieldResolver
- type EventFieldResolvers
- type EventHooksFieldResolver
- type EventIDFieldResolver
- type EventIsIncidentFieldResolver
- type EventIsNewIncidentFieldResolver
- type EventIsResolutionFieldResolver
- type EventIsSilencedFieldResolver
- type EventMetadataFieldResolver
- type EventNamespaceFieldResolver
- type EventSilencedFieldResolver
- type EventSilencesFieldResolver
- type EventTimestampFieldResolver
- type EventToJSONFieldResolver
- type EventWasSilencedFieldResolver
- type EventsListOrder
- type ExecuteCheckInput
- type ExecuteCheckPayloadAliases
- type ExecuteCheckPayloadClientMutationIDFieldResolver
- type ExecuteCheckPayloadErrorsFieldResolver
- type ExecuteCheckPayloadFieldResolvers
- type HandlerAliases
- func (_ HandlerAliases) Command(p graphql.ResolveParams) (string, error)
- func (_ HandlerAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
- func (_ HandlerAliases) Filters(p graphql.ResolveParams) ([]string, error)
- func (_ HandlerAliases) Handlers(p graphql.ResolveParams) (interface{}, error)
- func (_ HandlerAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ HandlerAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ HandlerAliases) Mutator(p graphql.ResolveParams) (interface{}, error)
- func (_ HandlerAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ HandlerAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ HandlerAliases) Socket(p graphql.ResolveParams) (interface{}, error)
- func (_ HandlerAliases) Timeout(p graphql.ResolveParams) (int, error)
- func (_ HandlerAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- func (_ HandlerAliases) Type(p graphql.ResolveParams) (string, error)
- type HandlerCommandFieldResolver
- type HandlerConnectionAliases
- type HandlerConnectionFieldResolvers
- type HandlerConnectionNodesFieldResolver
- type HandlerConnectionPageInfoFieldResolver
- type HandlerEdgeAliases
- type HandlerEdgeCursorFieldResolver
- type HandlerEdgeFieldResolvers
- type HandlerEdgeNodeFieldResolver
- type HandlerEnvVarsFieldResolver
- type HandlerFieldResolvers
- type HandlerFiltersFieldResolver
- type HandlerHandlersFieldResolver
- type HandlerIDFieldResolver
- type HandlerListOrder
- type HandlerMetadataFieldResolver
- type HandlerMutatorFieldResolver
- type HandlerNameFieldResolver
- type HandlerNamespaceFieldResolver
- type HandlerSocketAliases
- type HandlerSocketFieldResolver
- type HandlerSocketFieldResolvers
- type HandlerSocketHostFieldResolver
- type HandlerSocketPortFieldResolver
- type HandlerTimeoutFieldResolver
- type HandlerToJSONFieldResolver
- type HandlerTypeFieldResolver
- type HookAliases
- func (_ HookAliases) Config(p graphql.ResolveParams) (interface{}, error)
- func (_ HookAliases) Duration(p graphql.ResolveParams) (int, error)
- func (_ HookAliases) Executed(p graphql.ResolveParams) (int, error)
- func (_ HookAliases) Issued(p graphql.ResolveParams) (int, error)
- func (_ HookAliases) Output(p graphql.ResolveParams) (string, error)
- func (_ HookAliases) Status(p graphql.ResolveParams) (int, error)
- type HookConfigAliases
- func (_ HookConfigAliases) Command(p graphql.ResolveParams) (string, error)
- func (_ HookConfigAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ HookConfigAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ HookConfigAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ HookConfigAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ HookConfigAliases) Stdin(p graphql.ResolveParams) (bool, error)
- func (_ HookConfigAliases) Timeout(p graphql.ResolveParams) (int, error)
- func (_ HookConfigAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- type HookConfigCommandFieldResolver
- type HookConfigFieldResolver
- type HookConfigFieldResolvers
- type HookConfigIDFieldResolver
- type HookConfigMetadataFieldResolver
- type HookConfigNameFieldResolver
- type HookConfigNamespaceFieldResolver
- type HookConfigStdinFieldResolver
- type HookConfigTimeoutFieldResolver
- type HookConfigToJSONFieldResolver
- type HookDurationFieldResolver
- type HookExecutedFieldResolver
- type HookFieldResolvers
- type HookIssuedFieldResolver
- type HookListAliases
- type HookListFieldResolvers
- type HookListHooksFieldResolver
- type HookListTypeFieldResolver
- type HookOutputFieldResolver
- type HookStatusFieldResolver
- type Icon
- type KVPairStringAliases
- type KVPairStringFieldResolvers
- type KVPairStringKeyFieldResolver
- type KVPairStringValFieldResolver
- type MutationAliases
- func (_ MutationAliases) CreateCheck(p MutationCreateCheckFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) CreateSilence(p MutationCreateSilenceFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) DeleteCheck(p MutationDeleteCheckFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) DeleteEntity(p MutationDeleteEntityFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) DeleteEvent(p MutationDeleteEventFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) DeleteHandler(p MutationDeleteHandlerFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) DeleteSilence(p MutationDeleteSilenceFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) ExecuteCheck(p MutationExecuteCheckFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) PutWrapped(p MutationPutWrappedFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) ResolveEvent(p MutationResolveEventFieldResolverParams) (interface{}, error)
- func (_ MutationAliases) UpdateCheck(p MutationUpdateCheckFieldResolverParams) (interface{}, error)
- type MutationCreateCheckFieldResolver
- type MutationCreateCheckFieldResolverArgs
- type MutationCreateCheckFieldResolverParams
- type MutationCreateSilenceFieldResolver
- type MutationCreateSilenceFieldResolverArgs
- type MutationCreateSilenceFieldResolverParams
- type MutationDeleteCheckFieldResolver
- type MutationDeleteCheckFieldResolverArgs
- type MutationDeleteCheckFieldResolverParams
- type MutationDeleteEntityFieldResolver
- type MutationDeleteEntityFieldResolverArgs
- type MutationDeleteEntityFieldResolverParams
- type MutationDeleteEventFieldResolver
- type MutationDeleteEventFieldResolverArgs
- type MutationDeleteEventFieldResolverParams
- type MutationDeleteHandlerFieldResolver
- type MutationDeleteHandlerFieldResolverArgs
- type MutationDeleteHandlerFieldResolverParams
- type MutationDeleteSilenceFieldResolver
- type MutationDeleteSilenceFieldResolverArgs
- type MutationDeleteSilenceFieldResolverParams
- type MutationExecuteCheckFieldResolver
- type MutationExecuteCheckFieldResolverArgs
- type MutationExecuteCheckFieldResolverParams
- type MutationFieldResolvers
- type MutationPutWrappedFieldResolver
- type MutationPutWrappedFieldResolverArgs
- type MutationPutWrappedFieldResolverParams
- type MutationResolveEventFieldResolver
- type MutationResolveEventFieldResolverArgs
- type MutationResolveEventFieldResolverParams
- type MutationUpdateCheckFieldResolver
- type MutationUpdateCheckFieldResolverArgs
- type MutationUpdateCheckFieldResolverParams
- type MutatorAliases
- func (_ MutatorAliases) Command(p graphql.ResolveParams) (string, error)
- func (_ MutatorAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
- func (_ MutatorAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ MutatorAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ MutatorAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ MutatorAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ MutatorAliases) Timeout(p graphql.ResolveParams) (int, error)
- func (_ MutatorAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- type MutatorCommandFieldResolver
- type MutatorEnvVarsFieldResolver
- type MutatorFieldResolvers
- type MutatorIDFieldResolver
- type MutatorMetadataFieldResolver
- type MutatorNameFieldResolver
- type MutatorNamespaceFieldResolver
- type MutatorTimeoutFieldResolver
- type MutatorToJSONFieldResolver
- type MutedColour
- type NamespaceAliases
- func (_ NamespaceAliases) Checks(p NamespaceChecksFieldResolverParams) (interface{}, error)
- func (_ NamespaceAliases) ColourID(p graphql.ResolveParams) (MutedColour, error)
- func (_ NamespaceAliases) Entities(p NamespaceEntitiesFieldResolverParams) (interface{}, error)
- func (_ NamespaceAliases) Events(p NamespaceEventsFieldResolverParams) (interface{}, error)
- func (_ NamespaceAliases) Handlers(p NamespaceHandlersFieldResolverParams) (interface{}, error)
- func (_ NamespaceAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ NamespaceAliases) IconID(p graphql.ResolveParams) (Icon, error)
- func (_ NamespaceAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ NamespaceAliases) Silences(p NamespaceSilencesFieldResolverParams) (interface{}, error)
- func (_ NamespaceAliases) Subscriptions(p NamespaceSubscriptionsFieldResolverParams) (interface{}, error)
- type NamespaceChecksFieldResolver
- type NamespaceChecksFieldResolverArgs
- type NamespaceChecksFieldResolverParams
- type NamespaceColourIDFieldResolver
- type NamespaceEntitiesFieldResolver
- type NamespaceEntitiesFieldResolverArgs
- type NamespaceEntitiesFieldResolverParams
- type NamespaceEventsFieldResolver
- type NamespaceEventsFieldResolverArgs
- type NamespaceEventsFieldResolverParams
- type NamespaceFieldResolvers
- type NamespaceHandlersFieldResolver
- type NamespaceHandlersFieldResolverArgs
- type NamespaceHandlersFieldResolverParams
- type NamespaceIDFieldResolver
- type NamespaceIconIDFieldResolver
- type NamespaceNameFieldResolver
- type NamespaceSilencesFieldResolver
- type NamespaceSilencesFieldResolverArgs
- type NamespaceSilencesFieldResolverParams
- type NamespaceSubscriptionsFieldResolver
- type NamespaceSubscriptionsFieldResolverArgs
- type NamespaceSubscriptionsFieldResolverParams
- type NetworkAliases
- type NetworkFieldResolvers
- type NetworkInterfaceAddressesFieldResolver
- type NetworkInterfaceAliases
- type NetworkInterfaceFieldResolvers
- type NetworkInterfaceMacFieldResolver
- type NetworkInterfaceNameFieldResolver
- type NetworkInterfacesFieldResolver
- type ObjectMetaAliases
- func (_ ObjectMetaAliases) Annotations(p graphql.ResolveParams) (interface{}, error)
- func (_ ObjectMetaAliases) Labels(p graphql.ResolveParams) (interface{}, error)
- func (_ ObjectMetaAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ ObjectMetaAliases) Namespace(p graphql.ResolveParams) (string, error)
- type ObjectMetaAnnotationsFieldResolver
- type ObjectMetaFieldResolvers
- type ObjectMetaLabelsFieldResolver
- type ObjectMetaNameFieldResolver
- type ObjectMetaNamespaceFieldResolver
- type OffsetPageInfoAliases
- func (_ OffsetPageInfoAliases) HasNextPage(p graphql.ResolveParams) (bool, error)
- func (_ OffsetPageInfoAliases) HasPreviousPage(p graphql.ResolveParams) (bool, error)
- func (_ OffsetPageInfoAliases) NextOffset(p graphql.ResolveParams) (int, error)
- func (_ OffsetPageInfoAliases) PreviousOffset(p graphql.ResolveParams) (int, error)
- func (_ OffsetPageInfoAliases) TotalCount(p graphql.ResolveParams) (int, error)
- type OffsetPageInfoFieldResolvers
- type OffsetPageInfoHasNextPageFieldResolver
- type OffsetPageInfoHasPreviousPageFieldResolver
- type OffsetPageInfoNextOffsetFieldResolver
- type OffsetPageInfoPreviousOffsetFieldResolver
- type OffsetPageInfoTotalCountFieldResolver
- type ProxyRequestsAliases
- type ProxyRequestsEntityAttributesFieldResolver
- type ProxyRequestsFieldResolvers
- type ProxyRequestsSplayCoverageFieldResolver
- type ProxyRequestsSplayFieldResolver
- type PutWrappedPayloadAliases
- type PutWrappedPayloadErrorsFieldResolver
- type PutWrappedPayloadFieldResolvers
- type PutWrappedPayloadNodeFieldResolver
- type QueryAliases
- func (_ QueryAliases) Check(p QueryCheckFieldResolverParams) (interface{}, error)
- func (_ QueryAliases) Entity(p QueryEntityFieldResolverParams) (interface{}, error)
- func (_ QueryAliases) Event(p QueryEventFieldResolverParams) (interface{}, error)
- func (_ QueryAliases) Handler(p QueryHandlerFieldResolverParams) (interface{}, error)
- func (_ QueryAliases) Namespace(p QueryNamespaceFieldResolverParams) (interface{}, error)
- func (_ QueryAliases) Node(p QueryNodeFieldResolverParams) (interface{}, error)
- func (_ QueryAliases) Suggest(p QuerySuggestFieldResolverParams) (interface{}, error)
- func (_ QueryAliases) Viewer(p graphql.ResolveParams) (interface{}, error)
- func (_ QueryAliases) WrappedNode(p QueryWrappedNodeFieldResolverParams) (interface{}, error)
- type QueryCheckFieldResolver
- type QueryCheckFieldResolverArgs
- type QueryCheckFieldResolverParams
- type QueryEntityFieldResolver
- type QueryEntityFieldResolverArgs
- type QueryEntityFieldResolverParams
- type QueryEventFieldResolver
- type QueryEventFieldResolverArgs
- type QueryEventFieldResolverParams
- type QueryFieldResolvers
- type QueryHandlerFieldResolver
- type QueryHandlerFieldResolverArgs
- type QueryHandlerFieldResolverParams
- type QueryNamespaceFieldResolver
- type QueryNamespaceFieldResolverArgs
- type QueryNamespaceFieldResolverParams
- type QueryNodeFieldResolver
- type QueryNodeFieldResolverArgs
- type QueryNodeFieldResolverParams
- type QuerySuggestFieldResolver
- type QuerySuggestFieldResolverArgs
- type QuerySuggestFieldResolverParams
- type QueryViewerFieldResolver
- type QueryWrappedNodeFieldResolver
- type QueryWrappedNodeFieldResolverArgs
- type QueryWrappedNodeFieldResolverParams
- type ResolveEventInput
- type ResolveEventPayloadAliases
- type ResolveEventPayloadClientMutationIDFieldResolver
- type ResolveEventPayloadEventFieldResolver
- type ResolveEventPayloadFieldResolvers
- type RoleAliases
- type RoleBindingAliases
- func (_ RoleBindingAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ RoleBindingAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ RoleBindingAliases) RoleRef(p graphql.ResolveParams) (interface{}, error)
- func (_ RoleBindingAliases) Subjects(p graphql.ResolveParams) (interface{}, error)
- type RoleBindingFieldResolvers
- type RoleBindingNameFieldResolver
- type RoleBindingNamespaceFieldResolver
- type RoleBindingRoleRefFieldResolver
- type RoleBindingSubjectsFieldResolver
- type RoleFieldResolvers
- type RoleNameFieldResolver
- type RoleNamespaceFieldResolver
- type RoleRefAliases
- type RoleRefFieldResolvers
- type RoleRefNameFieldResolver
- type RoleRefTypeFieldResolver
- type RoleRulesFieldResolver
- type RuleAliases
- type RuleFieldResolvers
- type RuleResourceNamesFieldResolver
- type RuleResourcesFieldResolver
- type RuleVerbsFieldResolver
- type SilenceInputs
- type SilencedAliases
- func (_ SilencedAliases) Begin(p graphql.ResolveParams) (*time.Time, error)
- func (_ SilencedAliases) Check(p graphql.ResolveParams) (interface{}, error)
- func (_ SilencedAliases) Creator(p graphql.ResolveParams) (string, error)
- func (_ SilencedAliases) Expire(p graphql.ResolveParams) (int, error)
- func (_ SilencedAliases) ExpireOnResolve(p graphql.ResolveParams) (bool, error)
- func (_ SilencedAliases) Expires(p graphql.ResolveParams) (*time.Time, error)
- func (_ SilencedAliases) ID(p graphql.ResolveParams) (string, error)
- func (_ SilencedAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
- func (_ SilencedAliases) Name(p graphql.ResolveParams) (string, error)
- func (_ SilencedAliases) Namespace(p graphql.ResolveParams) (string, error)
- func (_ SilencedAliases) Reason(p graphql.ResolveParams) (string, error)
- func (_ SilencedAliases) Subscription(p graphql.ResolveParams) (string, error)
- func (_ SilencedAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
- type SilencedBeginFieldResolver
- type SilencedCheckFieldResolver
- type SilencedConnectionAliases
- type SilencedConnectionFieldResolvers
- type SilencedConnectionNodesFieldResolver
- type SilencedConnectionPageInfoFieldResolver
- type SilencedCreatorFieldResolver
- type SilencedExpireFieldResolver
- type SilencedExpireOnResolveFieldResolver
- type SilencedExpiresFieldResolver
- type SilencedFieldResolvers
- type SilencedIDFieldResolver
- type SilencedMetadataFieldResolver
- type SilencedNameFieldResolver
- type SilencedNamespaceFieldResolver
- type SilencedReasonFieldResolver
- type SilencedSubscriptionFieldResolver
- type SilencedToJSONFieldResolver
- type SilencesListOrder
- type StandardErrorAliases
- type StandardErrorCodeFieldResolver
- type StandardErrorFieldResolvers
- type StandardErrorInputFieldResolver
- type StandardErrorMessageFieldResolver
- type SubjectAliases
- type SubjectFieldResolvers
- type SubjectKindFieldResolver
- type SubjectNameFieldResolver
- type SubscriptionOccurencesAliases
- type SubscriptionOccurencesFieldResolvers
- type SubscriptionOccurencesOccurrencesFieldResolver
- type SubscriptionOccurencesSubscriptionFieldResolver
- type SubscriptionSetAliases
- type SubscriptionSetEntriesFieldResolver
- type SubscriptionSetEntriesFieldResolverArgs
- type SubscriptionSetEntriesFieldResolverParams
- type SubscriptionSetFieldResolvers
- type SubscriptionSetOrder
- type SubscriptionSetSizeFieldResolver
- type SubscriptionSetValuesFieldResolver
- type SubscriptionSetValuesFieldResolverArgs
- type SubscriptionSetValuesFieldResolverParams
- type SuggestionOrder
- type SuggestionResultSetAliases
- type SuggestionResultSetFieldResolvers
- type SuggestionResultSetValuesFieldResolver
- type SystemAliases
- func (_ SystemAliases) Arch(p graphql.ResolveParams) (string, error)
- func (_ SystemAliases) Hostname(p graphql.ResolveParams) (string, error)
- func (_ SystemAliases) Network(p graphql.ResolveParams) (interface{}, error)
- func (_ SystemAliases) Os(p graphql.ResolveParams) (string, error)
- func (_ SystemAliases) Platform(p graphql.ResolveParams) (string, error)
- func (_ SystemAliases) PlatformFamily(p graphql.ResolveParams) (string, error)
- func (_ SystemAliases) PlatformVersion(p graphql.ResolveParams) (string, error)
- type SystemArchFieldResolver
- type SystemFieldResolvers
- type SystemHostnameFieldResolver
- type SystemNetworkFieldResolver
- type SystemOsFieldResolver
- type SystemPlatformFamilyFieldResolver
- type SystemPlatformFieldResolver
- type SystemPlatformVersionFieldResolver
- type TimeWindowDaysAliases
- func (_ TimeWindowDaysAliases) All(p graphql.ResolveParams) (interface{}, error)
- func (_ TimeWindowDaysAliases) Friday(p graphql.ResolveParams) (interface{}, error)
- func (_ TimeWindowDaysAliases) Monday(p graphql.ResolveParams) (interface{}, error)
- func (_ TimeWindowDaysAliases) Saturday(p graphql.ResolveParams) (interface{}, error)
- func (_ TimeWindowDaysAliases) Sunday(p graphql.ResolveParams) (interface{}, error)
- func (_ TimeWindowDaysAliases) Thursday(p graphql.ResolveParams) (interface{}, error)
- func (_ TimeWindowDaysAliases) Tuesday(p graphql.ResolveParams) (interface{}, error)
- func (_ TimeWindowDaysAliases) Wednesday(p graphql.ResolveParams) (interface{}, error)
- type TimeWindowDaysAllFieldResolver
- type TimeWindowDaysFieldResolvers
- type TimeWindowDaysFridayFieldResolver
- type TimeWindowDaysMondayFieldResolver
- type TimeWindowDaysSaturdayFieldResolver
- type TimeWindowDaysSundayFieldResolver
- type TimeWindowDaysThursdayFieldResolver
- type TimeWindowDaysTuesdayFieldResolver
- type TimeWindowDaysWednesdayFieldResolver
- type TimeWindowTimeRangeAliases
- type TimeWindowTimeRangeBeginFieldResolver
- type TimeWindowTimeRangeEndFieldResolver
- type TimeWindowTimeRangeFieldResolvers
- type TimeWindowWhenAliases
- type TimeWindowWhenDaysFieldResolver
- type TimeWindowWhenFieldResolvers
- type UpdateCheckInput
- type UpdateCheckPayloadAliases
- type UpdateCheckPayloadCheckFieldResolver
- type UpdateCheckPayloadClientMutationIDFieldResolver
- type UpdateCheckPayloadFieldResolvers
- type UserAliases
- type UserDisabledFieldResolver
- type UserFieldResolvers
- type UserGroupsFieldResolver
- type UserHasPasswordFieldResolver
- type UserUsernameFieldResolver
- type ViewerAliases
- type ViewerFieldResolvers
- type ViewerNamespacesFieldResolver
- type ViewerUserFieldResolver
Constants ¶
This section is empty.
Variables ¶
var AssetType = graphql.NewType("Asset", graphql.ObjectKind)
AssetType Asset defines an archive, an agent will install as a dependency for a check.
var CheckConfigConnectionType = graphql.NewType("CheckConfigConnection", graphql.ObjectKind)
CheckConfigConnectionType A connection to a sequence of records.
var CheckConfigInputsType = graphql.NewType("CheckConfigInputs", graphql.InputKind)
CheckConfigInputsType self descriptive
var CheckConfigType = graphql.NewType("CheckConfig", graphql.ObjectKind)
CheckConfigType CheckConfig is the specification of a check.
var CheckHistoryType = graphql.NewType("CheckHistory", graphql.ObjectKind)
CheckHistoryType CheckHistory is a record of a check execution and its status
var CheckListOrderType = graphql.NewType("CheckListOrder", graphql.EnumKind)
CheckListOrderType Describes ways in which a list of checks can be ordered.
var CheckListOrders = _EnumTypeCheckListOrderValues{
NAME: "NAME",
NAME_DESC: "NAME_DESC",
}
CheckListOrders holds enum values
var CheckType = graphql.NewType("Check", graphql.ObjectKind)
CheckType A Check is a check specification and optionally the results of the check's execution.
var ClusterRoleBindingType = graphql.NewType("ClusterRoleBinding", graphql.ObjectKind)
ClusterRoleBindingType ClusterRoleBinding grants the permissions defined in a ClusterRole referenced to a user or a set of users
var ClusterRoleType = graphql.NewType("ClusterRole", graphql.ObjectKind)
ClusterRoleType ClusterRole applies to all namespaces within a cluster.
var CreateCheckInputType = graphql.NewType("CreateCheckInput", graphql.InputKind)
CreateCheckInputType self descriptive
var CreateCheckPayloadType = graphql.NewType("CreateCheckPayload", graphql.ObjectKind)
CreateCheckPayloadType self descriptive
var CreateSilenceInputType = graphql.NewType("CreateSilenceInput", graphql.InputKind)
CreateSilenceInputType self descriptive
var CreateSilencePayloadType = graphql.NewType("CreateSilencePayload", graphql.ObjectKind)
CreateSilencePayloadType self descriptive
var DeleteRecordInputType = graphql.NewType("DeleteRecordInput", graphql.InputKind)
DeleteRecordInputType Generic input used when deleting records.
var DeleteRecordPayloadType = graphql.NewType("DeleteRecordPayload", graphql.ObjectKind)
DeleteRecordPayloadType Generic container for deleted record payload.
var DeregistrationType = graphql.NewType("Deregistration", graphql.ObjectKind)
DeregistrationType Deregistration contains configuration for Sensu entity de-registration.
var EntityConnectionType = graphql.NewType("EntityConnection", graphql.ObjectKind)
EntityConnectionType A connection to a sequence of records.
var EntityListOrderType = graphql.NewType("EntityListOrder", graphql.EnumKind)
EntityListOrderType Describes ways in which a list of entities can be ordered.
var EntityListOrders = _EnumTypeEntityListOrderValues{
ID: "ID",
ID_DESC: "ID_DESC",
LASTSEEN: "LASTSEEN",
}
EntityListOrders holds enum values
var EntityType = graphql.NewType("Entity", graphql.ObjectKind)
EntityType Entity is the Entity supplying the event. The default Entity for any Event is the running Agent process--if the Event is sent by an Agent.
var ErrCodeType = graphql.NewType("ErrCode", graphql.EnumKind)
ErrCodeType A terse description of an error.
var ErrCodes = _EnumTypeErrCodeValues{
ERR_ALREADY_EXISTS: "ERR_ALREADY_EXISTS",
ERR_INTERNAL: "ERR_INTERNAL",
ERR_NOT_FOUND: "ERR_NOT_FOUND",
ERR_PERMISSION_DENIED: "ERR_PERMISSION_DENIED",
}
ErrCodes holds enum values
var ErrorType = graphql.NewType("Error", graphql.InterfaceKind)
ErrorType Error describes a failed pre-condition or unexpected problem that occurred while processing the operation.
var EventConnectionType = graphql.NewType("EventConnection", graphql.ObjectKind)
EventConnectionType A connection to a sequence of records.
var EventType = graphql.NewType("Event", graphql.ObjectKind)
EventType An Event is the encapsulating type sent across the Sensu websocket transport.
var EventsListOrderType = graphql.NewType("EventsListOrder", graphql.EnumKind)
EventsListOrderType Describes ways in which a list of events can be ordered.
var EventsListOrders = _EnumTypeEventsListOrderValues{
LASTOK: "LASTOK",
NEWEST: "NEWEST",
OLDEST: "OLDEST",
SEVERITY: "SEVERITY",
}
EventsListOrders holds enum values
var ExecuteCheckInputType = graphql.NewType("ExecuteCheckInput", graphql.InputKind)
ExecuteCheckInputType self descriptive
var ExecuteCheckPayloadType = graphql.NewType("ExecuteCheckPayload", graphql.ObjectKind)
ExecuteCheckPayloadType self descriptive
var HandlerConnectionType = graphql.NewType("HandlerConnection", graphql.ObjectKind)
HandlerConnectionType A connection to a sequence of records.
var HandlerEdgeType = graphql.NewType("HandlerEdge", graphql.ObjectKind)
HandlerEdgeType An edge in a connection.
var HandlerListOrderType = graphql.NewType("HandlerListOrder", graphql.EnumKind)
HandlerListOrderType Describes ways in which a list of handlers can be ordered.
var HandlerListOrders = _EnumTypeHandlerListOrderValues{
NAME: "NAME",
NAME_DESC: "NAME_DESC",
}
HandlerListOrders holds enum values
var HandlerSocketType = graphql.NewType("HandlerSocket", graphql.ObjectKind)
HandlerSocketType HandlerSocket contains configuration for a TCP or UDP handler.
var HandlerType = graphql.NewType("Handler", graphql.ObjectKind)
HandlerType A Handler is a handler specification.
var HookConfigType = graphql.NewType("HookConfig", graphql.ObjectKind)
HookConfigType HookConfig is the specification of a hook
var HookListType = graphql.NewType("HookList", graphql.ObjectKind)
HookListType self descriptive
var HookType = graphql.NewType("Hook", graphql.ObjectKind)
HookType A Hook is a hook specification and optionally the results of the hook's execution.
var IconType = graphql.NewType("Icon", graphql.EnumKind)
IconType Describes a graphical element that can be used to distinguish a resource.
var Icons = _EnumTypeIconValues{
BRIEFCASE: "BRIEFCASE",
DONUT: "DONUT",
EMOTICON: "EMOTICON",
ESPRESSO: "ESPRESSO",
EXPLORE: "EXPLORE",
FIRE: "FIRE",
HALFHEART: "HALFHEART",
HEART: "HEART",
MUG: "MUG",
POLYGON: "POLYGON",
VISIBILITY: "VISIBILITY",
}
Icons holds enum values
var JSONType = graphql.NewType("JSON", graphql.ScalarKind)
JSONType ... JSON The JSON type describes any arbitrary JSON compatible data.
- Roughly equilevant to `union JSON = Int | Float | String | Boolean` however can also be a map or list of arbitrary length.
- Despite looking like an an object it's fields **cannot** be selected.
var KVPairStringType = graphql.NewType("KVPairString", graphql.ObjectKind)
KVPairStringType The KVPairString type respresents a name-value relationship where the value is always a string.
var MutationType = graphql.NewType("Mutation", graphql.ObjectKind)
MutationType The root query for implementing GraphQL mutations.
var MutatorType = graphql.NewType("Mutator", graphql.ObjectKind)
MutatorType A Mutator is a mutator specification.
var MutedColourType = graphql.NewType("MutedColour", graphql.EnumKind)
MutedColourType Describes a color from a muted palette that can be used to distinguish a resource.
var MutedColours = _EnumTypeMutedColourValues{
BLUE: "BLUE",
GRAY: "GRAY",
GREEN: "GREEN",
ORANGE: "ORANGE",
PINK: "PINK",
PURPLE: "PURPLE",
YELLOW: "YELLOW",
}
MutedColours holds enum values
var NamespaceType = graphql.NewType("Namespace", graphql.ObjectKind)
NamespaceType Represents a virtual cluster
var NamespacedType = graphql.NewType("Namespaced", graphql.InterfaceKind)
NamespacedType Namespaced represents an object that belongs to a unique namespace.
var NetworkInterfaceType = graphql.NewType("NetworkInterface", graphql.ObjectKind)
NetworkInterfaceType NetworkInterface contains information about a system network interface.
var NetworkType = graphql.NewType("Network", graphql.ObjectKind)
NetworkType Network contains information about the system network interfaces that the Agent process is running on, used for additional Entity context.
var NodeType = graphql.NewType("Node", graphql.InterfaceKind)
NodeType Node describes an object with an ID.
var ObjectMetaType = graphql.NewType("ObjectMeta", graphql.ObjectKind)
ObjectMetaType ObjectMeta is metadata all persisted objects have.
var OffsetPageInfoType = graphql.NewType("OffsetPageInfo", graphql.ObjectKind)
OffsetPageInfoType Information about the current page.
var ProxyRequestsType = graphql.NewType("ProxyRequests", graphql.ObjectKind)
ProxyRequestsType A ProxyRequests represents a request to execute a proxy check.
var PutWrappedPayloadType = graphql.NewType("PutWrappedPayload", graphql.ObjectKind)
PutWrappedPayloadType self descriptive
var QueryType = graphql.NewType("Query", graphql.ObjectKind)
QueryType The query root of Sensu's GraphQL interface.
var ResolveEventInputType = graphql.NewType("ResolveEventInput", graphql.InputKind)
ResolveEventInputType self descriptive
var ResolveEventPayloadType = graphql.NewType("ResolveEventPayload", graphql.ObjectKind)
ResolveEventPayloadType self descriptive
var ResourceType = graphql.NewType("Resource", graphql.InterfaceKind)
ResourceType self descriptive
var RoleBindingType = graphql.NewType("RoleBinding", graphql.ObjectKind)
RoleBindingType RoleBinding grants the permissions defined in a Role referenced to a user or a set of users
var RoleRefType = graphql.NewType("RoleRef", graphql.ObjectKind)
RoleRefType RoleRef maps groups to Roles or ClusterRoles.
var RoleType = graphql.NewType("Role", graphql.ObjectKind)
RoleType Role applies only to a single namespace.
var RuleType = graphql.NewType("Rule", graphql.ObjectKind)
RuleType Rule holds information that describes an action that can be taken
var Schema = graphql.NewType("Schema", graphql.SchemaKind)
Schema supplies the root types of each type of operation, query, mutation (optional), and subscription (optional).
var SilenceInputsType = graphql.NewType("SilenceInputs", graphql.InputKind)
SilenceInputsType self descriptive
var SilenceableType = graphql.NewType("Silenceable", graphql.InterfaceKind)
SilenceableType Silenceable describes resources that can be silenced
var SilencedConnectionType = graphql.NewType("SilencedConnection", graphql.ObjectKind)
SilencedConnectionType A connection to a sequence of records.
var SilencedType = graphql.NewType("Silenced", graphql.ObjectKind)
SilencedType Silenced is the representation of a silence entry.
var SilencesListOrderType = graphql.NewType("SilencesListOrder", graphql.EnumKind)
SilencesListOrderType Describes ways in which a list of silences can be ordered.
var SilencesListOrders = _EnumTypeSilencesListOrderValues{
BEGIN: "BEGIN",
BEGIN_DESC: "BEGIN_DESC",
ID: "ID",
ID_DESC: "ID_DESC",
}
SilencesListOrders holds enum values
var StandardErrorType = graphql.NewType("StandardError", graphql.ObjectKind)
StandardErrorType StandardError is the standard implementation of an error that includes a message.
var SubjectType = graphql.NewType("Subject", graphql.ObjectKind)
SubjectType self descriptive
var SubscriptionOccurencesType = graphql.NewType("SubscriptionOccurences", graphql.ObjectKind)
SubscriptionOccurencesType SubscriptionOccurences describes the number of occurrences of a subscription.
var SubscriptionSetOrderType = graphql.NewType("SubscriptionSetOrder", graphql.EnumKind)
SubscriptionSetOrderType Describes ways in which a set of subscriptions can be ordered.
var SubscriptionSetOrders = _EnumTypeSubscriptionSetOrderValues{
ALPHA_ASC: "ALPHA_ASC",
ALPHA_DESC: "ALPHA_DESC",
OCCURRENCES: "OCCURRENCES",
}
SubscriptionSetOrders holds enum values
var SubscriptionSetType = graphql.NewType("SubscriptionSet", graphql.ObjectKind)
SubscriptionSetType SubscriptionSet describes a set of subscriptions.
var SuggestionOrderType = graphql.NewType("SuggestionOrder", graphql.EnumKind)
SuggestionOrderType self descriptive
var SuggestionOrders = _EnumTypeSuggestionOrderValues{
ALPHA_ASC: "ALPHA_ASC",
ALPHA_DESC: "ALPHA_DESC",
FREQUENCY: "FREQUENCY",
}
SuggestionOrders holds enum values
var SuggestionResultSetType = graphql.NewType("SuggestionResultSet", graphql.ObjectKind)
SuggestionResultSetType SuggestionResultSet contains a collection of results for the given query.
var SystemType = graphql.NewType("System", graphql.ObjectKind)
SystemType System contains information about the system that the Agent process is running on, used for additional Entity context.
var TimeWindowDaysType = graphql.NewType("TimeWindowDays", graphql.ObjectKind)
TimeWindowDaysType TimeWindowDays defines the days of a time window
var TimeWindowTimeRangeType = graphql.NewType("TimeWindowTimeRange", graphql.ObjectKind)
TimeWindowTimeRangeType TimeWindowTimeRange defines the time ranges of a time
var TimeWindowWhenType = graphql.NewType("TimeWindowWhen", graphql.ObjectKind)
TimeWindowWhenType TimeWindowWhen defines the "when" attributes for time windows
var UintType = graphql.NewType("Uint", graphql.ScalarKind)
UintType ... Uint The Uint scalar type represents a unsigned 32 bit integer. Response formats that support an unsigned 32‐bit integer or a number type should use that type to represent this scalar.
**NOTE:** As numbers are represented as double-precision floating point numbers in Javascript the largest possible value is 2^53. As such 32 bit is used as the lowest common denominator.
var UpdateCheckInputType = graphql.NewType("UpdateCheckInput", graphql.InputKind)
UpdateCheckInputType self descriptive
var UpdateCheckPayloadType = graphql.NewType("UpdateCheckPayload", graphql.ObjectKind)
UpdateCheckPayloadType self descriptive
var UserType = graphql.NewType("User", graphql.ObjectKind)
UserType User describes an operator in the system
var ViewerType = graphql.NewType("Viewer", graphql.ObjectKind)
ViewerType Describes a viewer of the system; generally an authenticated user.
Functions ¶
func RegisterAsset ¶
func RegisterAsset(svc *graphql.Service, impl AssetFieldResolvers)
RegisterAsset registers Asset object type with given service.
func RegisterCheck ¶
func RegisterCheck(svc *graphql.Service, impl CheckFieldResolvers)
RegisterCheck registers Check object type with given service.
func RegisterCheckConfig ¶
func RegisterCheckConfig(svc *graphql.Service, impl CheckConfigFieldResolvers)
RegisterCheckConfig registers CheckConfig object type with given service.
func RegisterCheckConfigConnection ¶
func RegisterCheckConfigConnection(svc *graphql.Service, impl CheckConfigConnectionFieldResolvers)
RegisterCheckConfigConnection registers CheckConfigConnection object type with given service.
func RegisterCheckConfigInputs ¶
RegisterCheckConfigInputs registers CheckConfigInputs object type with given service.
func RegisterCheckHistory ¶
func RegisterCheckHistory(svc *graphql.Service, impl CheckHistoryFieldResolvers)
RegisterCheckHistory registers CheckHistory object type with given service.
func RegisterCheckListOrder ¶
RegisterCheckListOrder registers CheckListOrder object type with given service.
func RegisterClusterRole ¶
func RegisterClusterRole(svc *graphql.Service, impl ClusterRoleFieldResolvers)
RegisterClusterRole registers ClusterRole object type with given service.
func RegisterClusterRoleBinding ¶
func RegisterClusterRoleBinding(svc *graphql.Service, impl ClusterRoleBindingFieldResolvers)
RegisterClusterRoleBinding registers ClusterRoleBinding object type with given service.
func RegisterCreateCheckInput ¶
RegisterCreateCheckInput registers CreateCheckInput object type with given service.
func RegisterCreateCheckPayload ¶
func RegisterCreateCheckPayload(svc *graphql.Service, impl CreateCheckPayloadFieldResolvers)
RegisterCreateCheckPayload registers CreateCheckPayload object type with given service.
func RegisterCreateSilenceInput ¶
RegisterCreateSilenceInput registers CreateSilenceInput object type with given service.
func RegisterCreateSilencePayload ¶
func RegisterCreateSilencePayload(svc *graphql.Service, impl CreateSilencePayloadFieldResolvers)
RegisterCreateSilencePayload registers CreateSilencePayload object type with given service.
func RegisterDeleteRecordInput ¶
RegisterDeleteRecordInput registers DeleteRecordInput object type with given service.
func RegisterDeleteRecordPayload ¶
func RegisterDeleteRecordPayload(svc *graphql.Service, impl DeleteRecordPayloadFieldResolvers)
RegisterDeleteRecordPayload registers DeleteRecordPayload object type with given service.
func RegisterDeregistration ¶
func RegisterDeregistration(svc *graphql.Service, impl DeregistrationFieldResolvers)
RegisterDeregistration registers Deregistration object type with given service.
func RegisterEntity ¶
func RegisterEntity(svc *graphql.Service, impl EntityFieldResolvers)
RegisterEntity registers Entity object type with given service.
func RegisterEntityConnection ¶
func RegisterEntityConnection(svc *graphql.Service, impl EntityConnectionFieldResolvers)
RegisterEntityConnection registers EntityConnection object type with given service.
func RegisterEntityListOrder ¶
RegisterEntityListOrder registers EntityListOrder object type with given service.
func RegisterErrCode ¶
RegisterErrCode registers ErrCode object type with given service.
func RegisterError ¶
func RegisterError(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
RegisterError registers Error object type with given service.
func RegisterEvent ¶
func RegisterEvent(svc *graphql.Service, impl EventFieldResolvers)
RegisterEvent registers Event object type with given service.
func RegisterEventConnection ¶
func RegisterEventConnection(svc *graphql.Service, impl EventConnectionFieldResolvers)
RegisterEventConnection registers EventConnection object type with given service.
func RegisterEventsListOrder ¶
RegisterEventsListOrder registers EventsListOrder object type with given service.
func RegisterExecuteCheckInput ¶
RegisterExecuteCheckInput registers ExecuteCheckInput object type with given service.
func RegisterExecuteCheckPayload ¶
func RegisterExecuteCheckPayload(svc *graphql.Service, impl ExecuteCheckPayloadFieldResolvers)
RegisterExecuteCheckPayload registers ExecuteCheckPayload object type with given service.
func RegisterHandler ¶
func RegisterHandler(svc *graphql.Service, impl HandlerFieldResolvers)
RegisterHandler registers Handler object type with given service.
func RegisterHandlerConnection ¶
func RegisterHandlerConnection(svc *graphql.Service, impl HandlerConnectionFieldResolvers)
RegisterHandlerConnection registers HandlerConnection object type with given service.
func RegisterHandlerEdge ¶
func RegisterHandlerEdge(svc *graphql.Service, impl HandlerEdgeFieldResolvers)
RegisterHandlerEdge registers HandlerEdge object type with given service.
func RegisterHandlerListOrder ¶
RegisterHandlerListOrder registers HandlerListOrder object type with given service.
func RegisterHandlerSocket ¶
func RegisterHandlerSocket(svc *graphql.Service, impl HandlerSocketFieldResolvers)
RegisterHandlerSocket registers HandlerSocket object type with given service.
func RegisterHook ¶
func RegisterHook(svc *graphql.Service, impl HookFieldResolvers)
RegisterHook registers Hook object type with given service.
func RegisterHookConfig ¶
func RegisterHookConfig(svc *graphql.Service, impl HookConfigFieldResolvers)
RegisterHookConfig registers HookConfig object type with given service.
func RegisterHookList ¶
func RegisterHookList(svc *graphql.Service, impl HookListFieldResolvers)
RegisterHookList registers HookList object type with given service.
func RegisterIcon ¶
RegisterIcon registers Icon object type with given service.
func RegisterJSON ¶
func RegisterJSON(svc *graphql.Service, impl graphql.ScalarResolver)
RegisterJSON registers JSON object type with given service.
func RegisterKVPairString ¶
func RegisterKVPairString(svc *graphql.Service, impl KVPairStringFieldResolvers)
RegisterKVPairString registers KVPairString object type with given service.
func RegisterMutation ¶
func RegisterMutation(svc *graphql.Service, impl MutationFieldResolvers)
RegisterMutation registers Mutation object type with given service.
func RegisterMutator ¶
func RegisterMutator(svc *graphql.Service, impl MutatorFieldResolvers)
RegisterMutator registers Mutator object type with given service.
func RegisterMutedColour ¶
RegisterMutedColour registers MutedColour object type with given service.
func RegisterNamespace ¶
func RegisterNamespace(svc *graphql.Service, impl NamespaceFieldResolvers)
RegisterNamespace registers Namespace object type with given service.
func RegisterNamespaced ¶
func RegisterNamespaced(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
RegisterNamespaced registers Namespaced object type with given service.
func RegisterNetwork ¶
func RegisterNetwork(svc *graphql.Service, impl NetworkFieldResolvers)
RegisterNetwork registers Network object type with given service.
func RegisterNetworkInterface ¶
func RegisterNetworkInterface(svc *graphql.Service, impl NetworkInterfaceFieldResolvers)
RegisterNetworkInterface registers NetworkInterface object type with given service.
func RegisterNode ¶
func RegisterNode(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
RegisterNode registers Node object type with given service.
func RegisterObjectMeta ¶
func RegisterObjectMeta(svc *graphql.Service, impl ObjectMetaFieldResolvers)
RegisterObjectMeta registers ObjectMeta object type with given service.
func RegisterOffsetPageInfo ¶
func RegisterOffsetPageInfo(svc *graphql.Service, impl OffsetPageInfoFieldResolvers)
RegisterOffsetPageInfo registers OffsetPageInfo object type with given service.
func RegisterProxyRequests ¶
func RegisterProxyRequests(svc *graphql.Service, impl ProxyRequestsFieldResolvers)
RegisterProxyRequests registers ProxyRequests object type with given service.
func RegisterPutWrappedPayload ¶
func RegisterPutWrappedPayload(svc *graphql.Service, impl PutWrappedPayloadFieldResolvers)
RegisterPutWrappedPayload registers PutWrappedPayload object type with given service.
func RegisterQuery ¶
func RegisterQuery(svc *graphql.Service, impl QueryFieldResolvers)
RegisterQuery registers Query object type with given service.
func RegisterResolveEventInput ¶
RegisterResolveEventInput registers ResolveEventInput object type with given service.
func RegisterResolveEventPayload ¶
func RegisterResolveEventPayload(svc *graphql.Service, impl ResolveEventPayloadFieldResolvers)
RegisterResolveEventPayload registers ResolveEventPayload object type with given service.
func RegisterResource ¶
func RegisterResource(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
RegisterResource registers Resource object type with given service.
func RegisterRole ¶
func RegisterRole(svc *graphql.Service, impl RoleFieldResolvers)
RegisterRole registers Role object type with given service.
func RegisterRoleBinding ¶
func RegisterRoleBinding(svc *graphql.Service, impl RoleBindingFieldResolvers)
RegisterRoleBinding registers RoleBinding object type with given service.
func RegisterRoleRef ¶
func RegisterRoleRef(svc *graphql.Service, impl RoleRefFieldResolvers)
RegisterRoleRef registers RoleRef object type with given service.
func RegisterRule ¶
func RegisterRule(svc *graphql.Service, impl RuleFieldResolvers)
RegisterRule registers Rule object type with given service.
func RegisterSchema ¶
RegisterSchema registers schema description with given service.
func RegisterSilenceInputs ¶
RegisterSilenceInputs registers SilenceInputs object type with given service.
func RegisterSilenceable ¶
func RegisterSilenceable(svc *graphql.Service, impl graphql.InterfaceTypeResolver)
RegisterSilenceable registers Silenceable object type with given service.
func RegisterSilenced ¶
func RegisterSilenced(svc *graphql.Service, impl SilencedFieldResolvers)
RegisterSilenced registers Silenced object type with given service.
func RegisterSilencedConnection ¶
func RegisterSilencedConnection(svc *graphql.Service, impl SilencedConnectionFieldResolvers)
RegisterSilencedConnection registers SilencedConnection object type with given service.
func RegisterSilencesListOrder ¶
RegisterSilencesListOrder registers SilencesListOrder object type with given service.
func RegisterStandardError ¶
func RegisterStandardError(svc *graphql.Service, impl StandardErrorFieldResolvers)
RegisterStandardError registers StandardError object type with given service.
func RegisterSubject ¶
func RegisterSubject(svc *graphql.Service, impl SubjectFieldResolvers)
RegisterSubject registers Subject object type with given service.
func RegisterSubscriptionOccurences ¶
func RegisterSubscriptionOccurences(svc *graphql.Service, impl SubscriptionOccurencesFieldResolvers)
RegisterSubscriptionOccurences registers SubscriptionOccurences object type with given service.
func RegisterSubscriptionSet ¶
func RegisterSubscriptionSet(svc *graphql.Service, impl SubscriptionSetFieldResolvers)
RegisterSubscriptionSet registers SubscriptionSet object type with given service.
func RegisterSubscriptionSetOrder ¶
RegisterSubscriptionSetOrder registers SubscriptionSetOrder object type with given service.
func RegisterSuggestionOrder ¶
RegisterSuggestionOrder registers SuggestionOrder object type with given service.
func RegisterSuggestionResultSet ¶
func RegisterSuggestionResultSet(svc *graphql.Service, impl SuggestionResultSetFieldResolvers)
RegisterSuggestionResultSet registers SuggestionResultSet object type with given service.
func RegisterSystem ¶
func RegisterSystem(svc *graphql.Service, impl SystemFieldResolvers)
RegisterSystem registers System object type with given service.
func RegisterTimeWindowDays ¶
func RegisterTimeWindowDays(svc *graphql.Service, impl TimeWindowDaysFieldResolvers)
RegisterTimeWindowDays registers TimeWindowDays object type with given service.
func RegisterTimeWindowTimeRange ¶
func RegisterTimeWindowTimeRange(svc *graphql.Service, impl TimeWindowTimeRangeFieldResolvers)
RegisterTimeWindowTimeRange registers TimeWindowTimeRange object type with given service.
func RegisterTimeWindowWhen ¶
func RegisterTimeWindowWhen(svc *graphql.Service, impl TimeWindowWhenFieldResolvers)
RegisterTimeWindowWhen registers TimeWindowWhen object type with given service.
func RegisterUint ¶
func RegisterUint(svc *graphql.Service, impl graphql.ScalarResolver)
RegisterUint registers Uint object type with given service.
func RegisterUpdateCheckInput ¶
RegisterUpdateCheckInput registers UpdateCheckInput object type with given service.
func RegisterUpdateCheckPayload ¶
func RegisterUpdateCheckPayload(svc *graphql.Service, impl UpdateCheckPayloadFieldResolvers)
RegisterUpdateCheckPayload registers UpdateCheckPayload object type with given service.
func RegisterUser ¶
func RegisterUser(svc *graphql.Service, impl UserFieldResolvers)
RegisterUser registers User object type with given service.
func RegisterViewer ¶
func RegisterViewer(svc *graphql.Service, impl ViewerFieldResolvers)
RegisterViewer registers Viewer object type with given service.
Types ¶
type AssetAliases ¶
type AssetAliases struct{}
AssetAliases implements all methods on AssetFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (AssetAliases) Filters ¶
func (_ AssetAliases) Filters(p graphql.ResolveParams) ([]string, error)
Filters implements response to request for 'filters' field.
func (AssetAliases) ID ¶
func (_ AssetAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (AssetAliases) Metadata ¶
func (_ AssetAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (AssetAliases) Name ¶
func (_ AssetAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (AssetAliases) Namespace ¶
func (_ AssetAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (AssetAliases) Sha512 ¶
func (_ AssetAliases) Sha512(p graphql.ResolveParams) (string, error)
Sha512 implements response to request for 'sha512' field.
func (AssetAliases) ToJSON ¶
func (_ AssetAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
func (AssetAliases) Url ¶
func (_ AssetAliases) Url(p graphql.ResolveParams) (string, error)
Url implements response to request for 'url' field.
type AssetFieldResolvers ¶
type AssetFieldResolvers interface { AssetIDFieldResolver AssetNamespaceFieldResolver AssetNameFieldResolver AssetMetadataFieldResolver AssetUrlFieldResolver AssetSha512FieldResolver AssetFiltersFieldResolver AssetToJSONFieldResolver }
AssetFieldResolvers represents a collection of methods whose products represent the response values of the 'Asset' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type AssetFiltersFieldResolver ¶
type AssetFiltersFieldResolver interface { // Filters implements response to request for filters field. Filters(p graphql.ResolveParams) ([]string, error) }
AssetFiltersFieldResolver implement to resolve requests for the Asset's filters field.
type AssetIDFieldResolver ¶
type AssetIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
AssetIDFieldResolver implement to resolve requests for the Asset's id field.
type AssetMetadataFieldResolver ¶
type AssetMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
AssetMetadataFieldResolver implement to resolve requests for the Asset's metadata field.
type AssetNameFieldResolver ¶
type AssetNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
AssetNameFieldResolver implement to resolve requests for the Asset's name field.
type AssetNamespaceFieldResolver ¶
type AssetNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
AssetNamespaceFieldResolver implement to resolve requests for the Asset's namespace field.
type AssetSha512FieldResolver ¶
type AssetSha512FieldResolver interface { // Sha512 implements response to request for sha512 field. Sha512(p graphql.ResolveParams) (string, error) }
AssetSha512FieldResolver implement to resolve requests for the Asset's sha512 field.
type AssetToJSONFieldResolver ¶
type AssetToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
AssetToJSONFieldResolver implement to resolve requests for the Asset's toJSON field.
type AssetUrlFieldResolver ¶
type AssetUrlFieldResolver interface { // Url implements response to request for url field. Url(p graphql.ResolveParams) (string, error) }
AssetUrlFieldResolver implement to resolve requests for the Asset's url field.
type CheckAliases ¶
type CheckAliases struct{}
CheckAliases implements all methods on CheckFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (CheckAliases) CheckHooks ¶
func (_ CheckAliases) CheckHooks(p graphql.ResolveParams) (interface{}, error)
CheckHooks implements response to request for 'checkHooks' field.
func (CheckAliases) Command ¶
func (_ CheckAliases) Command(p graphql.ResolveParams) (string, error)
Command implements response to request for 'command' field.
func (CheckAliases) Cron ¶
func (_ CheckAliases) Cron(p graphql.ResolveParams) (string, error)
Cron implements response to request for 'cron' field.
func (CheckAliases) Duration ¶
func (_ CheckAliases) Duration(p graphql.ResolveParams) (float64, error)
Duration implements response to request for 'duration' field.
func (CheckAliases) EnvVars ¶
func (_ CheckAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
EnvVars implements response to request for 'envVars' field.
func (CheckAliases) Executed ¶
func (_ CheckAliases) Executed(p graphql.ResolveParams) (time.Time, error)
Executed implements response to request for 'executed' field.
func (CheckAliases) ExtendedAttributes ¶
func (_ CheckAliases) ExtendedAttributes(p graphql.ResolveParams) (interface{}, error)
ExtendedAttributes implements response to request for 'extendedAttributes' field.
func (CheckAliases) Handlers ¶
func (_ CheckAliases) Handlers(p graphql.ResolveParams) (interface{}, error)
Handlers implements response to request for 'handlers' field.
func (CheckAliases) HighFlapThreshold ¶
func (_ CheckAliases) HighFlapThreshold(p graphql.ResolveParams) (int, error)
HighFlapThreshold implements response to request for 'highFlapThreshold' field.
func (CheckAliases) History ¶
func (_ CheckAliases) History(p CheckHistoryFieldResolverParams) (interface{}, error)
History implements response to request for 'history' field.
func (CheckAliases) Hooks ¶
func (_ CheckAliases) Hooks(p graphql.ResolveParams) (interface{}, error)
Hooks implements response to request for 'hooks' field.
func (CheckAliases) Interval ¶
func (_ CheckAliases) Interval(p graphql.ResolveParams) (int, error)
Interval implements response to request for 'interval' field.
func (CheckAliases) IsSilenced ¶
func (_ CheckAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
IsSilenced implements response to request for 'isSilenced' field.
func (CheckAliases) Issued ¶
func (_ CheckAliases) Issued(p graphql.ResolveParams) (time.Time, error)
Issued implements response to request for 'issued' field.
func (CheckAliases) LastOK ¶
func (_ CheckAliases) LastOK(p graphql.ResolveParams) (*time.Time, error)
LastOK implements response to request for 'lastOK' field.
func (CheckAliases) LowFlapThreshold ¶
func (_ CheckAliases) LowFlapThreshold(p graphql.ResolveParams) (int, error)
LowFlapThreshold implements response to request for 'lowFlapThreshold' field.
func (CheckAliases) Metadata ¶
func (_ CheckAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (CheckAliases) Name ¶
func (_ CheckAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (CheckAliases) NodeID ¶
func (_ CheckAliases) NodeID(p graphql.ResolveParams) (string, error)
NodeID implements response to request for 'nodeId' field.
func (CheckAliases) Occurrences ¶
func (_ CheckAliases) Occurrences(p graphql.ResolveParams) (int, error)
Occurrences implements response to request for 'occurrences' field.
func (CheckAliases) OccurrencesWatermark ¶
func (_ CheckAliases) OccurrencesWatermark(p graphql.ResolveParams) (int, error)
OccurrencesWatermark implements response to request for 'occurrencesWatermark' field.
func (CheckAliases) Output ¶
func (_ CheckAliases) Output(p graphql.ResolveParams) (string, error)
Output implements response to request for 'output' field.
func (CheckAliases) OutputMetricFormat ¶
func (_ CheckAliases) OutputMetricFormat(p graphql.ResolveParams) (string, error)
OutputMetricFormat implements response to request for 'outputMetricFormat' field.
func (CheckAliases) OutputMetricHandlers ¶
func (_ CheckAliases) OutputMetricHandlers(p graphql.ResolveParams) (interface{}, error)
OutputMetricHandlers implements response to request for 'outputMetricHandlers' field.
func (CheckAliases) ProxyEntityName ¶
func (_ CheckAliases) ProxyEntityName(p graphql.ResolveParams) (string, error)
ProxyEntityName implements response to request for 'proxyEntityName' field.
func (CheckAliases) ProxyRequests ¶
func (_ CheckAliases) ProxyRequests(p graphql.ResolveParams) (interface{}, error)
ProxyRequests implements response to request for 'proxyRequests' field.
func (CheckAliases) Publish ¶
func (_ CheckAliases) Publish(p graphql.ResolveParams) (bool, error)
Publish implements response to request for 'publish' field.
func (CheckAliases) RoundRobin ¶
func (_ CheckAliases) RoundRobin(p graphql.ResolveParams) (bool, error)
RoundRobin implements response to request for 'roundRobin' field.
func (CheckAliases) RuntimeAssets ¶
func (_ CheckAliases) RuntimeAssets(p graphql.ResolveParams) (interface{}, error)
RuntimeAssets implements response to request for 'runtimeAssets' field.
func (CheckAliases) Silenced ¶
func (_ CheckAliases) Silenced(p graphql.ResolveParams) ([]string, error)
Silenced implements response to request for 'silenced' field.
func (CheckAliases) Silences ¶
func (_ CheckAliases) Silences(p graphql.ResolveParams) (interface{}, error)
Silences implements response to request for 'silences' field.
func (CheckAliases) State ¶
func (_ CheckAliases) State(p graphql.ResolveParams) (string, error)
State implements response to request for 'state' field.
func (CheckAliases) Status ¶
func (_ CheckAliases) Status(p graphql.ResolveParams) (interface{}, error)
Status implements response to request for 'status' field.
func (CheckAliases) Stdin ¶
func (_ CheckAliases) Stdin(p graphql.ResolveParams) (bool, error)
Stdin implements response to request for 'stdin' field.
func (CheckAliases) Subdue ¶
func (_ CheckAliases) Subdue(p graphql.ResolveParams) (interface{}, error)
Subdue implements response to request for 'subdue' field.
func (CheckAliases) Subscriptions ¶
func (_ CheckAliases) Subscriptions(p graphql.ResolveParams) ([]string, error)
Subscriptions implements response to request for 'subscriptions' field.
func (CheckAliases) Timeout ¶
func (_ CheckAliases) Timeout(p graphql.ResolveParams) (int, error)
Timeout implements response to request for 'timeout' field.
func (CheckAliases) ToJSON ¶
func (_ CheckAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
func (CheckAliases) TotalStateChange ¶
func (_ CheckAliases) TotalStateChange(p graphql.ResolveParams) (int, error)
TotalStateChange implements response to request for 'totalStateChange' field.
func (CheckAliases) Ttl ¶
func (_ CheckAliases) Ttl(p graphql.ResolveParams) (int, error)
Ttl implements response to request for 'ttl' field.
type CheckCheckHooksFieldResolver ¶
type CheckCheckHooksFieldResolver interface { // CheckHooks implements response to request for checkHooks field. CheckHooks(p graphql.ResolveParams) (interface{}, error) }
CheckCheckHooksFieldResolver implement to resolve requests for the Check's checkHooks field.
type CheckCommandFieldResolver ¶
type CheckCommandFieldResolver interface { // Command implements response to request for command field. Command(p graphql.ResolveParams) (string, error) }
CheckCommandFieldResolver implement to resolve requests for the Check's command field.
type CheckConfigAliases ¶
type CheckConfigAliases struct{}
CheckConfigAliases implements all methods on CheckConfigFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (CheckConfigAliases) CheckHooks ¶
func (_ CheckConfigAliases) CheckHooks(p graphql.ResolveParams) (interface{}, error)
CheckHooks implements response to request for 'checkHooks' field.
func (CheckConfigAliases) Command ¶
func (_ CheckConfigAliases) Command(p graphql.ResolveParams) (string, error)
Command implements response to request for 'command' field.
func (CheckConfigAliases) Cron ¶
func (_ CheckConfigAliases) Cron(p graphql.ResolveParams) (string, error)
Cron implements response to request for 'cron' field.
func (CheckConfigAliases) EnvVars ¶
func (_ CheckConfigAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
EnvVars implements response to request for 'envVars' field.
func (CheckConfigAliases) ExtendedAttributes ¶
func (_ CheckConfigAliases) ExtendedAttributes(p graphql.ResolveParams) (interface{}, error)
ExtendedAttributes implements response to request for 'extendedAttributes' field.
func (CheckConfigAliases) Handlers ¶
func (_ CheckConfigAliases) Handlers(p graphql.ResolveParams) (interface{}, error)
Handlers implements response to request for 'handlers' field.
func (CheckConfigAliases) HighFlapThreshold ¶
func (_ CheckConfigAliases) HighFlapThreshold(p graphql.ResolveParams) (int, error)
HighFlapThreshold implements response to request for 'highFlapThreshold' field.
func (CheckConfigAliases) ID ¶
func (_ CheckConfigAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (CheckConfigAliases) Interval ¶
func (_ CheckConfigAliases) Interval(p graphql.ResolveParams) (int, error)
Interval implements response to request for 'interval' field.
func (CheckConfigAliases) IsSilenced ¶
func (_ CheckConfigAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
IsSilenced implements response to request for 'isSilenced' field.
func (CheckConfigAliases) LowFlapThreshold ¶
func (_ CheckConfigAliases) LowFlapThreshold(p graphql.ResolveParams) (int, error)
LowFlapThreshold implements response to request for 'lowFlapThreshold' field.
func (CheckConfigAliases) Metadata ¶
func (_ CheckConfigAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (CheckConfigAliases) Name ¶
func (_ CheckConfigAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (CheckConfigAliases) Namespace ¶
func (_ CheckConfigAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (CheckConfigAliases) OutputMetricFormat ¶
func (_ CheckConfigAliases) OutputMetricFormat(p graphql.ResolveParams) (string, error)
OutputMetricFormat implements response to request for 'outputMetricFormat' field.
func (CheckConfigAliases) OutputMetricHandlers ¶
func (_ CheckConfigAliases) OutputMetricHandlers(p graphql.ResolveParams) (interface{}, error)
OutputMetricHandlers implements response to request for 'outputMetricHandlers' field.
func (CheckConfigAliases) ProxyEntityName ¶
func (_ CheckConfigAliases) ProxyEntityName(p graphql.ResolveParams) (string, error)
ProxyEntityName implements response to request for 'proxyEntityName' field.
func (CheckConfigAliases) ProxyRequests ¶
func (_ CheckConfigAliases) ProxyRequests(p graphql.ResolveParams) (interface{}, error)
ProxyRequests implements response to request for 'proxyRequests' field.
func (CheckConfigAliases) Publish ¶
func (_ CheckConfigAliases) Publish(p graphql.ResolveParams) (bool, error)
Publish implements response to request for 'publish' field.
func (CheckConfigAliases) RoundRobin ¶
func (_ CheckConfigAliases) RoundRobin(p graphql.ResolveParams) (bool, error)
RoundRobin implements response to request for 'roundRobin' field.
func (CheckConfigAliases) RuntimeAssets ¶
func (_ CheckConfigAliases) RuntimeAssets(p graphql.ResolveParams) (interface{}, error)
RuntimeAssets implements response to request for 'runtimeAssets' field.
func (CheckConfigAliases) Silences ¶
func (_ CheckConfigAliases) Silences(p graphql.ResolveParams) (interface{}, error)
Silences implements response to request for 'silences' field.
func (CheckConfigAliases) Stdin ¶
func (_ CheckConfigAliases) Stdin(p graphql.ResolveParams) (bool, error)
Stdin implements response to request for 'stdin' field.
func (CheckConfigAliases) Subdue ¶
func (_ CheckConfigAliases) Subdue(p graphql.ResolveParams) (interface{}, error)
Subdue implements response to request for 'subdue' field.
func (CheckConfigAliases) Subscriptions ¶
func (_ CheckConfigAliases) Subscriptions(p graphql.ResolveParams) ([]string, error)
Subscriptions implements response to request for 'subscriptions' field.
func (CheckConfigAliases) Timeout ¶
func (_ CheckConfigAliases) Timeout(p graphql.ResolveParams) (int, error)
Timeout implements response to request for 'timeout' field.
func (CheckConfigAliases) ToJSON ¶
func (_ CheckConfigAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
func (CheckConfigAliases) Ttl ¶
func (_ CheckConfigAliases) Ttl(p graphql.ResolveParams) (int, error)
Ttl implements response to request for 'ttl' field.
type CheckConfigCheckHooksFieldResolver ¶
type CheckConfigCheckHooksFieldResolver interface { // CheckHooks implements response to request for checkHooks field. CheckHooks(p graphql.ResolveParams) (interface{}, error) }
CheckConfigCheckHooksFieldResolver implement to resolve requests for the CheckConfig's checkHooks field.
type CheckConfigCommandFieldResolver ¶
type CheckConfigCommandFieldResolver interface { // Command implements response to request for command field. Command(p graphql.ResolveParams) (string, error) }
CheckConfigCommandFieldResolver implement to resolve requests for the CheckConfig's command field.
type CheckConfigConnectionAliases ¶
type CheckConfigConnectionAliases struct{}
CheckConfigConnectionAliases implements all methods on CheckConfigConnectionFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (CheckConfigConnectionAliases) Nodes ¶
func (_ CheckConfigConnectionAliases) Nodes(p graphql.ResolveParams) (interface{}, error)
Nodes implements response to request for 'nodes' field.
func (CheckConfigConnectionAliases) PageInfo ¶
func (_ CheckConfigConnectionAliases) PageInfo(p graphql.ResolveParams) (interface{}, error)
PageInfo implements response to request for 'pageInfo' field.
type CheckConfigConnectionFieldResolvers ¶
type CheckConfigConnectionFieldResolvers interface { CheckConfigConnectionNodesFieldResolver CheckConfigConnectionPageInfoFieldResolver }
CheckConfigConnectionFieldResolvers represents a collection of methods whose products represent the response values of the 'CheckConfigConnection' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type CheckConfigConnectionNodesFieldResolver ¶
type CheckConfigConnectionNodesFieldResolver interface { // Nodes implements response to request for nodes field. Nodes(p graphql.ResolveParams) (interface{}, error) }
CheckConfigConnectionNodesFieldResolver implement to resolve requests for the CheckConfigConnection's nodes field.
type CheckConfigConnectionPageInfoFieldResolver ¶
type CheckConfigConnectionPageInfoFieldResolver interface { // PageInfo implements response to request for pageInfo field. PageInfo(p graphql.ResolveParams) (interface{}, error) }
CheckConfigConnectionPageInfoFieldResolver implement to resolve requests for the CheckConfigConnection's pageInfo field.
type CheckConfigCronFieldResolver ¶
type CheckConfigCronFieldResolver interface { // Cron implements response to request for cron field. Cron(p graphql.ResolveParams) (string, error) }
CheckConfigCronFieldResolver implement to resolve requests for the CheckConfig's cron field.
type CheckConfigEnvVarsFieldResolver ¶
type CheckConfigEnvVarsFieldResolver interface { // EnvVars implements response to request for envVars field. EnvVars(p graphql.ResolveParams) ([]string, error) }
CheckConfigEnvVarsFieldResolver implement to resolve requests for the CheckConfig's envVars field.
type CheckConfigExtendedAttributesFieldResolver ¶
type CheckConfigExtendedAttributesFieldResolver interface { // ExtendedAttributes implements response to request for extendedAttributes field. ExtendedAttributes(p graphql.ResolveParams) (interface{}, error) }
CheckConfigExtendedAttributesFieldResolver implement to resolve requests for the CheckConfig's extendedAttributes field.
type CheckConfigFieldResolvers ¶
type CheckConfigFieldResolvers interface { CheckConfigIDFieldResolver CheckConfigNamespaceFieldResolver CheckConfigNameFieldResolver CheckConfigMetadataFieldResolver CheckConfigCommandFieldResolver CheckConfigCheckHooksFieldResolver CheckConfigCronFieldResolver CheckConfigEnvVarsFieldResolver CheckConfigExtendedAttributesFieldResolver CheckConfigHandlersFieldResolver CheckConfigHighFlapThresholdFieldResolver CheckConfigIntervalFieldResolver CheckConfigLowFlapThresholdFieldResolver CheckConfigOutputMetricFormatFieldResolver CheckConfigOutputMetricHandlersFieldResolver CheckConfigProxyEntityNameFieldResolver CheckConfigProxyRequestsFieldResolver CheckConfigPublishFieldResolver CheckConfigRuntimeAssetsFieldResolver CheckConfigRoundRobinFieldResolver CheckConfigIsSilencedFieldResolver CheckConfigSilencesFieldResolver CheckConfigStdinFieldResolver CheckConfigSubdueFieldResolver CheckConfigSubscriptionsFieldResolver CheckConfigTimeoutFieldResolver CheckConfigTtlFieldResolver CheckConfigToJSONFieldResolver }
CheckConfigFieldResolvers represents a collection of methods whose products represent the response values of the 'CheckConfig' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type CheckConfigHandlersFieldResolver ¶
type CheckConfigHandlersFieldResolver interface { // Handlers implements response to request for handlers field. Handlers(p graphql.ResolveParams) (interface{}, error) }
CheckConfigHandlersFieldResolver implement to resolve requests for the CheckConfig's handlers field.
type CheckConfigHighFlapThresholdFieldResolver ¶
type CheckConfigHighFlapThresholdFieldResolver interface { // HighFlapThreshold implements response to request for highFlapThreshold field. HighFlapThreshold(p graphql.ResolveParams) (int, error) }
CheckConfigHighFlapThresholdFieldResolver implement to resolve requests for the CheckConfig's highFlapThreshold field.
type CheckConfigIDFieldResolver ¶
type CheckConfigIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
CheckConfigIDFieldResolver implement to resolve requests for the CheckConfig's id field.
type CheckConfigInputs ¶
type CheckConfigInputs struct { // Command - command to run. Command string // Interval - interval is the time interval, in seconds, in which the check should be run. Interval int /* LowFlapThreshold - lowFlapThreshold is the flap detection low threshold (% state change) for the check. Sensu uses the same flap detection algorithm as Nagios. */ LowFlapThreshold int /* HighFlapThreshold - highFlapThreshold is the flap detection high threshold (% state change) for the check. Sensu uses the same flap detection algorithm as Nagios. */ HighFlapThreshold int // Subscriptions - subscriptions refers to the list of subscribers for the check. Subscriptions []string // Handlers - handlers are the event handler for the check (incidents and/or metrics). Handlers []string // Publish - publish indicates if check requests are published for the check Publish bool // Assets - Provide a list of valid assets that are required to execute the check. Assets []string }
CheckConfigInputs self descriptive
type CheckConfigIntervalFieldResolver ¶
type CheckConfigIntervalFieldResolver interface { // Interval implements response to request for interval field. Interval(p graphql.ResolveParams) (int, error) }
CheckConfigIntervalFieldResolver implement to resolve requests for the CheckConfig's interval field.
type CheckConfigIsSilencedFieldResolver ¶
type CheckConfigIsSilencedFieldResolver interface { // IsSilenced implements response to request for isSilenced field. IsSilenced(p graphql.ResolveParams) (bool, error) }
CheckConfigIsSilencedFieldResolver implement to resolve requests for the CheckConfig's isSilenced field.
type CheckConfigLowFlapThresholdFieldResolver ¶
type CheckConfigLowFlapThresholdFieldResolver interface { // LowFlapThreshold implements response to request for lowFlapThreshold field. LowFlapThreshold(p graphql.ResolveParams) (int, error) }
CheckConfigLowFlapThresholdFieldResolver implement to resolve requests for the CheckConfig's lowFlapThreshold field.
type CheckConfigMetadataFieldResolver ¶
type CheckConfigMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
CheckConfigMetadataFieldResolver implement to resolve requests for the CheckConfig's metadata field.
type CheckConfigNameFieldResolver ¶
type CheckConfigNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
CheckConfigNameFieldResolver implement to resolve requests for the CheckConfig's name field.
type CheckConfigNamespaceFieldResolver ¶
type CheckConfigNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
CheckConfigNamespaceFieldResolver implement to resolve requests for the CheckConfig's namespace field.
type CheckConfigOutputMetricFormatFieldResolver ¶
type CheckConfigOutputMetricFormatFieldResolver interface { // OutputMetricFormat implements response to request for outputMetricFormat field. OutputMetricFormat(p graphql.ResolveParams) (string, error) }
CheckConfigOutputMetricFormatFieldResolver implement to resolve requests for the CheckConfig's outputMetricFormat field.
type CheckConfigOutputMetricHandlersFieldResolver ¶
type CheckConfigOutputMetricHandlersFieldResolver interface { // OutputMetricHandlers implements response to request for outputMetricHandlers field. OutputMetricHandlers(p graphql.ResolveParams) (interface{}, error) }
CheckConfigOutputMetricHandlersFieldResolver implement to resolve requests for the CheckConfig's outputMetricHandlers field.
type CheckConfigProxyEntityNameFieldResolver ¶
type CheckConfigProxyEntityNameFieldResolver interface { // ProxyEntityName implements response to request for proxyEntityName field. ProxyEntityName(p graphql.ResolveParams) (string, error) }
CheckConfigProxyEntityNameFieldResolver implement to resolve requests for the CheckConfig's proxyEntityName field.
type CheckConfigProxyRequestsFieldResolver ¶
type CheckConfigProxyRequestsFieldResolver interface { // ProxyRequests implements response to request for proxyRequests field. ProxyRequests(p graphql.ResolveParams) (interface{}, error) }
CheckConfigProxyRequestsFieldResolver implement to resolve requests for the CheckConfig's proxyRequests field.
type CheckConfigPublishFieldResolver ¶
type CheckConfigPublishFieldResolver interface { // Publish implements response to request for publish field. Publish(p graphql.ResolveParams) (bool, error) }
CheckConfigPublishFieldResolver implement to resolve requests for the CheckConfig's publish field.
type CheckConfigRoundRobinFieldResolver ¶
type CheckConfigRoundRobinFieldResolver interface { // RoundRobin implements response to request for roundRobin field. RoundRobin(p graphql.ResolveParams) (bool, error) }
CheckConfigRoundRobinFieldResolver implement to resolve requests for the CheckConfig's roundRobin field.
type CheckConfigRuntimeAssetsFieldResolver ¶
type CheckConfigRuntimeAssetsFieldResolver interface { // RuntimeAssets implements response to request for runtimeAssets field. RuntimeAssets(p graphql.ResolveParams) (interface{}, error) }
CheckConfigRuntimeAssetsFieldResolver implement to resolve requests for the CheckConfig's runtimeAssets field.
type CheckConfigSilencesFieldResolver ¶
type CheckConfigSilencesFieldResolver interface { // Silences implements response to request for silences field. Silences(p graphql.ResolveParams) (interface{}, error) }
CheckConfigSilencesFieldResolver implement to resolve requests for the CheckConfig's silences field.
type CheckConfigStdinFieldResolver ¶
type CheckConfigStdinFieldResolver interface { // Stdin implements response to request for stdin field. Stdin(p graphql.ResolveParams) (bool, error) }
CheckConfigStdinFieldResolver implement to resolve requests for the CheckConfig's stdin field.
type CheckConfigSubdueFieldResolver ¶
type CheckConfigSubdueFieldResolver interface { // Subdue implements response to request for subdue field. Subdue(p graphql.ResolveParams) (interface{}, error) }
CheckConfigSubdueFieldResolver implement to resolve requests for the CheckConfig's subdue field.
type CheckConfigSubscriptionsFieldResolver ¶
type CheckConfigSubscriptionsFieldResolver interface { // Subscriptions implements response to request for subscriptions field. Subscriptions(p graphql.ResolveParams) ([]string, error) }
CheckConfigSubscriptionsFieldResolver implement to resolve requests for the CheckConfig's subscriptions field.
type CheckConfigTimeoutFieldResolver ¶
type CheckConfigTimeoutFieldResolver interface { // Timeout implements response to request for timeout field. Timeout(p graphql.ResolveParams) (int, error) }
CheckConfigTimeoutFieldResolver implement to resolve requests for the CheckConfig's timeout field.
type CheckConfigToJSONFieldResolver ¶
type CheckConfigToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
CheckConfigToJSONFieldResolver implement to resolve requests for the CheckConfig's toJSON field.
type CheckConfigTtlFieldResolver ¶
type CheckConfigTtlFieldResolver interface { // Ttl implements response to request for ttl field. Ttl(p graphql.ResolveParams) (int, error) }
CheckConfigTtlFieldResolver implement to resolve requests for the CheckConfig's ttl field.
type CheckCronFieldResolver ¶
type CheckCronFieldResolver interface { // Cron implements response to request for cron field. Cron(p graphql.ResolveParams) (string, error) }
CheckCronFieldResolver implement to resolve requests for the Check's cron field.
type CheckDurationFieldResolver ¶
type CheckDurationFieldResolver interface { // Duration implements response to request for duration field. Duration(p graphql.ResolveParams) (float64, error) }
CheckDurationFieldResolver implement to resolve requests for the Check's duration field.
type CheckEnvVarsFieldResolver ¶
type CheckEnvVarsFieldResolver interface { // EnvVars implements response to request for envVars field. EnvVars(p graphql.ResolveParams) ([]string, error) }
CheckEnvVarsFieldResolver implement to resolve requests for the Check's envVars field.
type CheckExecutedFieldResolver ¶
type CheckExecutedFieldResolver interface { // Executed implements response to request for executed field. Executed(p graphql.ResolveParams) (time.Time, error) }
CheckExecutedFieldResolver implement to resolve requests for the Check's executed field.
type CheckExtendedAttributesFieldResolver ¶
type CheckExtendedAttributesFieldResolver interface { // ExtendedAttributes implements response to request for extendedAttributes field. ExtendedAttributes(p graphql.ResolveParams) (interface{}, error) }
CheckExtendedAttributesFieldResolver implement to resolve requests for the Check's extendedAttributes field.
type CheckFieldResolvers ¶
type CheckFieldResolvers interface { CheckNodeIDFieldResolver CheckNameFieldResolver CheckMetadataFieldResolver CheckCommandFieldResolver CheckCheckHooksFieldResolver CheckEnvVarsFieldResolver CheckExtendedAttributesFieldResolver CheckHandlersFieldResolver CheckHighFlapThresholdFieldResolver CheckIntervalFieldResolver CheckCronFieldResolver CheckLowFlapThresholdFieldResolver CheckOutputMetricFormatFieldResolver CheckOutputMetricHandlersFieldResolver CheckProxyEntityNameFieldResolver CheckProxyRequestsFieldResolver CheckPublishFieldResolver CheckRuntimeAssetsFieldResolver CheckRoundRobinFieldResolver CheckSubscriptionsFieldResolver CheckStdinFieldResolver CheckSubdueFieldResolver CheckDurationFieldResolver CheckExecutedFieldResolver CheckHistoryFieldResolver CheckIssuedFieldResolver CheckOutputFieldResolver CheckStateFieldResolver CheckStatusFieldResolver CheckTotalStateChangeFieldResolver CheckHooksFieldResolver CheckSilencedFieldResolver CheckIsSilencedFieldResolver CheckSilencesFieldResolver CheckLastOKFieldResolver CheckOccurrencesFieldResolver CheckOccurrencesWatermarkFieldResolver CheckTimeoutFieldResolver CheckTtlFieldResolver CheckToJSONFieldResolver }
CheckFieldResolvers represents a collection of methods whose products represent the response values of the 'Check' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type CheckHandlersFieldResolver ¶
type CheckHandlersFieldResolver interface { // Handlers implements response to request for handlers field. Handlers(p graphql.ResolveParams) (interface{}, error) }
CheckHandlersFieldResolver implement to resolve requests for the Check's handlers field.
type CheckHighFlapThresholdFieldResolver ¶
type CheckHighFlapThresholdFieldResolver interface { // HighFlapThreshold implements response to request for highFlapThreshold field. HighFlapThreshold(p graphql.ResolveParams) (int, error) }
CheckHighFlapThresholdFieldResolver implement to resolve requests for the Check's highFlapThreshold field.
type CheckHistoryAliases ¶
type CheckHistoryAliases struct{}
CheckHistoryAliases implements all methods on CheckHistoryFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (CheckHistoryAliases) Executed ¶
func (_ CheckHistoryAliases) Executed(p graphql.ResolveParams) (time.Time, error)
Executed implements response to request for 'executed' field.
func (CheckHistoryAliases) Status ¶
func (_ CheckHistoryAliases) Status(p graphql.ResolveParams) (interface{}, error)
Status implements response to request for 'status' field.
type CheckHistoryExecutedFieldResolver ¶
type CheckHistoryExecutedFieldResolver interface { // Executed implements response to request for executed field. Executed(p graphql.ResolveParams) (time.Time, error) }
CheckHistoryExecutedFieldResolver implement to resolve requests for the CheckHistory's executed field.
type CheckHistoryFieldResolver ¶
type CheckHistoryFieldResolver interface { // History implements response to request for history field. History(p CheckHistoryFieldResolverParams) (interface{}, error) }
CheckHistoryFieldResolver implement to resolve requests for the Check's history field.
type CheckHistoryFieldResolverArgs ¶
type CheckHistoryFieldResolverArgs struct {
First int // First - self descriptive
}
CheckHistoryFieldResolverArgs contains arguments provided to history when selected
type CheckHistoryFieldResolverParams ¶
type CheckHistoryFieldResolverParams struct { graphql.ResolveParams Args CheckHistoryFieldResolverArgs }
CheckHistoryFieldResolverParams contains contextual info to resolve history field
type CheckHistoryFieldResolvers ¶
type CheckHistoryFieldResolvers interface { CheckHistoryStatusFieldResolver CheckHistoryExecutedFieldResolver }
CheckHistoryFieldResolvers represents a collection of methods whose products represent the response values of the 'CheckHistory' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type CheckHistoryStatusFieldResolver ¶
type CheckHistoryStatusFieldResolver interface { // Status implements response to request for status field. Status(p graphql.ResolveParams) (interface{}, error) }
CheckHistoryStatusFieldResolver implement to resolve requests for the CheckHistory's status field.
type CheckHooksFieldResolver ¶
type CheckHooksFieldResolver interface { // Hooks implements response to request for hooks field. Hooks(p graphql.ResolveParams) (interface{}, error) }
CheckHooksFieldResolver implement to resolve requests for the Check's hooks field.
type CheckIntervalFieldResolver ¶
type CheckIntervalFieldResolver interface { // Interval implements response to request for interval field. Interval(p graphql.ResolveParams) (int, error) }
CheckIntervalFieldResolver implement to resolve requests for the Check's interval field.
type CheckIsSilencedFieldResolver ¶
type CheckIsSilencedFieldResolver interface { // IsSilenced implements response to request for isSilenced field. IsSilenced(p graphql.ResolveParams) (bool, error) }
CheckIsSilencedFieldResolver implement to resolve requests for the Check's isSilenced field.
type CheckIssuedFieldResolver ¶
type CheckIssuedFieldResolver interface { // Issued implements response to request for issued field. Issued(p graphql.ResolveParams) (time.Time, error) }
CheckIssuedFieldResolver implement to resolve requests for the Check's issued field.
type CheckLastOKFieldResolver ¶
type CheckLastOKFieldResolver interface { // LastOK implements response to request for lastOK field. LastOK(p graphql.ResolveParams) (*time.Time, error) }
CheckLastOKFieldResolver implement to resolve requests for the Check's lastOK field.
type CheckListOrder ¶
type CheckListOrder string
CheckListOrder Describes ways in which a list of checks can be ordered.
type CheckLowFlapThresholdFieldResolver ¶
type CheckLowFlapThresholdFieldResolver interface { // LowFlapThreshold implements response to request for lowFlapThreshold field. LowFlapThreshold(p graphql.ResolveParams) (int, error) }
CheckLowFlapThresholdFieldResolver implement to resolve requests for the Check's lowFlapThreshold field.
type CheckMetadataFieldResolver ¶
type CheckMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
CheckMetadataFieldResolver implement to resolve requests for the Check's metadata field.
type CheckNameFieldResolver ¶
type CheckNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
CheckNameFieldResolver implement to resolve requests for the Check's name field.
type CheckNodeIDFieldResolver ¶
type CheckNodeIDFieldResolver interface { // NodeID implements response to request for nodeId field. NodeID(p graphql.ResolveParams) (string, error) }
CheckNodeIDFieldResolver implement to resolve requests for the Check's nodeId field.
type CheckOccurrencesFieldResolver ¶
type CheckOccurrencesFieldResolver interface { // Occurrences implements response to request for occurrences field. Occurrences(p graphql.ResolveParams) (int, error) }
CheckOccurrencesFieldResolver implement to resolve requests for the Check's occurrences field.
type CheckOccurrencesWatermarkFieldResolver ¶
type CheckOccurrencesWatermarkFieldResolver interface { // OccurrencesWatermark implements response to request for occurrencesWatermark field. OccurrencesWatermark(p graphql.ResolveParams) (int, error) }
CheckOccurrencesWatermarkFieldResolver implement to resolve requests for the Check's occurrencesWatermark field.
type CheckOutputFieldResolver ¶
type CheckOutputFieldResolver interface { // Output implements response to request for output field. Output(p graphql.ResolveParams) (string, error) }
CheckOutputFieldResolver implement to resolve requests for the Check's output field.
type CheckOutputMetricFormatFieldResolver ¶
type CheckOutputMetricFormatFieldResolver interface { // OutputMetricFormat implements response to request for outputMetricFormat field. OutputMetricFormat(p graphql.ResolveParams) (string, error) }
CheckOutputMetricFormatFieldResolver implement to resolve requests for the Check's outputMetricFormat field.
type CheckOutputMetricHandlersFieldResolver ¶
type CheckOutputMetricHandlersFieldResolver interface { // OutputMetricHandlers implements response to request for outputMetricHandlers field. OutputMetricHandlers(p graphql.ResolveParams) (interface{}, error) }
CheckOutputMetricHandlersFieldResolver implement to resolve requests for the Check's outputMetricHandlers field.
type CheckProxyEntityNameFieldResolver ¶
type CheckProxyEntityNameFieldResolver interface { // ProxyEntityName implements response to request for proxyEntityName field. ProxyEntityName(p graphql.ResolveParams) (string, error) }
CheckProxyEntityNameFieldResolver implement to resolve requests for the Check's proxyEntityName field.
type CheckProxyRequestsFieldResolver ¶
type CheckProxyRequestsFieldResolver interface { // ProxyRequests implements response to request for proxyRequests field. ProxyRequests(p graphql.ResolveParams) (interface{}, error) }
CheckProxyRequestsFieldResolver implement to resolve requests for the Check's proxyRequests field.
type CheckPublishFieldResolver ¶
type CheckPublishFieldResolver interface { // Publish implements response to request for publish field. Publish(p graphql.ResolveParams) (bool, error) }
CheckPublishFieldResolver implement to resolve requests for the Check's publish field.
type CheckRoundRobinFieldResolver ¶
type CheckRoundRobinFieldResolver interface { // RoundRobin implements response to request for roundRobin field. RoundRobin(p graphql.ResolveParams) (bool, error) }
CheckRoundRobinFieldResolver implement to resolve requests for the Check's roundRobin field.
type CheckRuntimeAssetsFieldResolver ¶
type CheckRuntimeAssetsFieldResolver interface { // RuntimeAssets implements response to request for runtimeAssets field. RuntimeAssets(p graphql.ResolveParams) (interface{}, error) }
CheckRuntimeAssetsFieldResolver implement to resolve requests for the Check's runtimeAssets field.
type CheckSilencedFieldResolver ¶
type CheckSilencedFieldResolver interface { // Silenced implements response to request for silenced field. Silenced(p graphql.ResolveParams) ([]string, error) }
CheckSilencedFieldResolver implement to resolve requests for the Check's silenced field.
type CheckSilencesFieldResolver ¶
type CheckSilencesFieldResolver interface { // Silences implements response to request for silences field. Silences(p graphql.ResolveParams) (interface{}, error) }
CheckSilencesFieldResolver implement to resolve requests for the Check's silences field.
type CheckStateFieldResolver ¶
type CheckStateFieldResolver interface { // State implements response to request for state field. State(p graphql.ResolveParams) (string, error) }
CheckStateFieldResolver implement to resolve requests for the Check's state field.
type CheckStatusFieldResolver ¶
type CheckStatusFieldResolver interface { // Status implements response to request for status field. Status(p graphql.ResolveParams) (interface{}, error) }
CheckStatusFieldResolver implement to resolve requests for the Check's status field.
type CheckStdinFieldResolver ¶
type CheckStdinFieldResolver interface { // Stdin implements response to request for stdin field. Stdin(p graphql.ResolveParams) (bool, error) }
CheckStdinFieldResolver implement to resolve requests for the Check's stdin field.
type CheckSubdueFieldResolver ¶
type CheckSubdueFieldResolver interface { // Subdue implements response to request for subdue field. Subdue(p graphql.ResolveParams) (interface{}, error) }
CheckSubdueFieldResolver implement to resolve requests for the Check's subdue field.
type CheckSubscriptionsFieldResolver ¶
type CheckSubscriptionsFieldResolver interface { // Subscriptions implements response to request for subscriptions field. Subscriptions(p graphql.ResolveParams) ([]string, error) }
CheckSubscriptionsFieldResolver implement to resolve requests for the Check's subscriptions field.
type CheckTimeoutFieldResolver ¶
type CheckTimeoutFieldResolver interface { // Timeout implements response to request for timeout field. Timeout(p graphql.ResolveParams) (int, error) }
CheckTimeoutFieldResolver implement to resolve requests for the Check's timeout field.
type CheckToJSONFieldResolver ¶
type CheckToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
CheckToJSONFieldResolver implement to resolve requests for the Check's toJSON field.
type CheckTotalStateChangeFieldResolver ¶
type CheckTotalStateChangeFieldResolver interface { // TotalStateChange implements response to request for totalStateChange field. TotalStateChange(p graphql.ResolveParams) (int, error) }
CheckTotalStateChangeFieldResolver implement to resolve requests for the Check's totalStateChange field.
type CheckTtlFieldResolver ¶
type CheckTtlFieldResolver interface { // Ttl implements response to request for ttl field. Ttl(p graphql.ResolveParams) (int, error) }
CheckTtlFieldResolver implement to resolve requests for the Check's ttl field.
type ClusterRoleAliases ¶
type ClusterRoleAliases struct{}
ClusterRoleAliases implements all methods on ClusterRoleFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (ClusterRoleAliases) Name ¶
func (_ ClusterRoleAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (ClusterRoleAliases) Rules ¶
func (_ ClusterRoleAliases) Rules(p graphql.ResolveParams) (interface{}, error)
Rules implements response to request for 'rules' field.
type ClusterRoleBindingAliases ¶
type ClusterRoleBindingAliases struct{}
ClusterRoleBindingAliases implements all methods on ClusterRoleBindingFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (ClusterRoleBindingAliases) Name ¶
func (_ ClusterRoleBindingAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (ClusterRoleBindingAliases) RoleRef ¶
func (_ ClusterRoleBindingAliases) RoleRef(p graphql.ResolveParams) (interface{}, error)
RoleRef implements response to request for 'roleRef' field.
func (ClusterRoleBindingAliases) Subjects ¶
func (_ ClusterRoleBindingAliases) Subjects(p graphql.ResolveParams) (interface{}, error)
Subjects implements response to request for 'subjects' field.
type ClusterRoleBindingFieldResolvers ¶
type ClusterRoleBindingFieldResolvers interface { ClusterRoleBindingSubjectsFieldResolver ClusterRoleBindingRoleRefFieldResolver ClusterRoleBindingNameFieldResolver }
ClusterRoleBindingFieldResolvers represents a collection of methods whose products represent the response values of the 'ClusterRoleBinding' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type ClusterRoleBindingNameFieldResolver ¶
type ClusterRoleBindingNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
ClusterRoleBindingNameFieldResolver implement to resolve requests for the ClusterRoleBinding's name field.
type ClusterRoleBindingRoleRefFieldResolver ¶
type ClusterRoleBindingRoleRefFieldResolver interface { // RoleRef implements response to request for roleRef field. RoleRef(p graphql.ResolveParams) (interface{}, error) }
ClusterRoleBindingRoleRefFieldResolver implement to resolve requests for the ClusterRoleBinding's roleRef field.
type ClusterRoleBindingSubjectsFieldResolver ¶
type ClusterRoleBindingSubjectsFieldResolver interface { // Subjects implements response to request for subjects field. Subjects(p graphql.ResolveParams) (interface{}, error) }
ClusterRoleBindingSubjectsFieldResolver implement to resolve requests for the ClusterRoleBinding's subjects field.
type ClusterRoleFieldResolvers ¶
type ClusterRoleFieldResolvers interface { ClusterRoleRulesFieldResolver ClusterRoleNameFieldResolver }
ClusterRoleFieldResolvers represents a collection of methods whose products represent the response values of the 'ClusterRole' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type ClusterRoleNameFieldResolver ¶
type ClusterRoleNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
ClusterRoleNameFieldResolver implement to resolve requests for the ClusterRole's name field.
type ClusterRoleRulesFieldResolver ¶
type ClusterRoleRulesFieldResolver interface { // Rules implements response to request for rules field. Rules(p graphql.ResolveParams) (interface{}, error) }
ClusterRoleRulesFieldResolver implement to resolve requests for the ClusterRole's rules field.
type CreateCheckInput ¶
type CreateCheckInput struct { // ClientMutationID - A unique identifier for the client performing the mutation. ClientMutationID string // Namespace - namespace the resulting resource will belong to. Namespace string // Name - name of the resulting check. Name string // Props - properties of the check Props *CheckConfigInputs }
CreateCheckInput self descriptive
type CreateCheckPayloadAliases ¶
type CreateCheckPayloadAliases struct{}
CreateCheckPayloadAliases implements all methods on CreateCheckPayloadFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (CreateCheckPayloadAliases) Check ¶
func (_ CreateCheckPayloadAliases) Check(p graphql.ResolveParams) (interface{}, error)
Check implements response to request for 'check' field.
func (CreateCheckPayloadAliases) ClientMutationID ¶
func (_ CreateCheckPayloadAliases) ClientMutationID(p graphql.ResolveParams) (string, error)
ClientMutationID implements response to request for 'clientMutationId' field.
type CreateCheckPayloadCheckFieldResolver ¶
type CreateCheckPayloadCheckFieldResolver interface { // Check implements response to request for check field. Check(p graphql.ResolveParams) (interface{}, error) }
CreateCheckPayloadCheckFieldResolver implement to resolve requests for the CreateCheckPayload's check field.
type CreateCheckPayloadClientMutationIDFieldResolver ¶
type CreateCheckPayloadClientMutationIDFieldResolver interface { // ClientMutationID implements response to request for clientMutationId field. ClientMutationID(p graphql.ResolveParams) (string, error) }
CreateCheckPayloadClientMutationIDFieldResolver implement to resolve requests for the CreateCheckPayload's clientMutationId field.
type CreateCheckPayloadFieldResolvers ¶
type CreateCheckPayloadFieldResolvers interface { CreateCheckPayloadClientMutationIDFieldResolver CreateCheckPayloadCheckFieldResolver }
CreateCheckPayloadFieldResolvers represents a collection of methods whose products represent the response values of the 'CreateCheckPayload' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type CreateSilenceInput ¶
type CreateSilenceInput struct { // ClientMutationID - A unique identifier for the client performing the mutation. ClientMutationID string // Namespace - namespace the resulting resource will belong to. Namespace string // Check - check associated with the silenced entry; optional. Check string // Subscription - subscription associated with the silenced entry; optional. Subscription string // Props - properties of the silence Props *SilenceInputs }
CreateSilenceInput self descriptive
type CreateSilencePayloadAliases ¶
type CreateSilencePayloadAliases struct{}
CreateSilencePayloadAliases implements all methods on CreateSilencePayloadFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (CreateSilencePayloadAliases) ClientMutationID ¶
func (_ CreateSilencePayloadAliases) ClientMutationID(p graphql.ResolveParams) (string, error)
ClientMutationID implements response to request for 'clientMutationId' field.
func (CreateSilencePayloadAliases) Silence ¶
func (_ CreateSilencePayloadAliases) Silence(p graphql.ResolveParams) (interface{}, error)
Silence implements response to request for 'silence' field.
type CreateSilencePayloadClientMutationIDFieldResolver ¶
type CreateSilencePayloadClientMutationIDFieldResolver interface { // ClientMutationID implements response to request for clientMutationId field. ClientMutationID(p graphql.ResolveParams) (string, error) }
CreateSilencePayloadClientMutationIDFieldResolver implement to resolve requests for the CreateSilencePayload's clientMutationId field.
type CreateSilencePayloadFieldResolvers ¶
type CreateSilencePayloadFieldResolvers interface { CreateSilencePayloadClientMutationIDFieldResolver CreateSilencePayloadSilenceFieldResolver }
CreateSilencePayloadFieldResolvers represents a collection of methods whose products represent the response values of the 'CreateSilencePayload' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type CreateSilencePayloadSilenceFieldResolver ¶
type CreateSilencePayloadSilenceFieldResolver interface { // Silence implements response to request for silence field. Silence(p graphql.ResolveParams) (interface{}, error) }
CreateSilencePayloadSilenceFieldResolver implement to resolve requests for the CreateSilencePayload's silence field.
type DeleteRecordInput ¶
type DeleteRecordInput struct { // ClientMutationID - A unique identifier for the client performing the mutation. ClientMutationID string // ID - Global ID of the check to update. ID string }
DeleteRecordInput Generic input used when deleting records.
type DeleteRecordPayloadAliases ¶
type DeleteRecordPayloadAliases struct{}
DeleteRecordPayloadAliases implements all methods on DeleteRecordPayloadFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (DeleteRecordPayloadAliases) ClientMutationID ¶
func (_ DeleteRecordPayloadAliases) ClientMutationID(p graphql.ResolveParams) (string, error)
ClientMutationID implements response to request for 'clientMutationId' field.
func (DeleteRecordPayloadAliases) DeletedID ¶
func (_ DeleteRecordPayloadAliases) DeletedID(p graphql.ResolveParams) (string, error)
DeletedID implements response to request for 'deletedId' field.
type DeleteRecordPayloadClientMutationIDFieldResolver ¶
type DeleteRecordPayloadClientMutationIDFieldResolver interface { // ClientMutationID implements response to request for clientMutationId field. ClientMutationID(p graphql.ResolveParams) (string, error) }
DeleteRecordPayloadClientMutationIDFieldResolver implement to resolve requests for the DeleteRecordPayload's clientMutationId field.
type DeleteRecordPayloadDeletedIDFieldResolver ¶
type DeleteRecordPayloadDeletedIDFieldResolver interface { // DeletedID implements response to request for deletedId field. DeletedID(p graphql.ResolveParams) (string, error) }
DeleteRecordPayloadDeletedIDFieldResolver implement to resolve requests for the DeleteRecordPayload's deletedId field.
type DeleteRecordPayloadFieldResolvers ¶
type DeleteRecordPayloadFieldResolvers interface { DeleteRecordPayloadClientMutationIDFieldResolver DeleteRecordPayloadDeletedIDFieldResolver }
DeleteRecordPayloadFieldResolvers represents a collection of methods whose products represent the response values of the 'DeleteRecordPayload' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type DeregistrationAliases ¶
type DeregistrationAliases struct{}
DeregistrationAliases implements all methods on DeregistrationFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (DeregistrationAliases) Handler ¶
func (_ DeregistrationAliases) Handler(p graphql.ResolveParams) (string, error)
Handler implements response to request for 'handler' field.
type DeregistrationFieldResolvers ¶
type DeregistrationFieldResolvers interface { DeregistrationHandlerFieldResolver }
DeregistrationFieldResolvers represents a collection of methods whose products represent the response values of the 'Deregistration' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type DeregistrationHandlerFieldResolver ¶
type DeregistrationHandlerFieldResolver interface { // Handler implements response to request for handler field. Handler(p graphql.ResolveParams) (string, error) }
DeregistrationHandlerFieldResolver implement to resolve requests for the Deregistration's handler field.
type EntityAliases ¶
type EntityAliases struct{}
EntityAliases implements all methods on EntityFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (EntityAliases) Deregister ¶
func (_ EntityAliases) Deregister(p graphql.ResolveParams) (bool, error)
Deregister implements response to request for 'deregister' field.
func (EntityAliases) Deregistration ¶
func (_ EntityAliases) Deregistration(p graphql.ResolveParams) (interface{}, error)
Deregistration implements response to request for 'deregistration' field.
func (EntityAliases) EntityClass ¶
func (_ EntityAliases) EntityClass(p graphql.ResolveParams) (string, error)
EntityClass implements response to request for 'entityClass' field.
func (EntityAliases) Events ¶
func (_ EntityAliases) Events(p EntityEventsFieldResolverParams) (interface{}, error)
Events implements response to request for 'events' field.
func (EntityAliases) ExtendedAttributes ¶
func (_ EntityAliases) ExtendedAttributes(p graphql.ResolveParams) (interface{}, error)
ExtendedAttributes implements response to request for 'extendedAttributes' field.
func (EntityAliases) ID ¶
func (_ EntityAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (EntityAliases) IsSilenced ¶
func (_ EntityAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
IsSilenced implements response to request for 'isSilenced' field.
func (EntityAliases) LastSeen ¶
func (_ EntityAliases) LastSeen(p graphql.ResolveParams) (*time.Time, error)
LastSeen implements response to request for 'lastSeen' field.
func (EntityAliases) Metadata ¶
func (_ EntityAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (EntityAliases) Name ¶
func (_ EntityAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (EntityAliases) Namespace ¶
func (_ EntityAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (EntityAliases) Redact ¶
func (_ EntityAliases) Redact(p graphql.ResolveParams) ([]string, error)
Redact implements response to request for 'redact' field.
func (EntityAliases) Related ¶
func (_ EntityAliases) Related(p EntityRelatedFieldResolverParams) (interface{}, error)
Related implements response to request for 'related' field.
func (EntityAliases) Silences ¶
func (_ EntityAliases) Silences(p graphql.ResolveParams) (interface{}, error)
Silences implements response to request for 'silences' field.
func (EntityAliases) Status ¶
func (_ EntityAliases) Status(p graphql.ResolveParams) (interface{}, error)
Status implements response to request for 'status' field.
func (EntityAliases) Subscriptions ¶
func (_ EntityAliases) Subscriptions(p graphql.ResolveParams) ([]string, error)
Subscriptions implements response to request for 'subscriptions' field.
func (EntityAliases) System ¶
func (_ EntityAliases) System(p graphql.ResolveParams) (interface{}, error)
System implements response to request for 'system' field.
func (EntityAliases) ToJSON ¶
func (_ EntityAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
func (EntityAliases) User ¶
func (_ EntityAliases) User(p graphql.ResolveParams) (string, error)
User implements response to request for 'user' field.
type EntityConnectionAliases ¶
type EntityConnectionAliases struct{}
EntityConnectionAliases implements all methods on EntityConnectionFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (EntityConnectionAliases) Nodes ¶
func (_ EntityConnectionAliases) Nodes(p graphql.ResolveParams) (interface{}, error)
Nodes implements response to request for 'nodes' field.
func (EntityConnectionAliases) PageInfo ¶
func (_ EntityConnectionAliases) PageInfo(p graphql.ResolveParams) (interface{}, error)
PageInfo implements response to request for 'pageInfo' field.
type EntityConnectionFieldResolvers ¶
type EntityConnectionFieldResolvers interface { EntityConnectionNodesFieldResolver EntityConnectionPageInfoFieldResolver }
EntityConnectionFieldResolvers represents a collection of methods whose products represent the response values of the 'EntityConnection' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type EntityConnectionNodesFieldResolver ¶
type EntityConnectionNodesFieldResolver interface { // Nodes implements response to request for nodes field. Nodes(p graphql.ResolveParams) (interface{}, error) }
EntityConnectionNodesFieldResolver implement to resolve requests for the EntityConnection's nodes field.
type EntityConnectionPageInfoFieldResolver ¶
type EntityConnectionPageInfoFieldResolver interface { // PageInfo implements response to request for pageInfo field. PageInfo(p graphql.ResolveParams) (interface{}, error) }
EntityConnectionPageInfoFieldResolver implement to resolve requests for the EntityConnection's pageInfo field.
type EntityDeregisterFieldResolver ¶
type EntityDeregisterFieldResolver interface { // Deregister implements response to request for deregister field. Deregister(p graphql.ResolveParams) (bool, error) }
EntityDeregisterFieldResolver implement to resolve requests for the Entity's deregister field.
type EntityDeregistrationFieldResolver ¶
type EntityDeregistrationFieldResolver interface { // Deregistration implements response to request for deregistration field. Deregistration(p graphql.ResolveParams) (interface{}, error) }
EntityDeregistrationFieldResolver implement to resolve requests for the Entity's deregistration field.
type EntityEntityClassFieldResolver ¶
type EntityEntityClassFieldResolver interface { // EntityClass implements response to request for entityClass field. EntityClass(p graphql.ResolveParams) (string, error) }
EntityEntityClassFieldResolver implement to resolve requests for the Entity's entityClass field.
type EntityEventsFieldResolver ¶
type EntityEventsFieldResolver interface { // Events implements response to request for events field. Events(p EntityEventsFieldResolverParams) (interface{}, error) }
EntityEventsFieldResolver implement to resolve requests for the Entity's events field.
type EntityEventsFieldResolverArgs ¶
type EntityEventsFieldResolverArgs struct { OrderBy EventsListOrder // OrderBy adds optional order to the records retrieved. Filters []string /* Filters reduces the set using given arbitrary expression[s]; expressions take on the form KEY: VALUE. The accepted key(s) are: status, check, entity, & silenced. Eg. status:passing status:warning status:incident check:check-disk entity:venice silenced:true */ }
EntityEventsFieldResolverArgs contains arguments provided to events when selected
type EntityEventsFieldResolverParams ¶
type EntityEventsFieldResolverParams struct { graphql.ResolveParams Args EntityEventsFieldResolverArgs }
EntityEventsFieldResolverParams contains contextual info to resolve events field
type EntityExtendedAttributesFieldResolver ¶
type EntityExtendedAttributesFieldResolver interface { // ExtendedAttributes implements response to request for extendedAttributes field. ExtendedAttributes(p graphql.ResolveParams) (interface{}, error) }
EntityExtendedAttributesFieldResolver implement to resolve requests for the Entity's extendedAttributes field.
type EntityFieldResolvers ¶
type EntityFieldResolvers interface { EntityIDFieldResolver EntityNamespaceFieldResolver EntityMetadataFieldResolver EntityNameFieldResolver EntityEntityClassFieldResolver EntitySystemFieldResolver EntitySubscriptionsFieldResolver EntityLastSeenFieldResolver EntityDeregisterFieldResolver EntityDeregistrationFieldResolver EntityUserFieldResolver EntityRedactFieldResolver EntityStatusFieldResolver EntityRelatedFieldResolver EntityEventsFieldResolver EntityIsSilencedFieldResolver EntitySilencesFieldResolver EntityExtendedAttributesFieldResolver EntityToJSONFieldResolver }
EntityFieldResolvers represents a collection of methods whose products represent the response values of the 'Entity' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type EntityIDFieldResolver ¶
type EntityIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
EntityIDFieldResolver implement to resolve requests for the Entity's id field.
type EntityIsSilencedFieldResolver ¶
type EntityIsSilencedFieldResolver interface { // IsSilenced implements response to request for isSilenced field. IsSilenced(p graphql.ResolveParams) (bool, error) }
EntityIsSilencedFieldResolver implement to resolve requests for the Entity's isSilenced field.
type EntityLastSeenFieldResolver ¶
type EntityLastSeenFieldResolver interface { // LastSeen implements response to request for lastSeen field. LastSeen(p graphql.ResolveParams) (*time.Time, error) }
EntityLastSeenFieldResolver implement to resolve requests for the Entity's lastSeen field.
type EntityListOrder ¶
type EntityListOrder string
EntityListOrder Describes ways in which a list of entities can be ordered.
type EntityMetadataFieldResolver ¶
type EntityMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
EntityMetadataFieldResolver implement to resolve requests for the Entity's metadata field.
type EntityNameFieldResolver ¶
type EntityNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
EntityNameFieldResolver implement to resolve requests for the Entity's name field.
type EntityNamespaceFieldResolver ¶
type EntityNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
EntityNamespaceFieldResolver implement to resolve requests for the Entity's namespace field.
type EntityRedactFieldResolver ¶
type EntityRedactFieldResolver interface { // Redact implements response to request for redact field. Redact(p graphql.ResolveParams) ([]string, error) }
EntityRedactFieldResolver implement to resolve requests for the Entity's redact field.
type EntityRelatedFieldResolver ¶
type EntityRelatedFieldResolver interface { // Related implements response to request for related field. Related(p EntityRelatedFieldResolverParams) (interface{}, error) }
EntityRelatedFieldResolver implement to resolve requests for the Entity's related field.
type EntityRelatedFieldResolverArgs ¶
type EntityRelatedFieldResolverArgs struct {
Limit int // Limit - self descriptive
}
EntityRelatedFieldResolverArgs contains arguments provided to related when selected
type EntityRelatedFieldResolverParams ¶
type EntityRelatedFieldResolverParams struct { graphql.ResolveParams Args EntityRelatedFieldResolverArgs }
EntityRelatedFieldResolverParams contains contextual info to resolve related field
type EntitySilencesFieldResolver ¶
type EntitySilencesFieldResolver interface { // Silences implements response to request for silences field. Silences(p graphql.ResolveParams) (interface{}, error) }
EntitySilencesFieldResolver implement to resolve requests for the Entity's silences field.
type EntityStatusFieldResolver ¶
type EntityStatusFieldResolver interface { // Status implements response to request for status field. Status(p graphql.ResolveParams) (interface{}, error) }
EntityStatusFieldResolver implement to resolve requests for the Entity's status field.
type EntitySubscriptionsFieldResolver ¶
type EntitySubscriptionsFieldResolver interface { // Subscriptions implements response to request for subscriptions field. Subscriptions(p graphql.ResolveParams) ([]string, error) }
EntitySubscriptionsFieldResolver implement to resolve requests for the Entity's subscriptions field.
type EntitySystemFieldResolver ¶
type EntitySystemFieldResolver interface { // System implements response to request for system field. System(p graphql.ResolveParams) (interface{}, error) }
EntitySystemFieldResolver implement to resolve requests for the Entity's system field.
type EntityToJSONFieldResolver ¶
type EntityToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
EntityToJSONFieldResolver implement to resolve requests for the Entity's toJSON field.
type EntityUserFieldResolver ¶
type EntityUserFieldResolver interface { // User implements response to request for user field. User(p graphql.ResolveParams) (string, error) }
EntityUserFieldResolver implement to resolve requests for the Entity's user field.
type EventAliases ¶
type EventAliases struct{}
EventAliases implements all methods on EventFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (EventAliases) Check ¶
func (_ EventAliases) Check(p graphql.ResolveParams) (interface{}, error)
Check implements response to request for 'check' field.
func (EventAliases) Entity ¶
func (_ EventAliases) Entity(p graphql.ResolveParams) (interface{}, error)
Entity implements response to request for 'entity' field.
func (EventAliases) Hooks ¶
func (_ EventAliases) Hooks(p graphql.ResolveParams) (interface{}, error)
Hooks implements response to request for 'hooks' field.
func (EventAliases) ID ¶
func (_ EventAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (EventAliases) IsIncident ¶
func (_ EventAliases) IsIncident(p graphql.ResolveParams) (bool, error)
IsIncident implements response to request for 'isIncident' field.
func (EventAliases) IsNewIncident ¶
func (_ EventAliases) IsNewIncident(p graphql.ResolveParams) (bool, error)
IsNewIncident implements response to request for 'isNewIncident' field.
func (EventAliases) IsResolution ¶
func (_ EventAliases) IsResolution(p graphql.ResolveParams) (bool, error)
IsResolution implements response to request for 'isResolution' field.
func (EventAliases) IsSilenced ¶
func (_ EventAliases) IsSilenced(p graphql.ResolveParams) (bool, error)
IsSilenced implements response to request for 'isSilenced' field.
func (EventAliases) Metadata ¶
func (_ EventAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (EventAliases) Namespace ¶
func (_ EventAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (EventAliases) Silenced ¶
func (_ EventAliases) Silenced(p graphql.ResolveParams) ([]string, error)
Silenced implements response to request for 'silenced' field.
func (EventAliases) Silences ¶
func (_ EventAliases) Silences(p graphql.ResolveParams) (interface{}, error)
Silences implements response to request for 'silences' field.
func (EventAliases) Timestamp ¶
func (_ EventAliases) Timestamp(p graphql.ResolveParams) (time.Time, error)
Timestamp implements response to request for 'timestamp' field.
func (EventAliases) ToJSON ¶
func (_ EventAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
func (EventAliases) WasSilenced ¶
func (_ EventAliases) WasSilenced(p graphql.ResolveParams) (bool, error)
WasSilenced implements response to request for 'wasSilenced' field.
type EventCheckFieldResolver ¶
type EventCheckFieldResolver interface { // Check implements response to request for check field. Check(p graphql.ResolveParams) (interface{}, error) }
EventCheckFieldResolver implement to resolve requests for the Event's check field.
type EventConnectionAliases ¶
type EventConnectionAliases struct{}
EventConnectionAliases implements all methods on EventConnectionFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (EventConnectionAliases) Nodes ¶
func (_ EventConnectionAliases) Nodes(p graphql.ResolveParams) (interface{}, error)
Nodes implements response to request for 'nodes' field.
func (EventConnectionAliases) PageInfo ¶
func (_ EventConnectionAliases) PageInfo(p graphql.ResolveParams) (interface{}, error)
PageInfo implements response to request for 'pageInfo' field.
type EventConnectionFieldResolvers ¶
type EventConnectionFieldResolvers interface { EventConnectionNodesFieldResolver EventConnectionPageInfoFieldResolver }
EventConnectionFieldResolvers represents a collection of methods whose products represent the response values of the 'EventConnection' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type EventConnectionNodesFieldResolver ¶
type EventConnectionNodesFieldResolver interface { // Nodes implements response to request for nodes field. Nodes(p graphql.ResolveParams) (interface{}, error) }
EventConnectionNodesFieldResolver implement to resolve requests for the EventConnection's nodes field.
type EventConnectionPageInfoFieldResolver ¶
type EventConnectionPageInfoFieldResolver interface { // PageInfo implements response to request for pageInfo field. PageInfo(p graphql.ResolveParams) (interface{}, error) }
EventConnectionPageInfoFieldResolver implement to resolve requests for the EventConnection's pageInfo field.
type EventEntityFieldResolver ¶
type EventEntityFieldResolver interface { // Entity implements response to request for entity field. Entity(p graphql.ResolveParams) (interface{}, error) }
EventEntityFieldResolver implement to resolve requests for the Event's entity field.
type EventFieldResolvers ¶
type EventFieldResolvers interface { EventIDFieldResolver EventNamespaceFieldResolver EventMetadataFieldResolver EventTimestampFieldResolver EventEntityFieldResolver EventCheckFieldResolver EventHooksFieldResolver EventIsIncidentFieldResolver EventIsNewIncidentFieldResolver EventIsResolutionFieldResolver EventWasSilencedFieldResolver EventIsSilencedFieldResolver EventSilencesFieldResolver EventSilencedFieldResolver EventToJSONFieldResolver }
EventFieldResolvers represents a collection of methods whose products represent the response values of the 'Event' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type EventHooksFieldResolver ¶
type EventHooksFieldResolver interface { // Hooks implements response to request for hooks field. Hooks(p graphql.ResolveParams) (interface{}, error) }
EventHooksFieldResolver implement to resolve requests for the Event's hooks field.
type EventIDFieldResolver ¶
type EventIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
EventIDFieldResolver implement to resolve requests for the Event's id field.
type EventIsIncidentFieldResolver ¶
type EventIsIncidentFieldResolver interface { // IsIncident implements response to request for isIncident field. IsIncident(p graphql.ResolveParams) (bool, error) }
EventIsIncidentFieldResolver implement to resolve requests for the Event's isIncident field.
type EventIsNewIncidentFieldResolver ¶
type EventIsNewIncidentFieldResolver interface { // IsNewIncident implements response to request for isNewIncident field. IsNewIncident(p graphql.ResolveParams) (bool, error) }
EventIsNewIncidentFieldResolver implement to resolve requests for the Event's isNewIncident field.
type EventIsResolutionFieldResolver ¶
type EventIsResolutionFieldResolver interface { // IsResolution implements response to request for isResolution field. IsResolution(p graphql.ResolveParams) (bool, error) }
EventIsResolutionFieldResolver implement to resolve requests for the Event's isResolution field.
type EventIsSilencedFieldResolver ¶
type EventIsSilencedFieldResolver interface { // IsSilenced implements response to request for isSilenced field. IsSilenced(p graphql.ResolveParams) (bool, error) }
EventIsSilencedFieldResolver implement to resolve requests for the Event's isSilenced field.
type EventMetadataFieldResolver ¶
type EventMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
EventMetadataFieldResolver implement to resolve requests for the Event's metadata field.
type EventNamespaceFieldResolver ¶
type EventNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
EventNamespaceFieldResolver implement to resolve requests for the Event's namespace field.
type EventSilencedFieldResolver ¶
type EventSilencedFieldResolver interface { // Silenced implements response to request for silenced field. Silenced(p graphql.ResolveParams) ([]string, error) }
EventSilencedFieldResolver implement to resolve requests for the Event's silenced field.
type EventSilencesFieldResolver ¶
type EventSilencesFieldResolver interface { // Silences implements response to request for silences field. Silences(p graphql.ResolveParams) (interface{}, error) }
EventSilencesFieldResolver implement to resolve requests for the Event's silences field.
type EventTimestampFieldResolver ¶
type EventTimestampFieldResolver interface { // Timestamp implements response to request for timestamp field. Timestamp(p graphql.ResolveParams) (time.Time, error) }
EventTimestampFieldResolver implement to resolve requests for the Event's timestamp field.
type EventToJSONFieldResolver ¶
type EventToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
EventToJSONFieldResolver implement to resolve requests for the Event's toJSON field.
type EventWasSilencedFieldResolver ¶
type EventWasSilencedFieldResolver interface { // WasSilenced implements response to request for wasSilenced field. WasSilenced(p graphql.ResolveParams) (bool, error) }
EventWasSilencedFieldResolver implement to resolve requests for the Event's wasSilenced field.
type EventsListOrder ¶
type EventsListOrder string
EventsListOrder Describes ways in which a list of events can be ordered.
type ExecuteCheckInput ¶
type ExecuteCheckInput struct { // ClientMutationID - A unique identifier for the client performing the mutation. ClientMutationID string // ID - Global ID of the check to update. ID string // Subscriptions is an optional list of subscriptions to target. Subscriptions []string // Reason is used to provide context to the adho request. Reason string }
ExecuteCheckInput self descriptive
type ExecuteCheckPayloadAliases ¶
type ExecuteCheckPayloadAliases struct{}
ExecuteCheckPayloadAliases implements all methods on ExecuteCheckPayloadFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (ExecuteCheckPayloadAliases) ClientMutationID ¶
func (_ ExecuteCheckPayloadAliases) ClientMutationID(p graphql.ResolveParams) (string, error)
ClientMutationID implements response to request for 'clientMutationId' field.
func (ExecuteCheckPayloadAliases) Errors ¶
func (_ ExecuteCheckPayloadAliases) Errors(p graphql.ResolveParams) (interface{}, error)
Errors implements response to request for 'errors' field.
type ExecuteCheckPayloadClientMutationIDFieldResolver ¶
type ExecuteCheckPayloadClientMutationIDFieldResolver interface { // ClientMutationID implements response to request for clientMutationId field. ClientMutationID(p graphql.ResolveParams) (string, error) }
ExecuteCheckPayloadClientMutationIDFieldResolver implement to resolve requests for the ExecuteCheckPayload's clientMutationId field.
type ExecuteCheckPayloadErrorsFieldResolver ¶
type ExecuteCheckPayloadErrorsFieldResolver interface { // Errors implements response to request for errors field. Errors(p graphql.ResolveParams) (interface{}, error) }
ExecuteCheckPayloadErrorsFieldResolver implement to resolve requests for the ExecuteCheckPayload's errors field.
type ExecuteCheckPayloadFieldResolvers ¶
type ExecuteCheckPayloadFieldResolvers interface { ExecuteCheckPayloadClientMutationIDFieldResolver ExecuteCheckPayloadErrorsFieldResolver }
ExecuteCheckPayloadFieldResolvers represents a collection of methods whose products represent the response values of the 'ExecuteCheckPayload' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HandlerAliases ¶
type HandlerAliases struct{}
HandlerAliases implements all methods on HandlerFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (HandlerAliases) Command ¶
func (_ HandlerAliases) Command(p graphql.ResolveParams) (string, error)
Command implements response to request for 'command' field.
func (HandlerAliases) EnvVars ¶
func (_ HandlerAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
EnvVars implements response to request for 'envVars' field.
func (HandlerAliases) Filters ¶
func (_ HandlerAliases) Filters(p graphql.ResolveParams) ([]string, error)
Filters implements response to request for 'filters' field.
func (HandlerAliases) Handlers ¶
func (_ HandlerAliases) Handlers(p graphql.ResolveParams) (interface{}, error)
Handlers implements response to request for 'handlers' field.
func (HandlerAliases) ID ¶
func (_ HandlerAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (HandlerAliases) Metadata ¶
func (_ HandlerAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (HandlerAliases) Mutator ¶
func (_ HandlerAliases) Mutator(p graphql.ResolveParams) (interface{}, error)
Mutator implements response to request for 'mutator' field.
func (HandlerAliases) Name ¶
func (_ HandlerAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (HandlerAliases) Namespace ¶
func (_ HandlerAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (HandlerAliases) Socket ¶
func (_ HandlerAliases) Socket(p graphql.ResolveParams) (interface{}, error)
Socket implements response to request for 'socket' field.
func (HandlerAliases) Timeout ¶
func (_ HandlerAliases) Timeout(p graphql.ResolveParams) (int, error)
Timeout implements response to request for 'timeout' field.
func (HandlerAliases) ToJSON ¶
func (_ HandlerAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
func (HandlerAliases) Type ¶
func (_ HandlerAliases) Type(p graphql.ResolveParams) (string, error)
Type implements response to request for 'type' field.
type HandlerCommandFieldResolver ¶
type HandlerCommandFieldResolver interface { // Command implements response to request for command field. Command(p graphql.ResolveParams) (string, error) }
HandlerCommandFieldResolver implement to resolve requests for the Handler's command field.
type HandlerConnectionAliases ¶
type HandlerConnectionAliases struct{}
HandlerConnectionAliases implements all methods on HandlerConnectionFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (HandlerConnectionAliases) Nodes ¶
func (_ HandlerConnectionAliases) Nodes(p graphql.ResolveParams) (interface{}, error)
Nodes implements response to request for 'nodes' field.
func (HandlerConnectionAliases) PageInfo ¶
func (_ HandlerConnectionAliases) PageInfo(p graphql.ResolveParams) (interface{}, error)
PageInfo implements response to request for 'pageInfo' field.
type HandlerConnectionFieldResolvers ¶
type HandlerConnectionFieldResolvers interface { HandlerConnectionNodesFieldResolver HandlerConnectionPageInfoFieldResolver }
HandlerConnectionFieldResolvers represents a collection of methods whose products represent the response values of the 'HandlerConnection' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HandlerConnectionNodesFieldResolver ¶
type HandlerConnectionNodesFieldResolver interface { // Nodes implements response to request for nodes field. Nodes(p graphql.ResolveParams) (interface{}, error) }
HandlerConnectionNodesFieldResolver implement to resolve requests for the HandlerConnection's nodes field.
type HandlerConnectionPageInfoFieldResolver ¶
type HandlerConnectionPageInfoFieldResolver interface { // PageInfo implements response to request for pageInfo field. PageInfo(p graphql.ResolveParams) (interface{}, error) }
HandlerConnectionPageInfoFieldResolver implement to resolve requests for the HandlerConnection's pageInfo field.
type HandlerEdgeAliases ¶
type HandlerEdgeAliases struct{}
HandlerEdgeAliases implements all methods on HandlerEdgeFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (HandlerEdgeAliases) Cursor ¶
func (_ HandlerEdgeAliases) Cursor(p graphql.ResolveParams) (string, error)
Cursor implements response to request for 'cursor' field.
func (HandlerEdgeAliases) Node ¶
func (_ HandlerEdgeAliases) Node(p graphql.ResolveParams) (interface{}, error)
Node implements response to request for 'node' field.
type HandlerEdgeCursorFieldResolver ¶
type HandlerEdgeCursorFieldResolver interface { // Cursor implements response to request for cursor field. Cursor(p graphql.ResolveParams) (string, error) }
HandlerEdgeCursorFieldResolver implement to resolve requests for the HandlerEdge's cursor field.
type HandlerEdgeFieldResolvers ¶
type HandlerEdgeFieldResolvers interface { HandlerEdgeNodeFieldResolver HandlerEdgeCursorFieldResolver }
HandlerEdgeFieldResolvers represents a collection of methods whose products represent the response values of the 'HandlerEdge' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HandlerEdgeNodeFieldResolver ¶
type HandlerEdgeNodeFieldResolver interface { // Node implements response to request for node field. Node(p graphql.ResolveParams) (interface{}, error) }
HandlerEdgeNodeFieldResolver implement to resolve requests for the HandlerEdge's node field.
type HandlerEnvVarsFieldResolver ¶
type HandlerEnvVarsFieldResolver interface { // EnvVars implements response to request for envVars field. EnvVars(p graphql.ResolveParams) ([]string, error) }
HandlerEnvVarsFieldResolver implement to resolve requests for the Handler's envVars field.
type HandlerFieldResolvers ¶
type HandlerFieldResolvers interface { HandlerIDFieldResolver HandlerNamespaceFieldResolver HandlerNameFieldResolver HandlerMetadataFieldResolver HandlerTypeFieldResolver HandlerCommandFieldResolver HandlerTimeoutFieldResolver HandlerSocketFieldResolver HandlerMutatorFieldResolver HandlerHandlersFieldResolver HandlerFiltersFieldResolver HandlerEnvVarsFieldResolver HandlerToJSONFieldResolver }
HandlerFieldResolvers represents a collection of methods whose products represent the response values of the 'Handler' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HandlerFiltersFieldResolver ¶
type HandlerFiltersFieldResolver interface { // Filters implements response to request for filters field. Filters(p graphql.ResolveParams) ([]string, error) }
HandlerFiltersFieldResolver implement to resolve requests for the Handler's filters field.
type HandlerHandlersFieldResolver ¶
type HandlerHandlersFieldResolver interface { // Handlers implements response to request for handlers field. Handlers(p graphql.ResolveParams) (interface{}, error) }
HandlerHandlersFieldResolver implement to resolve requests for the Handler's handlers field.
type HandlerIDFieldResolver ¶
type HandlerIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
HandlerIDFieldResolver implement to resolve requests for the Handler's id field.
type HandlerListOrder ¶
type HandlerListOrder string
HandlerListOrder Describes ways in which a list of handlers can be ordered.
type HandlerMetadataFieldResolver ¶
type HandlerMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
HandlerMetadataFieldResolver implement to resolve requests for the Handler's metadata field.
type HandlerMutatorFieldResolver ¶
type HandlerMutatorFieldResolver interface { // Mutator implements response to request for mutator field. Mutator(p graphql.ResolveParams) (interface{}, error) }
HandlerMutatorFieldResolver implement to resolve requests for the Handler's mutator field.
type HandlerNameFieldResolver ¶
type HandlerNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
HandlerNameFieldResolver implement to resolve requests for the Handler's name field.
type HandlerNamespaceFieldResolver ¶
type HandlerNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
HandlerNamespaceFieldResolver implement to resolve requests for the Handler's namespace field.
type HandlerSocketAliases ¶
type HandlerSocketAliases struct{}
HandlerSocketAliases implements all methods on HandlerSocketFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (HandlerSocketAliases) Host ¶
func (_ HandlerSocketAliases) Host(p graphql.ResolveParams) (string, error)
Host implements response to request for 'host' field.
func (HandlerSocketAliases) Port ¶
func (_ HandlerSocketAliases) Port(p graphql.ResolveParams) (int, error)
Port implements response to request for 'port' field.
type HandlerSocketFieldResolver ¶
type HandlerSocketFieldResolver interface { // Socket implements response to request for socket field. Socket(p graphql.ResolveParams) (interface{}, error) }
HandlerSocketFieldResolver implement to resolve requests for the Handler's socket field.
type HandlerSocketFieldResolvers ¶
type HandlerSocketFieldResolvers interface { HandlerSocketHostFieldResolver HandlerSocketPortFieldResolver }
HandlerSocketFieldResolvers represents a collection of methods whose products represent the response values of the 'HandlerSocket' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HandlerSocketHostFieldResolver ¶
type HandlerSocketHostFieldResolver interface { // Host implements response to request for host field. Host(p graphql.ResolveParams) (string, error) }
HandlerSocketHostFieldResolver implement to resolve requests for the HandlerSocket's host field.
type HandlerSocketPortFieldResolver ¶
type HandlerSocketPortFieldResolver interface { // Port implements response to request for port field. Port(p graphql.ResolveParams) (int, error) }
HandlerSocketPortFieldResolver implement to resolve requests for the HandlerSocket's port field.
type HandlerTimeoutFieldResolver ¶
type HandlerTimeoutFieldResolver interface { // Timeout implements response to request for timeout field. Timeout(p graphql.ResolveParams) (int, error) }
HandlerTimeoutFieldResolver implement to resolve requests for the Handler's timeout field.
type HandlerToJSONFieldResolver ¶
type HandlerToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
HandlerToJSONFieldResolver implement to resolve requests for the Handler's toJSON field.
type HandlerTypeFieldResolver ¶
type HandlerTypeFieldResolver interface { // Type implements response to request for type field. Type(p graphql.ResolveParams) (string, error) }
HandlerTypeFieldResolver implement to resolve requests for the Handler's type field.
type HookAliases ¶
type HookAliases struct{}
HookAliases implements all methods on HookFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (HookAliases) Config ¶
func (_ HookAliases) Config(p graphql.ResolveParams) (interface{}, error)
Config implements response to request for 'config' field.
func (HookAliases) Duration ¶
func (_ HookAliases) Duration(p graphql.ResolveParams) (int, error)
Duration implements response to request for 'duration' field.
func (HookAliases) Executed ¶
func (_ HookAliases) Executed(p graphql.ResolveParams) (int, error)
Executed implements response to request for 'executed' field.
func (HookAliases) Issued ¶
func (_ HookAliases) Issued(p graphql.ResolveParams) (int, error)
Issued implements response to request for 'issued' field.
func (HookAliases) Output ¶
func (_ HookAliases) Output(p graphql.ResolveParams) (string, error)
Output implements response to request for 'output' field.
func (HookAliases) Status ¶
func (_ HookAliases) Status(p graphql.ResolveParams) (int, error)
Status implements response to request for 'status' field.
type HookConfigAliases ¶
type HookConfigAliases struct{}
HookConfigAliases implements all methods on HookConfigFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (HookConfigAliases) Command ¶
func (_ HookConfigAliases) Command(p graphql.ResolveParams) (string, error)
Command implements response to request for 'command' field.
func (HookConfigAliases) ID ¶
func (_ HookConfigAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (HookConfigAliases) Metadata ¶
func (_ HookConfigAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (HookConfigAliases) Name ¶
func (_ HookConfigAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (HookConfigAliases) Namespace ¶
func (_ HookConfigAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (HookConfigAliases) Stdin ¶
func (_ HookConfigAliases) Stdin(p graphql.ResolveParams) (bool, error)
Stdin implements response to request for 'stdin' field.
func (HookConfigAliases) Timeout ¶
func (_ HookConfigAliases) Timeout(p graphql.ResolveParams) (int, error)
Timeout implements response to request for 'timeout' field.
func (HookConfigAliases) ToJSON ¶
func (_ HookConfigAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
type HookConfigCommandFieldResolver ¶
type HookConfigCommandFieldResolver interface { // Command implements response to request for command field. Command(p graphql.ResolveParams) (string, error) }
HookConfigCommandFieldResolver implement to resolve requests for the HookConfig's command field.
type HookConfigFieldResolver ¶
type HookConfigFieldResolver interface { // Config implements response to request for config field. Config(p graphql.ResolveParams) (interface{}, error) }
HookConfigFieldResolver implement to resolve requests for the Hook's config field.
type HookConfigFieldResolvers ¶
type HookConfigFieldResolvers interface { HookConfigIDFieldResolver HookConfigNamespaceFieldResolver HookConfigNameFieldResolver HookConfigMetadataFieldResolver HookConfigCommandFieldResolver HookConfigTimeoutFieldResolver HookConfigStdinFieldResolver HookConfigToJSONFieldResolver }
HookConfigFieldResolvers represents a collection of methods whose products represent the response values of the 'HookConfig' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HookConfigIDFieldResolver ¶
type HookConfigIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
HookConfigIDFieldResolver implement to resolve requests for the HookConfig's id field.
type HookConfigMetadataFieldResolver ¶
type HookConfigMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
HookConfigMetadataFieldResolver implement to resolve requests for the HookConfig's metadata field.
type HookConfigNameFieldResolver ¶
type HookConfigNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
HookConfigNameFieldResolver implement to resolve requests for the HookConfig's name field.
type HookConfigNamespaceFieldResolver ¶
type HookConfigNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
HookConfigNamespaceFieldResolver implement to resolve requests for the HookConfig's namespace field.
type HookConfigStdinFieldResolver ¶
type HookConfigStdinFieldResolver interface { // Stdin implements response to request for stdin field. Stdin(p graphql.ResolveParams) (bool, error) }
HookConfigStdinFieldResolver implement to resolve requests for the HookConfig's stdin field.
type HookConfigTimeoutFieldResolver ¶
type HookConfigTimeoutFieldResolver interface { // Timeout implements response to request for timeout field. Timeout(p graphql.ResolveParams) (int, error) }
HookConfigTimeoutFieldResolver implement to resolve requests for the HookConfig's timeout field.
type HookConfigToJSONFieldResolver ¶
type HookConfigToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
HookConfigToJSONFieldResolver implement to resolve requests for the HookConfig's toJSON field.
type HookDurationFieldResolver ¶
type HookDurationFieldResolver interface { // Duration implements response to request for duration field. Duration(p graphql.ResolveParams) (int, error) }
HookDurationFieldResolver implement to resolve requests for the Hook's duration field.
type HookExecutedFieldResolver ¶
type HookExecutedFieldResolver interface { // Executed implements response to request for executed field. Executed(p graphql.ResolveParams) (int, error) }
HookExecutedFieldResolver implement to resolve requests for the Hook's executed field.
type HookFieldResolvers ¶
type HookFieldResolvers interface { HookConfigFieldResolver HookDurationFieldResolver HookExecutedFieldResolver HookIssuedFieldResolver HookOutputFieldResolver HookStatusFieldResolver }
HookFieldResolvers represents a collection of methods whose products represent the response values of the 'Hook' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HookIssuedFieldResolver ¶
type HookIssuedFieldResolver interface { // Issued implements response to request for issued field. Issued(p graphql.ResolveParams) (int, error) }
HookIssuedFieldResolver implement to resolve requests for the Hook's issued field.
type HookListAliases ¶
type HookListAliases struct{}
HookListAliases implements all methods on HookListFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (HookListAliases) Hooks ¶
func (_ HookListAliases) Hooks(p graphql.ResolveParams) ([]string, error)
Hooks implements response to request for 'hooks' field.
func (HookListAliases) Type ¶
func (_ HookListAliases) Type(p graphql.ResolveParams) (string, error)
Type implements response to request for 'type' field.
type HookListFieldResolvers ¶
type HookListFieldResolvers interface { HookListHooksFieldResolver HookListTypeFieldResolver }
HookListFieldResolvers represents a collection of methods whose products represent the response values of the 'HookList' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type HookListHooksFieldResolver ¶
type HookListHooksFieldResolver interface { // Hooks implements response to request for hooks field. Hooks(p graphql.ResolveParams) ([]string, error) }
HookListHooksFieldResolver implement to resolve requests for the HookList's hooks field.
type HookListTypeFieldResolver ¶
type HookListTypeFieldResolver interface { // Type implements response to request for type field. Type(p graphql.ResolveParams) (string, error) }
HookListTypeFieldResolver implement to resolve requests for the HookList's type field.
type HookOutputFieldResolver ¶
type HookOutputFieldResolver interface { // Output implements response to request for output field. Output(p graphql.ResolveParams) (string, error) }
HookOutputFieldResolver implement to resolve requests for the Hook's output field.
type HookStatusFieldResolver ¶
type HookStatusFieldResolver interface { // Status implements response to request for status field. Status(p graphql.ResolveParams) (int, error) }
HookStatusFieldResolver implement to resolve requests for the Hook's status field.
type Icon ¶
type Icon string
Icon Describes a graphical element that can be used to distinguish a resource.
type KVPairStringAliases ¶
type KVPairStringAliases struct{}
KVPairStringAliases implements all methods on KVPairStringFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (KVPairStringAliases) Key ¶
func (_ KVPairStringAliases) Key(p graphql.ResolveParams) (string, error)
Key implements response to request for 'key' field.
func (KVPairStringAliases) Val ¶
func (_ KVPairStringAliases) Val(p graphql.ResolveParams) (string, error)
Val implements response to request for 'val' field.
type KVPairStringFieldResolvers ¶
type KVPairStringFieldResolvers interface { KVPairStringKeyFieldResolver KVPairStringValFieldResolver }
KVPairStringFieldResolvers represents a collection of methods whose products represent the response values of the 'KVPairString' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type KVPairStringKeyFieldResolver ¶
type KVPairStringKeyFieldResolver interface { // Key implements response to request for key field. Key(p graphql.ResolveParams) (string, error) }
KVPairStringKeyFieldResolver implement to resolve requests for the KVPairString's key field.
type KVPairStringValFieldResolver ¶
type KVPairStringValFieldResolver interface { // Val implements response to request for val field. Val(p graphql.ResolveParams) (string, error) }
KVPairStringValFieldResolver implement to resolve requests for the KVPairString's val field.
type MutationAliases ¶
type MutationAliases struct{}
MutationAliases implements all methods on MutationFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (MutationAliases) CreateCheck ¶
func (_ MutationAliases) CreateCheck(p MutationCreateCheckFieldResolverParams) (interface{}, error)
CreateCheck implements response to request for 'createCheck' field.
func (MutationAliases) CreateSilence ¶
func (_ MutationAliases) CreateSilence(p MutationCreateSilenceFieldResolverParams) (interface{}, error)
CreateSilence implements response to request for 'createSilence' field.
func (MutationAliases) DeleteCheck ¶
func (_ MutationAliases) DeleteCheck(p MutationDeleteCheckFieldResolverParams) (interface{}, error)
DeleteCheck implements response to request for 'deleteCheck' field.
func (MutationAliases) DeleteEntity ¶
func (_ MutationAliases) DeleteEntity(p MutationDeleteEntityFieldResolverParams) (interface{}, error)
DeleteEntity implements response to request for 'deleteEntity' field.
func (MutationAliases) DeleteEvent ¶
func (_ MutationAliases) DeleteEvent(p MutationDeleteEventFieldResolverParams) (interface{}, error)
DeleteEvent implements response to request for 'deleteEvent' field.
func (MutationAliases) DeleteHandler ¶
func (_ MutationAliases) DeleteHandler(p MutationDeleteHandlerFieldResolverParams) (interface{}, error)
DeleteHandler implements response to request for 'deleteHandler' field.
func (MutationAliases) DeleteSilence ¶
func (_ MutationAliases) DeleteSilence(p MutationDeleteSilenceFieldResolverParams) (interface{}, error)
DeleteSilence implements response to request for 'deleteSilence' field.
func (MutationAliases) ExecuteCheck ¶
func (_ MutationAliases) ExecuteCheck(p MutationExecuteCheckFieldResolverParams) (interface{}, error)
ExecuteCheck implements response to request for 'executeCheck' field.
func (MutationAliases) PutWrapped ¶
func (_ MutationAliases) PutWrapped(p MutationPutWrappedFieldResolverParams) (interface{}, error)
PutWrapped implements response to request for 'putWrapped' field.
func (MutationAliases) ResolveEvent ¶
func (_ MutationAliases) ResolveEvent(p MutationResolveEventFieldResolverParams) (interface{}, error)
ResolveEvent implements response to request for 'resolveEvent' field.
func (MutationAliases) UpdateCheck ¶
func (_ MutationAliases) UpdateCheck(p MutationUpdateCheckFieldResolverParams) (interface{}, error)
UpdateCheck implements response to request for 'updateCheck' field.
type MutationCreateCheckFieldResolver ¶
type MutationCreateCheckFieldResolver interface { // CreateCheck implements response to request for createCheck field. CreateCheck(p MutationCreateCheckFieldResolverParams) (interface{}, error) }
MutationCreateCheckFieldResolver implement to resolve requests for the Mutation's createCheck field.
type MutationCreateCheckFieldResolverArgs ¶
type MutationCreateCheckFieldResolverArgs struct {
Input *CreateCheckInput // Input - self descriptive
}
MutationCreateCheckFieldResolverArgs contains arguments provided to createCheck when selected
type MutationCreateCheckFieldResolverParams ¶
type MutationCreateCheckFieldResolverParams struct { graphql.ResolveParams Args MutationCreateCheckFieldResolverArgs }
MutationCreateCheckFieldResolverParams contains contextual info to resolve createCheck field
type MutationCreateSilenceFieldResolver ¶
type MutationCreateSilenceFieldResolver interface { // CreateSilence implements response to request for createSilence field. CreateSilence(p MutationCreateSilenceFieldResolverParams) (interface{}, error) }
MutationCreateSilenceFieldResolver implement to resolve requests for the Mutation's createSilence field.
type MutationCreateSilenceFieldResolverArgs ¶
type MutationCreateSilenceFieldResolverArgs struct {
Input *CreateSilenceInput // Input - self descriptive
}
MutationCreateSilenceFieldResolverArgs contains arguments provided to createSilence when selected
type MutationCreateSilenceFieldResolverParams ¶
type MutationCreateSilenceFieldResolverParams struct { graphql.ResolveParams Args MutationCreateSilenceFieldResolverArgs }
MutationCreateSilenceFieldResolverParams contains contextual info to resolve createSilence field
type MutationDeleteCheckFieldResolver ¶
type MutationDeleteCheckFieldResolver interface { // DeleteCheck implements response to request for deleteCheck field. DeleteCheck(p MutationDeleteCheckFieldResolverParams) (interface{}, error) }
MutationDeleteCheckFieldResolver implement to resolve requests for the Mutation's deleteCheck field.
type MutationDeleteCheckFieldResolverArgs ¶
type MutationDeleteCheckFieldResolverArgs struct {
Input *DeleteRecordInput // Input - self descriptive
}
MutationDeleteCheckFieldResolverArgs contains arguments provided to deleteCheck when selected
type MutationDeleteCheckFieldResolverParams ¶
type MutationDeleteCheckFieldResolverParams struct { graphql.ResolveParams Args MutationDeleteCheckFieldResolverArgs }
MutationDeleteCheckFieldResolverParams contains contextual info to resolve deleteCheck field
type MutationDeleteEntityFieldResolver ¶
type MutationDeleteEntityFieldResolver interface { // DeleteEntity implements response to request for deleteEntity field. DeleteEntity(p MutationDeleteEntityFieldResolverParams) (interface{}, error) }
MutationDeleteEntityFieldResolver implement to resolve requests for the Mutation's deleteEntity field.
type MutationDeleteEntityFieldResolverArgs ¶
type MutationDeleteEntityFieldResolverArgs struct {
Input *DeleteRecordInput // Input - self descriptive
}
MutationDeleteEntityFieldResolverArgs contains arguments provided to deleteEntity when selected
type MutationDeleteEntityFieldResolverParams ¶
type MutationDeleteEntityFieldResolverParams struct { graphql.ResolveParams Args MutationDeleteEntityFieldResolverArgs }
MutationDeleteEntityFieldResolverParams contains contextual info to resolve deleteEntity field
type MutationDeleteEventFieldResolver ¶
type MutationDeleteEventFieldResolver interface { // DeleteEvent implements response to request for deleteEvent field. DeleteEvent(p MutationDeleteEventFieldResolverParams) (interface{}, error) }
MutationDeleteEventFieldResolver implement to resolve requests for the Mutation's deleteEvent field.
type MutationDeleteEventFieldResolverArgs ¶
type MutationDeleteEventFieldResolverArgs struct {
Input *DeleteRecordInput // Input - self descriptive
}
MutationDeleteEventFieldResolverArgs contains arguments provided to deleteEvent when selected
type MutationDeleteEventFieldResolverParams ¶
type MutationDeleteEventFieldResolverParams struct { graphql.ResolveParams Args MutationDeleteEventFieldResolverArgs }
MutationDeleteEventFieldResolverParams contains contextual info to resolve deleteEvent field
type MutationDeleteHandlerFieldResolver ¶
type MutationDeleteHandlerFieldResolver interface { // DeleteHandler implements response to request for deleteHandler field. DeleteHandler(p MutationDeleteHandlerFieldResolverParams) (interface{}, error) }
MutationDeleteHandlerFieldResolver implement to resolve requests for the Mutation's deleteHandler field.
type MutationDeleteHandlerFieldResolverArgs ¶
type MutationDeleteHandlerFieldResolverArgs struct {
Input *DeleteRecordInput // Input - self descriptive
}
MutationDeleteHandlerFieldResolverArgs contains arguments provided to deleteHandler when selected
type MutationDeleteHandlerFieldResolverParams ¶
type MutationDeleteHandlerFieldResolverParams struct { graphql.ResolveParams Args MutationDeleteHandlerFieldResolverArgs }
MutationDeleteHandlerFieldResolverParams contains contextual info to resolve deleteHandler field
type MutationDeleteSilenceFieldResolver ¶
type MutationDeleteSilenceFieldResolver interface { // DeleteSilence implements response to request for deleteSilence field. DeleteSilence(p MutationDeleteSilenceFieldResolverParams) (interface{}, error) }
MutationDeleteSilenceFieldResolver implement to resolve requests for the Mutation's deleteSilence field.
type MutationDeleteSilenceFieldResolverArgs ¶
type MutationDeleteSilenceFieldResolverArgs struct {
Input *DeleteRecordInput // Input - self descriptive
}
MutationDeleteSilenceFieldResolverArgs contains arguments provided to deleteSilence when selected
type MutationDeleteSilenceFieldResolverParams ¶
type MutationDeleteSilenceFieldResolverParams struct { graphql.ResolveParams Args MutationDeleteSilenceFieldResolverArgs }
MutationDeleteSilenceFieldResolverParams contains contextual info to resolve deleteSilence field
type MutationExecuteCheckFieldResolver ¶
type MutationExecuteCheckFieldResolver interface { // ExecuteCheck implements response to request for executeCheck field. ExecuteCheck(p MutationExecuteCheckFieldResolverParams) (interface{}, error) }
MutationExecuteCheckFieldResolver implement to resolve requests for the Mutation's executeCheck field.
type MutationExecuteCheckFieldResolverArgs ¶
type MutationExecuteCheckFieldResolverArgs struct {
Input *ExecuteCheckInput // Input - self descriptive
}
MutationExecuteCheckFieldResolverArgs contains arguments provided to executeCheck when selected
type MutationExecuteCheckFieldResolverParams ¶
type MutationExecuteCheckFieldResolverParams struct { graphql.ResolveParams Args MutationExecuteCheckFieldResolverArgs }
MutationExecuteCheckFieldResolverParams contains contextual info to resolve executeCheck field
type MutationFieldResolvers ¶
type MutationFieldResolvers interface { MutationPutWrappedFieldResolver MutationCreateCheckFieldResolver MutationUpdateCheckFieldResolver MutationExecuteCheckFieldResolver MutationDeleteCheckFieldResolver MutationDeleteEntityFieldResolver MutationResolveEventFieldResolver MutationDeleteEventFieldResolver MutationDeleteHandlerFieldResolver MutationCreateSilenceFieldResolver MutationDeleteSilenceFieldResolver }
MutationFieldResolvers represents a collection of methods whose products represent the response values of the 'Mutation' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type MutationPutWrappedFieldResolver ¶
type MutationPutWrappedFieldResolver interface { // PutWrapped implements response to request for putWrapped field. PutWrapped(p MutationPutWrappedFieldResolverParams) (interface{}, error) }
MutationPutWrappedFieldResolver implement to resolve requests for the Mutation's putWrapped field.
type MutationPutWrappedFieldResolverArgs ¶
type MutationPutWrappedFieldResolverArgs struct { Raw string // Raw is a JSON string representation of the resource Upsert bool /* Upsert is a flag that determines whether to insert a resource, or on the basis of the resource already existing, UPDATE that existing resource instead. */ }
MutationPutWrappedFieldResolverArgs contains arguments provided to putWrapped when selected
type MutationPutWrappedFieldResolverParams ¶
type MutationPutWrappedFieldResolverParams struct { graphql.ResolveParams Args MutationPutWrappedFieldResolverArgs }
MutationPutWrappedFieldResolverParams contains contextual info to resolve putWrapped field
type MutationResolveEventFieldResolver ¶
type MutationResolveEventFieldResolver interface { // ResolveEvent implements response to request for resolveEvent field. ResolveEvent(p MutationResolveEventFieldResolverParams) (interface{}, error) }
MutationResolveEventFieldResolver implement to resolve requests for the Mutation's resolveEvent field.
type MutationResolveEventFieldResolverArgs ¶
type MutationResolveEventFieldResolverArgs struct {
Input *ResolveEventInput // Input - self descriptive
}
MutationResolveEventFieldResolverArgs contains arguments provided to resolveEvent when selected
type MutationResolveEventFieldResolverParams ¶
type MutationResolveEventFieldResolverParams struct { graphql.ResolveParams Args MutationResolveEventFieldResolverArgs }
MutationResolveEventFieldResolverParams contains contextual info to resolve resolveEvent field
type MutationUpdateCheckFieldResolver ¶
type MutationUpdateCheckFieldResolver interface { // UpdateCheck implements response to request for updateCheck field. UpdateCheck(p MutationUpdateCheckFieldResolverParams) (interface{}, error) }
MutationUpdateCheckFieldResolver implement to resolve requests for the Mutation's updateCheck field.
type MutationUpdateCheckFieldResolverArgs ¶
type MutationUpdateCheckFieldResolverArgs struct {
Input *UpdateCheckInput // Input - self descriptive
}
MutationUpdateCheckFieldResolverArgs contains arguments provided to updateCheck when selected
type MutationUpdateCheckFieldResolverParams ¶
type MutationUpdateCheckFieldResolverParams struct { graphql.ResolveParams Args MutationUpdateCheckFieldResolverArgs }
MutationUpdateCheckFieldResolverParams contains contextual info to resolve updateCheck field
type MutatorAliases ¶
type MutatorAliases struct{}
MutatorAliases implements all methods on MutatorFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (MutatorAliases) Command ¶
func (_ MutatorAliases) Command(p graphql.ResolveParams) (string, error)
Command implements response to request for 'command' field.
func (MutatorAliases) EnvVars ¶
func (_ MutatorAliases) EnvVars(p graphql.ResolveParams) ([]string, error)
EnvVars implements response to request for 'envVars' field.
func (MutatorAliases) ID ¶
func (_ MutatorAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (MutatorAliases) Metadata ¶
func (_ MutatorAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (MutatorAliases) Name ¶
func (_ MutatorAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (MutatorAliases) Namespace ¶
func (_ MutatorAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (MutatorAliases) Timeout ¶
func (_ MutatorAliases) Timeout(p graphql.ResolveParams) (int, error)
Timeout implements response to request for 'timeout' field.
func (MutatorAliases) ToJSON ¶
func (_ MutatorAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
type MutatorCommandFieldResolver ¶
type MutatorCommandFieldResolver interface { // Command implements response to request for command field. Command(p graphql.ResolveParams) (string, error) }
MutatorCommandFieldResolver implement to resolve requests for the Mutator's command field.
type MutatorEnvVarsFieldResolver ¶
type MutatorEnvVarsFieldResolver interface { // EnvVars implements response to request for envVars field. EnvVars(p graphql.ResolveParams) ([]string, error) }
MutatorEnvVarsFieldResolver implement to resolve requests for the Mutator's envVars field.
type MutatorFieldResolvers ¶
type MutatorFieldResolvers interface { MutatorIDFieldResolver MutatorNamespaceFieldResolver MutatorNameFieldResolver MutatorMetadataFieldResolver MutatorCommandFieldResolver MutatorTimeoutFieldResolver MutatorEnvVarsFieldResolver MutatorToJSONFieldResolver }
MutatorFieldResolvers represents a collection of methods whose products represent the response values of the 'Mutator' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type MutatorIDFieldResolver ¶
type MutatorIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
MutatorIDFieldResolver implement to resolve requests for the Mutator's id field.
type MutatorMetadataFieldResolver ¶
type MutatorMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
MutatorMetadataFieldResolver implement to resolve requests for the Mutator's metadata field.
type MutatorNameFieldResolver ¶
type MutatorNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
MutatorNameFieldResolver implement to resolve requests for the Mutator's name field.
type MutatorNamespaceFieldResolver ¶
type MutatorNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
MutatorNamespaceFieldResolver implement to resolve requests for the Mutator's namespace field.
type MutatorTimeoutFieldResolver ¶
type MutatorTimeoutFieldResolver interface { // Timeout implements response to request for timeout field. Timeout(p graphql.ResolveParams) (int, error) }
MutatorTimeoutFieldResolver implement to resolve requests for the Mutator's timeout field.
type MutatorToJSONFieldResolver ¶
type MutatorToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
MutatorToJSONFieldResolver implement to resolve requests for the Mutator's toJSON field.
type MutedColour ¶
type MutedColour string
MutedColour Describes a color from a muted palette that can be used to distinguish a resource.
type NamespaceAliases ¶
type NamespaceAliases struct{}
NamespaceAliases implements all methods on NamespaceFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (NamespaceAliases) Checks ¶
func (_ NamespaceAliases) Checks(p NamespaceChecksFieldResolverParams) (interface{}, error)
Checks implements response to request for 'checks' field.
func (NamespaceAliases) ColourID ¶
func (_ NamespaceAliases) ColourID(p graphql.ResolveParams) (MutedColour, error)
ColourID implements response to request for 'colourId' field.
func (NamespaceAliases) Entities ¶
func (_ NamespaceAliases) Entities(p NamespaceEntitiesFieldResolverParams) (interface{}, error)
Entities implements response to request for 'entities' field.
func (NamespaceAliases) Events ¶
func (_ NamespaceAliases) Events(p NamespaceEventsFieldResolverParams) (interface{}, error)
Events implements response to request for 'events' field.
func (NamespaceAliases) Handlers ¶
func (_ NamespaceAliases) Handlers(p NamespaceHandlersFieldResolverParams) (interface{}, error)
Handlers implements response to request for 'handlers' field.
func (NamespaceAliases) ID ¶
func (_ NamespaceAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (NamespaceAliases) IconID ¶
func (_ NamespaceAliases) IconID(p graphql.ResolveParams) (Icon, error)
IconID implements response to request for 'iconId' field.
func (NamespaceAliases) Name ¶
func (_ NamespaceAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (NamespaceAliases) Silences ¶
func (_ NamespaceAliases) Silences(p NamespaceSilencesFieldResolverParams) (interface{}, error)
Silences implements response to request for 'silences' field.
func (NamespaceAliases) Subscriptions ¶
func (_ NamespaceAliases) Subscriptions(p NamespaceSubscriptionsFieldResolverParams) (interface{}, error)
Subscriptions implements response to request for 'subscriptions' field.
type NamespaceChecksFieldResolver ¶
type NamespaceChecksFieldResolver interface { // Checks implements response to request for checks field. Checks(p NamespaceChecksFieldResolverParams) (interface{}, error) }
NamespaceChecksFieldResolver implement to resolve requests for the Namespace's checks field.
type NamespaceChecksFieldResolverArgs ¶
type NamespaceChecksFieldResolverArgs struct { Offset int // Offset - self descriptive Limit int // Limit adds optional limit to the number of entries returned. OrderBy CheckListOrder // OrderBy adds optional order to the records retrieved. Filter string // Filter - DEPRECATED: Please use the filters argument instead. Filters []string /* Filters reduces the set using given arbitrary expression[s]; expressions take on the form KEY: VALUE. The accepted key(s) are: subscription & published. Eg. subscription:unix published:true */ }
NamespaceChecksFieldResolverArgs contains arguments provided to checks when selected
type NamespaceChecksFieldResolverParams ¶
type NamespaceChecksFieldResolverParams struct { graphql.ResolveParams Args NamespaceChecksFieldResolverArgs }
NamespaceChecksFieldResolverParams contains contextual info to resolve checks field
type NamespaceColourIDFieldResolver ¶
type NamespaceColourIDFieldResolver interface { // ColourID implements response to request for colourId field. ColourID(p graphql.ResolveParams) (MutedColour, error) }
NamespaceColourIDFieldResolver implement to resolve requests for the Namespace's colourId field.
type NamespaceEntitiesFieldResolver ¶
type NamespaceEntitiesFieldResolver interface { // Entities implements response to request for entities field. Entities(p NamespaceEntitiesFieldResolverParams) (interface{}, error) }
NamespaceEntitiesFieldResolver implement to resolve requests for the Namespace's entities field.
type NamespaceEntitiesFieldResolverArgs ¶
type NamespaceEntitiesFieldResolverArgs struct { Offset int // Offset - self descriptive Limit int // Limit adds optional limit to the number of entries returned. OrderBy EntityListOrder // OrderBy adds optional order to the records retrieved. Filter string // Filter - DEPRECATED: Please use the filters argument instead. Filters []string /* Filters reduces the set using given arbitrary expression[s]; expressions take on the form KEY: VALUE. The accepted key(s) are: subscription & class. Eg. subscription:unix class:proxy */ }
NamespaceEntitiesFieldResolverArgs contains arguments provided to entities when selected
type NamespaceEntitiesFieldResolverParams ¶
type NamespaceEntitiesFieldResolverParams struct { graphql.ResolveParams Args NamespaceEntitiesFieldResolverArgs }
NamespaceEntitiesFieldResolverParams contains contextual info to resolve entities field
type NamespaceEventsFieldResolver ¶
type NamespaceEventsFieldResolver interface { // Events implements response to request for events field. Events(p NamespaceEventsFieldResolverParams) (interface{}, error) }
NamespaceEventsFieldResolver implement to resolve requests for the Namespace's events field.
type NamespaceEventsFieldResolverArgs ¶
type NamespaceEventsFieldResolverArgs struct { Offset int // Offset - self descriptive Limit int // Limit adds optional limit to the number of entries returned. OrderBy EventsListOrder // OrderBy adds optional order to the records retrieved. Filter string // Filter - DEPRECATED: Please use the filters argument instead. Filters []string /* Filters reduces the set using given arbitrary expression[s]; expressions take on the form KEY: VALUE. The accepted key(s) are: status, check, entity, & silenced. Eg. status:passing status:warning status:incident check:check-disk entity:venice silenced:true */ }
NamespaceEventsFieldResolverArgs contains arguments provided to events when selected
type NamespaceEventsFieldResolverParams ¶
type NamespaceEventsFieldResolverParams struct { graphql.ResolveParams Args NamespaceEventsFieldResolverArgs }
NamespaceEventsFieldResolverParams contains contextual info to resolve events field
type NamespaceFieldResolvers ¶
type NamespaceFieldResolvers interface { NamespaceIDFieldResolver NamespaceNameFieldResolver NamespaceChecksFieldResolver NamespaceEntitiesFieldResolver NamespaceEventsFieldResolver NamespaceHandlersFieldResolver NamespaceSilencesFieldResolver NamespaceSubscriptionsFieldResolver NamespaceIconIDFieldResolver NamespaceColourIDFieldResolver }
NamespaceFieldResolvers represents a collection of methods whose products represent the response values of the 'Namespace' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type NamespaceHandlersFieldResolver ¶
type NamespaceHandlersFieldResolver interface { // Handlers implements response to request for handlers field. Handlers(p NamespaceHandlersFieldResolverParams) (interface{}, error) }
NamespaceHandlersFieldResolver implement to resolve requests for the Namespace's handlers field.
type NamespaceHandlersFieldResolverArgs ¶
type NamespaceHandlersFieldResolverArgs struct { Offset int // Offset - self descriptive Limit int // Limit adds an optional limit to the number of handlers returned. OrderBy HandlerListOrder // OrderBy - Orderby adds an optional order to the records retrieved. Filter string // Filter - DEPRECATED: Please use the filters argument instead. Filters []string /* Filters reduces the set using given arbitrary expression[s]; expressions take on the form KEY: VALUE. The accepted key(s) are: type. Eg. type:pipe type:tcp type:udp type:set */ }
NamespaceHandlersFieldResolverArgs contains arguments provided to handlers when selected
type NamespaceHandlersFieldResolverParams ¶
type NamespaceHandlersFieldResolverParams struct { graphql.ResolveParams Args NamespaceHandlersFieldResolverArgs }
NamespaceHandlersFieldResolverParams contains contextual info to resolve handlers field
type NamespaceIDFieldResolver ¶
type NamespaceIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
NamespaceIDFieldResolver implement to resolve requests for the Namespace's id field.
type NamespaceIconIDFieldResolver ¶
type NamespaceIconIDFieldResolver interface { // IconID implements response to request for iconId field. IconID(p graphql.ResolveParams) (Icon, error) }
NamespaceIconIDFieldResolver implement to resolve requests for the Namespace's iconId field.
type NamespaceNameFieldResolver ¶
type NamespaceNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
NamespaceNameFieldResolver implement to resolve requests for the Namespace's name field.
type NamespaceSilencesFieldResolver ¶
type NamespaceSilencesFieldResolver interface { // Silences implements response to request for silences field. Silences(p NamespaceSilencesFieldResolverParams) (interface{}, error) }
NamespaceSilencesFieldResolver implement to resolve requests for the Namespace's silences field.
type NamespaceSilencesFieldResolverArgs ¶
type NamespaceSilencesFieldResolverArgs struct { Offset int // Offset - self descriptive Limit int // Limit adds optional limit to the number of entries returned. OrderBy SilencesListOrder // OrderBy adds optional order to the records retrieved. Filter string // Filter - DEPRECATED: Please use the filters argument instead. Filters []string /* Filters reduces the set using given arbitrary expression[s]; expressions take on the form KEY: VALUE. The accepted key(s) are: check & subscription. Eg. check:check-disk subscription:unix */ }
NamespaceSilencesFieldResolverArgs contains arguments provided to silences when selected
type NamespaceSilencesFieldResolverParams ¶
type NamespaceSilencesFieldResolverParams struct { graphql.ResolveParams Args NamespaceSilencesFieldResolverArgs }
NamespaceSilencesFieldResolverParams contains contextual info to resolve silences field
type NamespaceSubscriptionsFieldResolver ¶
type NamespaceSubscriptionsFieldResolver interface { // Subscriptions implements response to request for subscriptions field. Subscriptions(p NamespaceSubscriptionsFieldResolverParams) (interface{}, error) }
NamespaceSubscriptionsFieldResolver implement to resolve requests for the Namespace's subscriptions field.
type NamespaceSubscriptionsFieldResolverArgs ¶
type NamespaceSubscriptionsFieldResolverArgs struct { OmitEntity bool // OmitEntity - Omit entity subscriptions from set. OrderBy SubscriptionSetOrder // OrderBy adds optional order to the records retrieved. }
NamespaceSubscriptionsFieldResolverArgs contains arguments provided to subscriptions when selected
type NamespaceSubscriptionsFieldResolverParams ¶
type NamespaceSubscriptionsFieldResolverParams struct { graphql.ResolveParams Args NamespaceSubscriptionsFieldResolverArgs }
NamespaceSubscriptionsFieldResolverParams contains contextual info to resolve subscriptions field
type NetworkAliases ¶
type NetworkAliases struct{}
NetworkAliases implements all methods on NetworkFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (NetworkAliases) Interfaces ¶
func (_ NetworkAliases) Interfaces(p graphql.ResolveParams) (interface{}, error)
Interfaces implements response to request for 'interfaces' field.
type NetworkFieldResolvers ¶
type NetworkFieldResolvers interface { NetworkInterfacesFieldResolver }
NetworkFieldResolvers represents a collection of methods whose products represent the response values of the 'Network' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type NetworkInterfaceAddressesFieldResolver ¶
type NetworkInterfaceAddressesFieldResolver interface { // Addresses implements response to request for addresses field. Addresses(p graphql.ResolveParams) ([]string, error) }
NetworkInterfaceAddressesFieldResolver implement to resolve requests for the NetworkInterface's addresses field.
type NetworkInterfaceAliases ¶
type NetworkInterfaceAliases struct{}
NetworkInterfaceAliases implements all methods on NetworkInterfaceFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (NetworkInterfaceAliases) Addresses ¶
func (_ NetworkInterfaceAliases) Addresses(p graphql.ResolveParams) ([]string, error)
Addresses implements response to request for 'addresses' field.
func (NetworkInterfaceAliases) Mac ¶
func (_ NetworkInterfaceAliases) Mac(p graphql.ResolveParams) (string, error)
Mac implements response to request for 'mac' field.
func (NetworkInterfaceAliases) Name ¶
func (_ NetworkInterfaceAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
type NetworkInterfaceFieldResolvers ¶
type NetworkInterfaceFieldResolvers interface { NetworkInterfaceNameFieldResolver NetworkInterfaceMacFieldResolver NetworkInterfaceAddressesFieldResolver }
NetworkInterfaceFieldResolvers represents a collection of methods whose products represent the response values of the 'NetworkInterface' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type NetworkInterfaceMacFieldResolver ¶
type NetworkInterfaceMacFieldResolver interface { // Mac implements response to request for mac field. Mac(p graphql.ResolveParams) (string, error) }
NetworkInterfaceMacFieldResolver implement to resolve requests for the NetworkInterface's mac field.
type NetworkInterfaceNameFieldResolver ¶
type NetworkInterfaceNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
NetworkInterfaceNameFieldResolver implement to resolve requests for the NetworkInterface's name field.
type NetworkInterfacesFieldResolver ¶
type NetworkInterfacesFieldResolver interface { // Interfaces implements response to request for interfaces field. Interfaces(p graphql.ResolveParams) (interface{}, error) }
NetworkInterfacesFieldResolver implement to resolve requests for the Network's interfaces field.
type ObjectMetaAliases ¶
type ObjectMetaAliases struct{}
ObjectMetaAliases implements all methods on ObjectMetaFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (ObjectMetaAliases) Annotations ¶
func (_ ObjectMetaAliases) Annotations(p graphql.ResolveParams) (interface{}, error)
Annotations implements response to request for 'annotations' field.
func (ObjectMetaAliases) Labels ¶
func (_ ObjectMetaAliases) Labels(p graphql.ResolveParams) (interface{}, error)
Labels implements response to request for 'labels' field.
func (ObjectMetaAliases) Name ¶
func (_ ObjectMetaAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (ObjectMetaAliases) Namespace ¶
func (_ ObjectMetaAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
type ObjectMetaAnnotationsFieldResolver ¶
type ObjectMetaAnnotationsFieldResolver interface { // Annotations implements response to request for annotations field. Annotations(p graphql.ResolveParams) (interface{}, error) }
ObjectMetaAnnotationsFieldResolver implement to resolve requests for the ObjectMeta's annotations field.
type ObjectMetaFieldResolvers ¶
type ObjectMetaFieldResolvers interface { ObjectMetaNameFieldResolver ObjectMetaNamespaceFieldResolver ObjectMetaLabelsFieldResolver ObjectMetaAnnotationsFieldResolver }
ObjectMetaFieldResolvers represents a collection of methods whose products represent the response values of the 'ObjectMeta' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type ObjectMetaLabelsFieldResolver ¶
type ObjectMetaLabelsFieldResolver interface { // Labels implements response to request for labels field. Labels(p graphql.ResolveParams) (interface{}, error) }
ObjectMetaLabelsFieldResolver implement to resolve requests for the ObjectMeta's labels field.
type ObjectMetaNameFieldResolver ¶
type ObjectMetaNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
ObjectMetaNameFieldResolver implement to resolve requests for the ObjectMeta's name field.
type ObjectMetaNamespaceFieldResolver ¶
type ObjectMetaNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
ObjectMetaNamespaceFieldResolver implement to resolve requests for the ObjectMeta's namespace field.
type OffsetPageInfoAliases ¶
type OffsetPageInfoAliases struct{}
OffsetPageInfoAliases implements all methods on OffsetPageInfoFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (OffsetPageInfoAliases) HasNextPage ¶
func (_ OffsetPageInfoAliases) HasNextPage(p graphql.ResolveParams) (bool, error)
HasNextPage implements response to request for 'hasNextPage' field.
func (OffsetPageInfoAliases) HasPreviousPage ¶
func (_ OffsetPageInfoAliases) HasPreviousPage(p graphql.ResolveParams) (bool, error)
HasPreviousPage implements response to request for 'hasPreviousPage' field.
func (OffsetPageInfoAliases) NextOffset ¶
func (_ OffsetPageInfoAliases) NextOffset(p graphql.ResolveParams) (int, error)
NextOffset implements response to request for 'nextOffset' field.
func (OffsetPageInfoAliases) PreviousOffset ¶
func (_ OffsetPageInfoAliases) PreviousOffset(p graphql.ResolveParams) (int, error)
PreviousOffset implements response to request for 'previousOffset' field.
func (OffsetPageInfoAliases) TotalCount ¶
func (_ OffsetPageInfoAliases) TotalCount(p graphql.ResolveParams) (int, error)
TotalCount implements response to request for 'totalCount' field.
type OffsetPageInfoFieldResolvers ¶
type OffsetPageInfoFieldResolvers interface { OffsetPageInfoHasNextPageFieldResolver OffsetPageInfoHasPreviousPageFieldResolver OffsetPageInfoNextOffsetFieldResolver OffsetPageInfoPreviousOffsetFieldResolver OffsetPageInfoTotalCountFieldResolver }
OffsetPageInfoFieldResolvers represents a collection of methods whose products represent the response values of the 'OffsetPageInfo' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type OffsetPageInfoHasNextPageFieldResolver ¶
type OffsetPageInfoHasNextPageFieldResolver interface { // HasNextPage implements response to request for hasNextPage field. HasNextPage(p graphql.ResolveParams) (bool, error) }
OffsetPageInfoHasNextPageFieldResolver implement to resolve requests for the OffsetPageInfo's hasNextPage field.
type OffsetPageInfoHasPreviousPageFieldResolver ¶
type OffsetPageInfoHasPreviousPageFieldResolver interface { // HasPreviousPage implements response to request for hasPreviousPage field. HasPreviousPage(p graphql.ResolveParams) (bool, error) }
OffsetPageInfoHasPreviousPageFieldResolver implement to resolve requests for the OffsetPageInfo's hasPreviousPage field.
type OffsetPageInfoNextOffsetFieldResolver ¶
type OffsetPageInfoNextOffsetFieldResolver interface { // NextOffset implements response to request for nextOffset field. NextOffset(p graphql.ResolveParams) (int, error) }
OffsetPageInfoNextOffsetFieldResolver implement to resolve requests for the OffsetPageInfo's nextOffset field.
type OffsetPageInfoPreviousOffsetFieldResolver ¶
type OffsetPageInfoPreviousOffsetFieldResolver interface { // PreviousOffset implements response to request for previousOffset field. PreviousOffset(p graphql.ResolveParams) (int, error) }
OffsetPageInfoPreviousOffsetFieldResolver implement to resolve requests for the OffsetPageInfo's previousOffset field.
type OffsetPageInfoTotalCountFieldResolver ¶
type OffsetPageInfoTotalCountFieldResolver interface { // TotalCount implements response to request for totalCount field. TotalCount(p graphql.ResolveParams) (int, error) }
OffsetPageInfoTotalCountFieldResolver implement to resolve requests for the OffsetPageInfo's totalCount field.
type ProxyRequestsAliases ¶
type ProxyRequestsAliases struct{}
ProxyRequestsAliases implements all methods on ProxyRequestsFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (ProxyRequestsAliases) EntityAttributes ¶
func (_ ProxyRequestsAliases) EntityAttributes(p graphql.ResolveParams) (interface{}, error)
EntityAttributes implements response to request for 'entityAttributes' field.
func (ProxyRequestsAliases) Splay ¶
func (_ ProxyRequestsAliases) Splay(p graphql.ResolveParams) (bool, error)
Splay implements response to request for 'splay' field.
func (ProxyRequestsAliases) SplayCoverage ¶
func (_ ProxyRequestsAliases) SplayCoverage(p graphql.ResolveParams) (int, error)
SplayCoverage implements response to request for 'splayCoverage' field.
type ProxyRequestsEntityAttributesFieldResolver ¶
type ProxyRequestsEntityAttributesFieldResolver interface { // EntityAttributes implements response to request for entityAttributes field. EntityAttributes(p graphql.ResolveParams) (interface{}, error) }
ProxyRequestsEntityAttributesFieldResolver implement to resolve requests for the ProxyRequests's entityAttributes field.
type ProxyRequestsFieldResolvers ¶
type ProxyRequestsFieldResolvers interface { ProxyRequestsEntityAttributesFieldResolver ProxyRequestsSplayFieldResolver ProxyRequestsSplayCoverageFieldResolver }
ProxyRequestsFieldResolvers represents a collection of methods whose products represent the response values of the 'ProxyRequests' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type ProxyRequestsSplayCoverageFieldResolver ¶
type ProxyRequestsSplayCoverageFieldResolver interface { // SplayCoverage implements response to request for splayCoverage field. SplayCoverage(p graphql.ResolveParams) (int, error) }
ProxyRequestsSplayCoverageFieldResolver implement to resolve requests for the ProxyRequests's splayCoverage field.
type ProxyRequestsSplayFieldResolver ¶
type ProxyRequestsSplayFieldResolver interface { // Splay implements response to request for splay field. Splay(p graphql.ResolveParams) (bool, error) }
ProxyRequestsSplayFieldResolver implement to resolve requests for the ProxyRequests's splay field.
type PutWrappedPayloadAliases ¶
type PutWrappedPayloadAliases struct{}
PutWrappedPayloadAliases implements all methods on PutWrappedPayloadFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (PutWrappedPayloadAliases) Errors ¶
func (_ PutWrappedPayloadAliases) Errors(p graphql.ResolveParams) (interface{}, error)
Errors implements response to request for 'errors' field.
func (PutWrappedPayloadAliases) Node ¶
func (_ PutWrappedPayloadAliases) Node(p graphql.ResolveParams) (interface{}, error)
Node implements response to request for 'node' field.
type PutWrappedPayloadErrorsFieldResolver ¶
type PutWrappedPayloadErrorsFieldResolver interface { // Errors implements response to request for errors field. Errors(p graphql.ResolveParams) (interface{}, error) }
PutWrappedPayloadErrorsFieldResolver implement to resolve requests for the PutWrappedPayload's errors field.
type PutWrappedPayloadFieldResolvers ¶
type PutWrappedPayloadFieldResolvers interface { PutWrappedPayloadNodeFieldResolver PutWrappedPayloadErrorsFieldResolver }
PutWrappedPayloadFieldResolvers represents a collection of methods whose products represent the response values of the 'PutWrappedPayload' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type PutWrappedPayloadNodeFieldResolver ¶
type PutWrappedPayloadNodeFieldResolver interface { // Node implements response to request for node field. Node(p graphql.ResolveParams) (interface{}, error) }
PutWrappedPayloadNodeFieldResolver implement to resolve requests for the PutWrappedPayload's node field.
type QueryAliases ¶
type QueryAliases struct{}
QueryAliases implements all methods on QueryFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (QueryAliases) Check ¶
func (_ QueryAliases) Check(p QueryCheckFieldResolverParams) (interface{}, error)
Check implements response to request for 'check' field.
func (QueryAliases) Entity ¶
func (_ QueryAliases) Entity(p QueryEntityFieldResolverParams) (interface{}, error)
Entity implements response to request for 'entity' field.
func (QueryAliases) Event ¶
func (_ QueryAliases) Event(p QueryEventFieldResolverParams) (interface{}, error)
Event implements response to request for 'event' field.
func (QueryAliases) Handler ¶
func (_ QueryAliases) Handler(p QueryHandlerFieldResolverParams) (interface{}, error)
Handler implements response to request for 'handler' field.
func (QueryAliases) Namespace ¶
func (_ QueryAliases) Namespace(p QueryNamespaceFieldResolverParams) (interface{}, error)
Namespace implements response to request for 'namespace' field.
func (QueryAliases) Node ¶
func (_ QueryAliases) Node(p QueryNodeFieldResolverParams) (interface{}, error)
Node implements response to request for 'node' field.
func (QueryAliases) Suggest ¶
func (_ QueryAliases) Suggest(p QuerySuggestFieldResolverParams) (interface{}, error)
Suggest implements response to request for 'suggest' field.
func (QueryAliases) Viewer ¶
func (_ QueryAliases) Viewer(p graphql.ResolveParams) (interface{}, error)
Viewer implements response to request for 'viewer' field.
func (QueryAliases) WrappedNode ¶
func (_ QueryAliases) WrappedNode(p QueryWrappedNodeFieldResolverParams) (interface{}, error)
WrappedNode implements response to request for 'wrappedNode' field.
type QueryCheckFieldResolver ¶
type QueryCheckFieldResolver interface { // Check implements response to request for check field. Check(p QueryCheckFieldResolverParams) (interface{}, error) }
QueryCheckFieldResolver implement to resolve requests for the Query's check field.
type QueryCheckFieldResolverArgs ¶
type QueryCheckFieldResolverArgs struct { Namespace string // Namespace - self descriptive Name string // Name - self descriptive }
QueryCheckFieldResolverArgs contains arguments provided to check when selected
type QueryCheckFieldResolverParams ¶
type QueryCheckFieldResolverParams struct { graphql.ResolveParams Args QueryCheckFieldResolverArgs }
QueryCheckFieldResolverParams contains contextual info to resolve check field
type QueryEntityFieldResolver ¶
type QueryEntityFieldResolver interface { // Entity implements response to request for entity field. Entity(p QueryEntityFieldResolverParams) (interface{}, error) }
QueryEntityFieldResolver implement to resolve requests for the Query's entity field.
type QueryEntityFieldResolverArgs ¶
type QueryEntityFieldResolverArgs struct { Namespace string // Namespace - self descriptive Name string // Name - self descriptive }
QueryEntityFieldResolverArgs contains arguments provided to entity when selected
type QueryEntityFieldResolverParams ¶
type QueryEntityFieldResolverParams struct { graphql.ResolveParams Args QueryEntityFieldResolverArgs }
QueryEntityFieldResolverParams contains contextual info to resolve entity field
type QueryEventFieldResolver ¶
type QueryEventFieldResolver interface { // Event implements response to request for event field. Event(p QueryEventFieldResolverParams) (interface{}, error) }
QueryEventFieldResolver implement to resolve requests for the Query's event field.
type QueryEventFieldResolverArgs ¶
type QueryEventFieldResolverArgs struct { Namespace string // Namespace - self descriptive Entity string // Entity - self descriptive Check string // Check - self descriptive }
QueryEventFieldResolverArgs contains arguments provided to event when selected
type QueryEventFieldResolverParams ¶
type QueryEventFieldResolverParams struct { graphql.ResolveParams Args QueryEventFieldResolverArgs }
QueryEventFieldResolverParams contains contextual info to resolve event field
type QueryFieldResolvers ¶
type QueryFieldResolvers interface { QueryViewerFieldResolver QueryNamespaceFieldResolver QueryEventFieldResolver QueryEntityFieldResolver QueryCheckFieldResolver QueryHandlerFieldResolver QuerySuggestFieldResolver QueryNodeFieldResolver QueryWrappedNodeFieldResolver }
QueryFieldResolvers represents a collection of methods whose products represent the response values of the 'Query' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type QueryHandlerFieldResolver ¶
type QueryHandlerFieldResolver interface { // Handler implements response to request for handler field. Handler(p QueryHandlerFieldResolverParams) (interface{}, error) }
QueryHandlerFieldResolver implement to resolve requests for the Query's handler field.
type QueryHandlerFieldResolverArgs ¶
type QueryHandlerFieldResolverArgs struct { Namespace string // Namespace - self descriptive Name string // Name - self descriptive }
QueryHandlerFieldResolverArgs contains arguments provided to handler when selected
type QueryHandlerFieldResolverParams ¶
type QueryHandlerFieldResolverParams struct { graphql.ResolveParams Args QueryHandlerFieldResolverArgs }
QueryHandlerFieldResolverParams contains contextual info to resolve handler field
type QueryNamespaceFieldResolver ¶
type QueryNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p QueryNamespaceFieldResolverParams) (interface{}, error) }
QueryNamespaceFieldResolver implement to resolve requests for the Query's namespace field.
type QueryNamespaceFieldResolverArgs ¶
type QueryNamespaceFieldResolverArgs struct {
Name string // Name - self descriptive
}
QueryNamespaceFieldResolverArgs contains arguments provided to namespace when selected
type QueryNamespaceFieldResolverParams ¶
type QueryNamespaceFieldResolverParams struct { graphql.ResolveParams Args QueryNamespaceFieldResolverArgs }
QueryNamespaceFieldResolverParams contains contextual info to resolve namespace field
type QueryNodeFieldResolver ¶
type QueryNodeFieldResolver interface { // Node implements response to request for node field. Node(p QueryNodeFieldResolverParams) (interface{}, error) }
QueryNodeFieldResolver implement to resolve requests for the Query's node field.
type QueryNodeFieldResolverArgs ¶
type QueryNodeFieldResolverArgs struct {
ID string // ID - The ID of an object.
}
QueryNodeFieldResolverArgs contains arguments provided to node when selected
type QueryNodeFieldResolverParams ¶
type QueryNodeFieldResolverParams struct { graphql.ResolveParams Args QueryNodeFieldResolverArgs }
QueryNodeFieldResolverParams contains contextual info to resolve node field
type QuerySuggestFieldResolver ¶
type QuerySuggestFieldResolver interface { // Suggest implements response to request for suggest field. Suggest(p QuerySuggestFieldResolverParams) (interface{}, error) }
QuerySuggestFieldResolver implement to resolve requests for the Query's suggest field.
type QuerySuggestFieldResolverArgs ¶
type QuerySuggestFieldResolverArgs struct { Q string /* Q - If the value of a field does not contain the value of this argument it will be omitted from the response. Operation is case-insensitive. */ Ref string /* Ref is used to uniquely identify a resource in the system as well as a field on said resource. Refs take the form: :group/:version/:type/:field. The field segment may be a path in and of it's own, eg. metadata/name would refer to the name field nested inside a resource's metadata. The following are valid example values for this argument: `core/v2/asset/metadata/name` `core/v2/asset/metadata/labels` `core/v2/asset/metadata/labels/region` `core/v2/check_config/subscriptions` `core/v2/check_config/command` `core/v2/check_config/timeout` `core/v2/entity/system/os` `core/v2/entity/system/platform` `core/v2/filter/metadata/name` `core/v2/handler/command` `core/v2/hook_config/command` `core/v2/mutator/command` `core/v2/mutator/timeout` `core/v2/silenced/creator` */ Namespace string // Namespace - self descriptive Limit int // Limit - self descriptive Order SuggestionOrder // Order - self descriptive }
QuerySuggestFieldResolverArgs contains arguments provided to suggest when selected
type QuerySuggestFieldResolverParams ¶
type QuerySuggestFieldResolverParams struct { graphql.ResolveParams Args QuerySuggestFieldResolverArgs }
QuerySuggestFieldResolverParams contains contextual info to resolve suggest field
type QueryViewerFieldResolver ¶
type QueryViewerFieldResolver interface { // Viewer implements response to request for viewer field. Viewer(p graphql.ResolveParams) (interface{}, error) }
QueryViewerFieldResolver implement to resolve requests for the Query's viewer field.
type QueryWrappedNodeFieldResolver ¶
type QueryWrappedNodeFieldResolver interface { // WrappedNode implements response to request for wrappedNode field. WrappedNode(p QueryWrappedNodeFieldResolverParams) (interface{}, error) }
QueryWrappedNodeFieldResolver implement to resolve requests for the Query's wrappedNode field.
type QueryWrappedNodeFieldResolverArgs ¶
type QueryWrappedNodeFieldResolverArgs struct {
ID string // ID - The ID of an object.
}
QueryWrappedNodeFieldResolverArgs contains arguments provided to wrappedNode when selected
type QueryWrappedNodeFieldResolverParams ¶
type QueryWrappedNodeFieldResolverParams struct { graphql.ResolveParams Args QueryWrappedNodeFieldResolverArgs }
QueryWrappedNodeFieldResolverParams contains contextual info to resolve wrappedNode field
type ResolveEventInput ¶
type ResolveEventInput struct { // ClientMutationID - A unique identifier for the client performing the mutation. ClientMutationID string // ID - Global ID of the event to resolve. ID string // Source - The source of the resolve request Source string }
ResolveEventInput self descriptive
type ResolveEventPayloadAliases ¶
type ResolveEventPayloadAliases struct{}
ResolveEventPayloadAliases implements all methods on ResolveEventPayloadFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (ResolveEventPayloadAliases) ClientMutationID ¶
func (_ ResolveEventPayloadAliases) ClientMutationID(p graphql.ResolveParams) (string, error)
ClientMutationID implements response to request for 'clientMutationId' field.
func (ResolveEventPayloadAliases) Event ¶
func (_ ResolveEventPayloadAliases) Event(p graphql.ResolveParams) (interface{}, error)
Event implements response to request for 'event' field.
type ResolveEventPayloadClientMutationIDFieldResolver ¶
type ResolveEventPayloadClientMutationIDFieldResolver interface { // ClientMutationID implements response to request for clientMutationId field. ClientMutationID(p graphql.ResolveParams) (string, error) }
ResolveEventPayloadClientMutationIDFieldResolver implement to resolve requests for the ResolveEventPayload's clientMutationId field.
type ResolveEventPayloadEventFieldResolver ¶
type ResolveEventPayloadEventFieldResolver interface { // Event implements response to request for event field. Event(p graphql.ResolveParams) (interface{}, error) }
ResolveEventPayloadEventFieldResolver implement to resolve requests for the ResolveEventPayload's event field.
type ResolveEventPayloadFieldResolvers ¶
type ResolveEventPayloadFieldResolvers interface { ResolveEventPayloadClientMutationIDFieldResolver ResolveEventPayloadEventFieldResolver }
ResolveEventPayloadFieldResolvers represents a collection of methods whose products represent the response values of the 'ResolveEventPayload' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type RoleAliases ¶
type RoleAliases struct{}
RoleAliases implements all methods on RoleFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (RoleAliases) Name ¶
func (_ RoleAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (RoleAliases) Namespace ¶
func (_ RoleAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (RoleAliases) Rules ¶
func (_ RoleAliases) Rules(p graphql.ResolveParams) (interface{}, error)
Rules implements response to request for 'rules' field.
type RoleBindingAliases ¶
type RoleBindingAliases struct{}
RoleBindingAliases implements all methods on RoleBindingFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (RoleBindingAliases) Name ¶
func (_ RoleBindingAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (RoleBindingAliases) Namespace ¶
func (_ RoleBindingAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (RoleBindingAliases) RoleRef ¶
func (_ RoleBindingAliases) RoleRef(p graphql.ResolveParams) (interface{}, error)
RoleRef implements response to request for 'roleRef' field.
func (RoleBindingAliases) Subjects ¶
func (_ RoleBindingAliases) Subjects(p graphql.ResolveParams) (interface{}, error)
Subjects implements response to request for 'subjects' field.
type RoleBindingFieldResolvers ¶
type RoleBindingFieldResolvers interface { RoleBindingSubjectsFieldResolver RoleBindingRoleRefFieldResolver RoleBindingNamespaceFieldResolver RoleBindingNameFieldResolver }
RoleBindingFieldResolvers represents a collection of methods whose products represent the response values of the 'RoleBinding' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type RoleBindingNameFieldResolver ¶
type RoleBindingNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
RoleBindingNameFieldResolver implement to resolve requests for the RoleBinding's name field.
type RoleBindingNamespaceFieldResolver ¶
type RoleBindingNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
RoleBindingNamespaceFieldResolver implement to resolve requests for the RoleBinding's namespace field.
type RoleBindingRoleRefFieldResolver ¶
type RoleBindingRoleRefFieldResolver interface { // RoleRef implements response to request for roleRef field. RoleRef(p graphql.ResolveParams) (interface{}, error) }
RoleBindingRoleRefFieldResolver implement to resolve requests for the RoleBinding's roleRef field.
type RoleBindingSubjectsFieldResolver ¶
type RoleBindingSubjectsFieldResolver interface { // Subjects implements response to request for subjects field. Subjects(p graphql.ResolveParams) (interface{}, error) }
RoleBindingSubjectsFieldResolver implement to resolve requests for the RoleBinding's subjects field.
type RoleFieldResolvers ¶
type RoleFieldResolvers interface { RoleRulesFieldResolver RoleNamespaceFieldResolver RoleNameFieldResolver }
RoleFieldResolvers represents a collection of methods whose products represent the response values of the 'Role' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type RoleNameFieldResolver ¶
type RoleNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
RoleNameFieldResolver implement to resolve requests for the Role's name field.
type RoleNamespaceFieldResolver ¶
type RoleNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
RoleNamespaceFieldResolver implement to resolve requests for the Role's namespace field.
type RoleRefAliases ¶
type RoleRefAliases struct{}
RoleRefAliases implements all methods on RoleRefFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (RoleRefAliases) Name ¶
func (_ RoleRefAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (RoleRefAliases) Type ¶
func (_ RoleRefAliases) Type(p graphql.ResolveParams) (string, error)
Type implements response to request for 'type' field.
type RoleRefFieldResolvers ¶
type RoleRefFieldResolvers interface { RoleRefTypeFieldResolver RoleRefNameFieldResolver }
RoleRefFieldResolvers represents a collection of methods whose products represent the response values of the 'RoleRef' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type RoleRefNameFieldResolver ¶
type RoleRefNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
RoleRefNameFieldResolver implement to resolve requests for the RoleRef's name field.
type RoleRefTypeFieldResolver ¶
type RoleRefTypeFieldResolver interface { // Type implements response to request for type field. Type(p graphql.ResolveParams) (string, error) }
RoleRefTypeFieldResolver implement to resolve requests for the RoleRef's type field.
type RoleRulesFieldResolver ¶
type RoleRulesFieldResolver interface { // Rules implements response to request for rules field. Rules(p graphql.ResolveParams) (interface{}, error) }
RoleRulesFieldResolver implement to resolve requests for the Role's rules field.
type RuleAliases ¶
type RuleAliases struct{}
RuleAliases implements all methods on RuleFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (RuleAliases) ResourceNames ¶
func (_ RuleAliases) ResourceNames(p graphql.ResolveParams) ([]string, error)
ResourceNames implements response to request for 'resourceNames' field.
func (RuleAliases) Resources ¶
func (_ RuleAliases) Resources(p graphql.ResolveParams) ([]string, error)
Resources implements response to request for 'resources' field.
func (RuleAliases) Verbs ¶
func (_ RuleAliases) Verbs(p graphql.ResolveParams) ([]string, error)
Verbs implements response to request for 'verbs' field.
type RuleFieldResolvers ¶
type RuleFieldResolvers interface { RuleVerbsFieldResolver RuleResourcesFieldResolver RuleResourceNamesFieldResolver }
RuleFieldResolvers represents a collection of methods whose products represent the response values of the 'Rule' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type RuleResourceNamesFieldResolver ¶
type RuleResourceNamesFieldResolver interface { // ResourceNames implements response to request for resourceNames field. ResourceNames(p graphql.ResolveParams) ([]string, error) }
RuleResourceNamesFieldResolver implement to resolve requests for the Rule's resourceNames field.
type RuleResourcesFieldResolver ¶
type RuleResourcesFieldResolver interface { // Resources implements response to request for resources field. Resources(p graphql.ResolveParams) ([]string, error) }
RuleResourcesFieldResolver implement to resolve requests for the Rule's resources field.
type RuleVerbsFieldResolver ¶
type RuleVerbsFieldResolver interface { // Verbs implements response to request for verbs field. Verbs(p graphql.ResolveParams) ([]string, error) }
RuleVerbsFieldResolver implement to resolve requests for the Rule's verbs field.
type SilenceInputs ¶
type SilenceInputs struct { // Reason is used to provide context to the entry Reason string // Begin is a timestamp at which the silenced entry takes effect. Begin time.Time /* ExpireOnResolve defaults to false, clears the entry on resolution when set to true */ ExpireOnResolve bool // Expire is the number of seconds the entry will live Expire int }
SilenceInputs self descriptive
type SilencedAliases ¶
type SilencedAliases struct{}
SilencedAliases implements all methods on SilencedFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (SilencedAliases) Begin ¶
func (_ SilencedAliases) Begin(p graphql.ResolveParams) (*time.Time, error)
Begin implements response to request for 'begin' field.
func (SilencedAliases) Check ¶
func (_ SilencedAliases) Check(p graphql.ResolveParams) (interface{}, error)
Check implements response to request for 'check' field.
func (SilencedAliases) Creator ¶
func (_ SilencedAliases) Creator(p graphql.ResolveParams) (string, error)
Creator implements response to request for 'creator' field.
func (SilencedAliases) Expire ¶
func (_ SilencedAliases) Expire(p graphql.ResolveParams) (int, error)
Expire implements response to request for 'expire' field.
func (SilencedAliases) ExpireOnResolve ¶
func (_ SilencedAliases) ExpireOnResolve(p graphql.ResolveParams) (bool, error)
ExpireOnResolve implements response to request for 'expireOnResolve' field.
func (SilencedAliases) Expires ¶
func (_ SilencedAliases) Expires(p graphql.ResolveParams) (*time.Time, error)
Expires implements response to request for 'expires' field.
func (SilencedAliases) ID ¶
func (_ SilencedAliases) ID(p graphql.ResolveParams) (string, error)
ID implements response to request for 'id' field.
func (SilencedAliases) Metadata ¶
func (_ SilencedAliases) Metadata(p graphql.ResolveParams) (interface{}, error)
Metadata implements response to request for 'metadata' field.
func (SilencedAliases) Name ¶
func (_ SilencedAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
func (SilencedAliases) Namespace ¶
func (_ SilencedAliases) Namespace(p graphql.ResolveParams) (string, error)
Namespace implements response to request for 'namespace' field.
func (SilencedAliases) Reason ¶
func (_ SilencedAliases) Reason(p graphql.ResolveParams) (string, error)
Reason implements response to request for 'reason' field.
func (SilencedAliases) Subscription ¶
func (_ SilencedAliases) Subscription(p graphql.ResolveParams) (string, error)
Subscription implements response to request for 'subscription' field.
func (SilencedAliases) ToJSON ¶
func (_ SilencedAliases) ToJSON(p graphql.ResolveParams) (interface{}, error)
ToJSON implements response to request for 'toJSON' field.
type SilencedBeginFieldResolver ¶
type SilencedBeginFieldResolver interface { // Begin implements response to request for begin field. Begin(p graphql.ResolveParams) (*time.Time, error) }
SilencedBeginFieldResolver implement to resolve requests for the Silenced's begin field.
type SilencedCheckFieldResolver ¶
type SilencedCheckFieldResolver interface { // Check implements response to request for check field. Check(p graphql.ResolveParams) (interface{}, error) }
SilencedCheckFieldResolver implement to resolve requests for the Silenced's check field.
type SilencedConnectionAliases ¶
type SilencedConnectionAliases struct{}
SilencedConnectionAliases implements all methods on SilencedConnectionFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (SilencedConnectionAliases) Nodes ¶
func (_ SilencedConnectionAliases) Nodes(p graphql.ResolveParams) (interface{}, error)
Nodes implements response to request for 'nodes' field.
func (SilencedConnectionAliases) PageInfo ¶
func (_ SilencedConnectionAliases) PageInfo(p graphql.ResolveParams) (interface{}, error)
PageInfo implements response to request for 'pageInfo' field.
type SilencedConnectionFieldResolvers ¶
type SilencedConnectionFieldResolvers interface { SilencedConnectionNodesFieldResolver SilencedConnectionPageInfoFieldResolver }
SilencedConnectionFieldResolvers represents a collection of methods whose products represent the response values of the 'SilencedConnection' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type SilencedConnectionNodesFieldResolver ¶
type SilencedConnectionNodesFieldResolver interface { // Nodes implements response to request for nodes field. Nodes(p graphql.ResolveParams) (interface{}, error) }
SilencedConnectionNodesFieldResolver implement to resolve requests for the SilencedConnection's nodes field.
type SilencedConnectionPageInfoFieldResolver ¶
type SilencedConnectionPageInfoFieldResolver interface { // PageInfo implements response to request for pageInfo field. PageInfo(p graphql.ResolveParams) (interface{}, error) }
SilencedConnectionPageInfoFieldResolver implement to resolve requests for the SilencedConnection's pageInfo field.
type SilencedCreatorFieldResolver ¶
type SilencedCreatorFieldResolver interface { // Creator implements response to request for creator field. Creator(p graphql.ResolveParams) (string, error) }
SilencedCreatorFieldResolver implement to resolve requests for the Silenced's creator field.
type SilencedExpireFieldResolver ¶
type SilencedExpireFieldResolver interface { // Expire implements response to request for expire field. Expire(p graphql.ResolveParams) (int, error) }
SilencedExpireFieldResolver implement to resolve requests for the Silenced's expire field.
type SilencedExpireOnResolveFieldResolver ¶
type SilencedExpireOnResolveFieldResolver interface { // ExpireOnResolve implements response to request for expireOnResolve field. ExpireOnResolve(p graphql.ResolveParams) (bool, error) }
SilencedExpireOnResolveFieldResolver implement to resolve requests for the Silenced's expireOnResolve field.
type SilencedExpiresFieldResolver ¶
type SilencedExpiresFieldResolver interface { // Expires implements response to request for expires field. Expires(p graphql.ResolveParams) (*time.Time, error) }
SilencedExpiresFieldResolver implement to resolve requests for the Silenced's expires field.
type SilencedFieldResolvers ¶
type SilencedFieldResolvers interface { SilencedIDFieldResolver SilencedNamespaceFieldResolver SilencedNameFieldResolver SilencedMetadataFieldResolver SilencedExpireFieldResolver SilencedExpiresFieldResolver SilencedExpireOnResolveFieldResolver SilencedCreatorFieldResolver SilencedCheckFieldResolver SilencedReasonFieldResolver SilencedSubscriptionFieldResolver SilencedBeginFieldResolver SilencedToJSONFieldResolver }
SilencedFieldResolvers represents a collection of methods whose products represent the response values of the 'Silenced' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type SilencedIDFieldResolver ¶
type SilencedIDFieldResolver interface { // ID implements response to request for id field. ID(p graphql.ResolveParams) (string, error) }
SilencedIDFieldResolver implement to resolve requests for the Silenced's id field.
type SilencedMetadataFieldResolver ¶
type SilencedMetadataFieldResolver interface { // Metadata implements response to request for metadata field. Metadata(p graphql.ResolveParams) (interface{}, error) }
SilencedMetadataFieldResolver implement to resolve requests for the Silenced's metadata field.
type SilencedNameFieldResolver ¶
type SilencedNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
SilencedNameFieldResolver implement to resolve requests for the Silenced's name field.
type SilencedNamespaceFieldResolver ¶
type SilencedNamespaceFieldResolver interface { // Namespace implements response to request for namespace field. Namespace(p graphql.ResolveParams) (string, error) }
SilencedNamespaceFieldResolver implement to resolve requests for the Silenced's namespace field.
type SilencedReasonFieldResolver ¶
type SilencedReasonFieldResolver interface { // Reason implements response to request for reason field. Reason(p graphql.ResolveParams) (string, error) }
SilencedReasonFieldResolver implement to resolve requests for the Silenced's reason field.
type SilencedSubscriptionFieldResolver ¶
type SilencedSubscriptionFieldResolver interface { // Subscription implements response to request for subscription field. Subscription(p graphql.ResolveParams) (string, error) }
SilencedSubscriptionFieldResolver implement to resolve requests for the Silenced's subscription field.
type SilencedToJSONFieldResolver ¶
type SilencedToJSONFieldResolver interface { // ToJSON implements response to request for toJSON field. ToJSON(p graphql.ResolveParams) (interface{}, error) }
SilencedToJSONFieldResolver implement to resolve requests for the Silenced's toJSON field.
type SilencesListOrder ¶
type SilencesListOrder string
SilencesListOrder Describes ways in which a list of silences can be ordered.
type StandardErrorAliases ¶
type StandardErrorAliases struct{}
StandardErrorAliases implements all methods on StandardErrorFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (StandardErrorAliases) Code ¶
func (_ StandardErrorAliases) Code(p graphql.ResolveParams) (ErrCode, error)
Code implements response to request for 'code' field.
func (StandardErrorAliases) Input ¶
func (_ StandardErrorAliases) Input(p graphql.ResolveParams) (string, error)
Input implements response to request for 'input' field.
func (StandardErrorAliases) Message ¶
func (_ StandardErrorAliases) Message(p graphql.ResolveParams) (string, error)
Message implements response to request for 'message' field.
type StandardErrorCodeFieldResolver ¶
type StandardErrorCodeFieldResolver interface { // Code implements response to request for code field. Code(p graphql.ResolveParams) (ErrCode, error) }
StandardErrorCodeFieldResolver implement to resolve requests for the StandardError's code field.
type StandardErrorFieldResolvers ¶
type StandardErrorFieldResolvers interface { StandardErrorInputFieldResolver StandardErrorCodeFieldResolver StandardErrorMessageFieldResolver }
StandardErrorFieldResolvers represents a collection of methods whose products represent the response values of the 'StandardError' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type StandardErrorInputFieldResolver ¶
type StandardErrorInputFieldResolver interface { // Input implements response to request for input field. Input(p graphql.ResolveParams) (string, error) }
StandardErrorInputFieldResolver implement to resolve requests for the StandardError's input field.
type StandardErrorMessageFieldResolver ¶
type StandardErrorMessageFieldResolver interface { // Message implements response to request for message field. Message(p graphql.ResolveParams) (string, error) }
StandardErrorMessageFieldResolver implement to resolve requests for the StandardError's message field.
type SubjectAliases ¶
type SubjectAliases struct{}
SubjectAliases implements all methods on SubjectFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (SubjectAliases) Kind ¶
func (_ SubjectAliases) Kind(p graphql.ResolveParams) (string, error)
Kind implements response to request for 'kind' field.
func (SubjectAliases) Name ¶
func (_ SubjectAliases) Name(p graphql.ResolveParams) (string, error)
Name implements response to request for 'name' field.
type SubjectFieldResolvers ¶
type SubjectFieldResolvers interface { SubjectKindFieldResolver SubjectNameFieldResolver }
SubjectFieldResolvers represents a collection of methods whose products represent the response values of the 'Subject' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type SubjectKindFieldResolver ¶
type SubjectKindFieldResolver interface { // Kind implements response to request for kind field. Kind(p graphql.ResolveParams) (string, error) }
SubjectKindFieldResolver implement to resolve requests for the Subject's kind field.
type SubjectNameFieldResolver ¶
type SubjectNameFieldResolver interface { // Name implements response to request for name field. Name(p graphql.ResolveParams) (string, error) }
SubjectNameFieldResolver implement to resolve requests for the Subject's name field.
type SubscriptionOccurencesAliases ¶
type SubscriptionOccurencesAliases struct{}
SubscriptionOccurencesAliases implements all methods on SubscriptionOccurencesFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (SubscriptionOccurencesAliases) Occurrences ¶
func (_ SubscriptionOccurencesAliases) Occurrences(p graphql.ResolveParams) (int, error)
Occurrences implements response to request for 'occurrences' field.
func (SubscriptionOccurencesAliases) Subscription ¶
func (_ SubscriptionOccurencesAliases) Subscription(p graphql.ResolveParams) (string, error)
Subscription implements response to request for 'subscription' field.
type SubscriptionOccurencesFieldResolvers ¶
type SubscriptionOccurencesFieldResolvers interface { SubscriptionOccurencesSubscriptionFieldResolver SubscriptionOccurencesOccurrencesFieldResolver }
SubscriptionOccurencesFieldResolvers represents a collection of methods whose products represent the response values of the 'SubscriptionOccurences' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type SubscriptionOccurencesOccurrencesFieldResolver ¶
type SubscriptionOccurencesOccurrencesFieldResolver interface { // Occurrences implements response to request for occurrences field. Occurrences(p graphql.ResolveParams) (int, error) }
SubscriptionOccurencesOccurrencesFieldResolver implement to resolve requests for the SubscriptionOccurences's occurrences field.
type SubscriptionOccurencesSubscriptionFieldResolver ¶
type SubscriptionOccurencesSubscriptionFieldResolver interface { // Subscription implements response to request for subscription field. Subscription(p graphql.ResolveParams) (string, error) }
SubscriptionOccurencesSubscriptionFieldResolver implement to resolve requests for the SubscriptionOccurences's subscription field.
type SubscriptionSetAliases ¶
type SubscriptionSetAliases struct{}
SubscriptionSetAliases implements all methods on SubscriptionSetFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (SubscriptionSetAliases) Entries ¶
func (_ SubscriptionSetAliases) Entries(p SubscriptionSetEntriesFieldResolverParams) (interface{}, error)
Entries implements response to request for 'entries' field.
func (SubscriptionSetAliases) Size ¶
func (_ SubscriptionSetAliases) Size(p graphql.ResolveParams) (int, error)
Size implements response to request for 'size' field.
func (SubscriptionSetAliases) Values ¶
func (_ SubscriptionSetAliases) Values(p SubscriptionSetValuesFieldResolverParams) ([]string, error)
Values implements response to request for 'values' field.
type SubscriptionSetEntriesFieldResolver ¶
type SubscriptionSetEntriesFieldResolver interface { // Entries implements response to request for entries field. Entries(p SubscriptionSetEntriesFieldResolverParams) (interface{}, error) }
SubscriptionSetEntriesFieldResolver implement to resolve requests for the SubscriptionSet's entries field.
type SubscriptionSetEntriesFieldResolverArgs ¶
type SubscriptionSetEntriesFieldResolverArgs struct { Limit int // Limit - self descriptive Offset int // Offset - self descriptive }
SubscriptionSetEntriesFieldResolverArgs contains arguments provided to entries when selected
type SubscriptionSetEntriesFieldResolverParams ¶
type SubscriptionSetEntriesFieldResolverParams struct { graphql.ResolveParams Args SubscriptionSetEntriesFieldResolverArgs }
SubscriptionSetEntriesFieldResolverParams contains contextual info to resolve entries field
type SubscriptionSetFieldResolvers ¶
type SubscriptionSetFieldResolvers interface { SubscriptionSetEntriesFieldResolver SubscriptionSetValuesFieldResolver SubscriptionSetSizeFieldResolver }
SubscriptionSetFieldResolvers represents a collection of methods whose products represent the response values of the 'SubscriptionSet' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type SubscriptionSetOrder ¶
type SubscriptionSetOrder string
SubscriptionSetOrder Describes ways in which a set of subscriptions can be ordered.
type SubscriptionSetSizeFieldResolver ¶
type SubscriptionSetSizeFieldResolver interface { // Size implements response to request for size field. Size(p graphql.ResolveParams) (int, error) }
SubscriptionSetSizeFieldResolver implement to resolve requests for the SubscriptionSet's size field.
type SubscriptionSetValuesFieldResolver ¶
type SubscriptionSetValuesFieldResolver interface { // Values implements response to request for values field. Values(p SubscriptionSetValuesFieldResolverParams) ([]string, error) }
SubscriptionSetValuesFieldResolver implement to resolve requests for the SubscriptionSet's values field.
type SubscriptionSetValuesFieldResolverArgs ¶
type SubscriptionSetValuesFieldResolverArgs struct { Limit int // Limit - self descriptive Offset int // Offset - self descriptive }
SubscriptionSetValuesFieldResolverArgs contains arguments provided to values when selected
type SubscriptionSetValuesFieldResolverParams ¶
type SubscriptionSetValuesFieldResolverParams struct { graphql.ResolveParams Args SubscriptionSetValuesFieldResolverArgs }
SubscriptionSetValuesFieldResolverParams contains contextual info to resolve values field
type SuggestionResultSetAliases ¶
type SuggestionResultSetAliases struct{}
SuggestionResultSetAliases implements all methods on SuggestionResultSetFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (SuggestionResultSetAliases) Values ¶
func (_ SuggestionResultSetAliases) Values(p graphql.ResolveParams) ([]string, error)
Values implements response to request for 'values' field.
type SuggestionResultSetFieldResolvers ¶
type SuggestionResultSetFieldResolvers interface { SuggestionResultSetValuesFieldResolver }
SuggestionResultSetFieldResolvers represents a collection of methods whose products represent the response values of the 'SuggestionResultSet' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type SuggestionResultSetValuesFieldResolver ¶
type SuggestionResultSetValuesFieldResolver interface { // Values implements response to request for values field. Values(p graphql.ResolveParams) ([]string, error) }
SuggestionResultSetValuesFieldResolver implement to resolve requests for the SuggestionResultSet's values field.
type SystemAliases ¶
type SystemAliases struct{}
SystemAliases implements all methods on SystemFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (SystemAliases) Arch ¶
func (_ SystemAliases) Arch(p graphql.ResolveParams) (string, error)
Arch implements response to request for 'arch' field.
func (SystemAliases) Hostname ¶
func (_ SystemAliases) Hostname(p graphql.ResolveParams) (string, error)
Hostname implements response to request for 'hostname' field.
func (SystemAliases) Network ¶
func (_ SystemAliases) Network(p graphql.ResolveParams) (interface{}, error)
Network implements response to request for 'network' field.
func (SystemAliases) Os ¶
func (_ SystemAliases) Os(p graphql.ResolveParams) (string, error)
Os implements response to request for 'os' field.
func (SystemAliases) Platform ¶
func (_ SystemAliases) Platform(p graphql.ResolveParams) (string, error)
Platform implements response to request for 'platform' field.
func (SystemAliases) PlatformFamily ¶
func (_ SystemAliases) PlatformFamily(p graphql.ResolveParams) (string, error)
PlatformFamily implements response to request for 'platformFamily' field.
func (SystemAliases) PlatformVersion ¶
func (_ SystemAliases) PlatformVersion(p graphql.ResolveParams) (string, error)
PlatformVersion implements response to request for 'platformVersion' field.
type SystemArchFieldResolver ¶
type SystemArchFieldResolver interface { // Arch implements response to request for arch field. Arch(p graphql.ResolveParams) (string, error) }
SystemArchFieldResolver implement to resolve requests for the System's arch field.
type SystemFieldResolvers ¶
type SystemFieldResolvers interface { SystemHostnameFieldResolver SystemNetworkFieldResolver SystemOsFieldResolver SystemPlatformFieldResolver SystemPlatformFamilyFieldResolver SystemPlatformVersionFieldResolver SystemArchFieldResolver }
SystemFieldResolvers represents a collection of methods whose products represent the response values of the 'System' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type SystemHostnameFieldResolver ¶
type SystemHostnameFieldResolver interface { // Hostname implements response to request for hostname field. Hostname(p graphql.ResolveParams) (string, error) }
SystemHostnameFieldResolver implement to resolve requests for the System's hostname field.
type SystemNetworkFieldResolver ¶
type SystemNetworkFieldResolver interface { // Network implements response to request for network field. Network(p graphql.ResolveParams) (interface{}, error) }
SystemNetworkFieldResolver implement to resolve requests for the System's network field.
type SystemOsFieldResolver ¶
type SystemOsFieldResolver interface { // Os implements response to request for os field. Os(p graphql.ResolveParams) (string, error) }
SystemOsFieldResolver implement to resolve requests for the System's os field.
type SystemPlatformFamilyFieldResolver ¶
type SystemPlatformFamilyFieldResolver interface { // PlatformFamily implements response to request for platformFamily field. PlatformFamily(p graphql.ResolveParams) (string, error) }
SystemPlatformFamilyFieldResolver implement to resolve requests for the System's platformFamily field.
type SystemPlatformFieldResolver ¶
type SystemPlatformFieldResolver interface { // Platform implements response to request for platform field. Platform(p graphql.ResolveParams) (string, error) }
SystemPlatformFieldResolver implement to resolve requests for the System's platform field.
type SystemPlatformVersionFieldResolver ¶
type SystemPlatformVersionFieldResolver interface { // PlatformVersion implements response to request for platformVersion field. PlatformVersion(p graphql.ResolveParams) (string, error) }
SystemPlatformVersionFieldResolver implement to resolve requests for the System's platformVersion field.
type TimeWindowDaysAliases ¶
type TimeWindowDaysAliases struct{}
TimeWindowDaysAliases implements all methods on TimeWindowDaysFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (TimeWindowDaysAliases) All ¶
func (_ TimeWindowDaysAliases) All(p graphql.ResolveParams) (interface{}, error)
All implements response to request for 'all' field.
func (TimeWindowDaysAliases) Friday ¶
func (_ TimeWindowDaysAliases) Friday(p graphql.ResolveParams) (interface{}, error)
Friday implements response to request for 'friday' field.
func (TimeWindowDaysAliases) Monday ¶
func (_ TimeWindowDaysAliases) Monday(p graphql.ResolveParams) (interface{}, error)
Monday implements response to request for 'monday' field.
func (TimeWindowDaysAliases) Saturday ¶
func (_ TimeWindowDaysAliases) Saturday(p graphql.ResolveParams) (interface{}, error)
Saturday implements response to request for 'saturday' field.
func (TimeWindowDaysAliases) Sunday ¶
func (_ TimeWindowDaysAliases) Sunday(p graphql.ResolveParams) (interface{}, error)
Sunday implements response to request for 'sunday' field.
func (TimeWindowDaysAliases) Thursday ¶
func (_ TimeWindowDaysAliases) Thursday(p graphql.ResolveParams) (interface{}, error)
Thursday implements response to request for 'thursday' field.
func (TimeWindowDaysAliases) Tuesday ¶
func (_ TimeWindowDaysAliases) Tuesday(p graphql.ResolveParams) (interface{}, error)
Tuesday implements response to request for 'tuesday' field.
func (TimeWindowDaysAliases) Wednesday ¶
func (_ TimeWindowDaysAliases) Wednesday(p graphql.ResolveParams) (interface{}, error)
Wednesday implements response to request for 'wednesday' field.
type TimeWindowDaysAllFieldResolver ¶
type TimeWindowDaysAllFieldResolver interface { // All implements response to request for all field. All(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysAllFieldResolver implement to resolve requests for the TimeWindowDays's all field.
type TimeWindowDaysFieldResolvers ¶
type TimeWindowDaysFieldResolvers interface { TimeWindowDaysAllFieldResolver TimeWindowDaysSundayFieldResolver TimeWindowDaysMondayFieldResolver TimeWindowDaysTuesdayFieldResolver TimeWindowDaysWednesdayFieldResolver TimeWindowDaysThursdayFieldResolver TimeWindowDaysFridayFieldResolver TimeWindowDaysSaturdayFieldResolver }
TimeWindowDaysFieldResolvers represents a collection of methods whose products represent the response values of the 'TimeWindowDays' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type TimeWindowDaysFridayFieldResolver ¶
type TimeWindowDaysFridayFieldResolver interface { // Friday implements response to request for friday field. Friday(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysFridayFieldResolver implement to resolve requests for the TimeWindowDays's friday field.
type TimeWindowDaysMondayFieldResolver ¶
type TimeWindowDaysMondayFieldResolver interface { // Monday implements response to request for monday field. Monday(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysMondayFieldResolver implement to resolve requests for the TimeWindowDays's monday field.
type TimeWindowDaysSaturdayFieldResolver ¶
type TimeWindowDaysSaturdayFieldResolver interface { // Saturday implements response to request for saturday field. Saturday(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysSaturdayFieldResolver implement to resolve requests for the TimeWindowDays's saturday field.
type TimeWindowDaysSundayFieldResolver ¶
type TimeWindowDaysSundayFieldResolver interface { // Sunday implements response to request for sunday field. Sunday(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysSundayFieldResolver implement to resolve requests for the TimeWindowDays's sunday field.
type TimeWindowDaysThursdayFieldResolver ¶
type TimeWindowDaysThursdayFieldResolver interface { // Thursday implements response to request for thursday field. Thursday(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysThursdayFieldResolver implement to resolve requests for the TimeWindowDays's thursday field.
type TimeWindowDaysTuesdayFieldResolver ¶
type TimeWindowDaysTuesdayFieldResolver interface { // Tuesday implements response to request for tuesday field. Tuesday(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysTuesdayFieldResolver implement to resolve requests for the TimeWindowDays's tuesday field.
type TimeWindowDaysWednesdayFieldResolver ¶
type TimeWindowDaysWednesdayFieldResolver interface { // Wednesday implements response to request for wednesday field. Wednesday(p graphql.ResolveParams) (interface{}, error) }
TimeWindowDaysWednesdayFieldResolver implement to resolve requests for the TimeWindowDays's wednesday field.
type TimeWindowTimeRangeAliases ¶
type TimeWindowTimeRangeAliases struct{}
TimeWindowTimeRangeAliases implements all methods on TimeWindowTimeRangeFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (TimeWindowTimeRangeAliases) Begin ¶
func (_ TimeWindowTimeRangeAliases) Begin(p graphql.ResolveParams) (string, error)
Begin implements response to request for 'begin' field.
func (TimeWindowTimeRangeAliases) End ¶
func (_ TimeWindowTimeRangeAliases) End(p graphql.ResolveParams) (string, error)
End implements response to request for 'end' field.
type TimeWindowTimeRangeBeginFieldResolver ¶
type TimeWindowTimeRangeBeginFieldResolver interface { // Begin implements response to request for begin field. Begin(p graphql.ResolveParams) (string, error) }
TimeWindowTimeRangeBeginFieldResolver implement to resolve requests for the TimeWindowTimeRange's begin field.
type TimeWindowTimeRangeEndFieldResolver ¶
type TimeWindowTimeRangeEndFieldResolver interface { // End implements response to request for end field. End(p graphql.ResolveParams) (string, error) }
TimeWindowTimeRangeEndFieldResolver implement to resolve requests for the TimeWindowTimeRange's end field.
type TimeWindowTimeRangeFieldResolvers ¶
type TimeWindowTimeRangeFieldResolvers interface { TimeWindowTimeRangeBeginFieldResolver TimeWindowTimeRangeEndFieldResolver }
TimeWindowTimeRangeFieldResolvers represents a collection of methods whose products represent the response values of the 'TimeWindowTimeRange' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type TimeWindowWhenAliases ¶
type TimeWindowWhenAliases struct{}
TimeWindowWhenAliases implements all methods on TimeWindowWhenFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (TimeWindowWhenAliases) Days ¶
func (_ TimeWindowWhenAliases) Days(p graphql.ResolveParams) (interface{}, error)
Days implements response to request for 'days' field.
type TimeWindowWhenDaysFieldResolver ¶
type TimeWindowWhenDaysFieldResolver interface { // Days implements response to request for days field. Days(p graphql.ResolveParams) (interface{}, error) }
TimeWindowWhenDaysFieldResolver implement to resolve requests for the TimeWindowWhen's days field.
type TimeWindowWhenFieldResolvers ¶
type TimeWindowWhenFieldResolvers interface { TimeWindowWhenDaysFieldResolver }
TimeWindowWhenFieldResolvers represents a collection of methods whose products represent the response values of the 'TimeWindowWhen' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type UpdateCheckInput ¶
type UpdateCheckInput struct { // ClientMutationID - A unique identifier for the client performing the mutation. ClientMutationID string // ID - Global ID of the check to update. ID string // Props - properties of the check Props *CheckConfigInputs }
UpdateCheckInput self descriptive
type UpdateCheckPayloadAliases ¶
type UpdateCheckPayloadAliases struct{}
UpdateCheckPayloadAliases implements all methods on UpdateCheckPayloadFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (UpdateCheckPayloadAliases) Check ¶
func (_ UpdateCheckPayloadAliases) Check(p graphql.ResolveParams) (interface{}, error)
Check implements response to request for 'check' field.
func (UpdateCheckPayloadAliases) ClientMutationID ¶
func (_ UpdateCheckPayloadAliases) ClientMutationID(p graphql.ResolveParams) (string, error)
ClientMutationID implements response to request for 'clientMutationId' field.
type UpdateCheckPayloadCheckFieldResolver ¶
type UpdateCheckPayloadCheckFieldResolver interface { // Check implements response to request for check field. Check(p graphql.ResolveParams) (interface{}, error) }
UpdateCheckPayloadCheckFieldResolver implement to resolve requests for the UpdateCheckPayload's check field.
type UpdateCheckPayloadClientMutationIDFieldResolver ¶
type UpdateCheckPayloadClientMutationIDFieldResolver interface { // ClientMutationID implements response to request for clientMutationId field. ClientMutationID(p graphql.ResolveParams) (string, error) }
UpdateCheckPayloadClientMutationIDFieldResolver implement to resolve requests for the UpdateCheckPayload's clientMutationId field.
type UpdateCheckPayloadFieldResolvers ¶
type UpdateCheckPayloadFieldResolvers interface { UpdateCheckPayloadClientMutationIDFieldResolver UpdateCheckPayloadCheckFieldResolver }
UpdateCheckPayloadFieldResolvers represents a collection of methods whose products represent the response values of the 'UpdateCheckPayload' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type UserAliases ¶
type UserAliases struct{}
UserAliases implements all methods on UserFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (UserAliases) Disabled ¶
func (_ UserAliases) Disabled(p graphql.ResolveParams) (bool, error)
Disabled implements response to request for 'disabled' field.
func (UserAliases) Groups ¶
func (_ UserAliases) Groups(p graphql.ResolveParams) ([]string, error)
Groups implements response to request for 'groups' field.
func (UserAliases) HasPassword ¶
func (_ UserAliases) HasPassword(p graphql.ResolveParams) (bool, error)
HasPassword implements response to request for 'hasPassword' field.
func (UserAliases) Username ¶
func (_ UserAliases) Username(p graphql.ResolveParams) (string, error)
Username implements response to request for 'username' field.
type UserDisabledFieldResolver ¶
type UserDisabledFieldResolver interface { // Disabled implements response to request for disabled field. Disabled(p graphql.ResolveParams) (bool, error) }
UserDisabledFieldResolver implement to resolve requests for the User's disabled field.
type UserFieldResolvers ¶
type UserFieldResolvers interface { UserUsernameFieldResolver UserGroupsFieldResolver UserDisabledFieldResolver UserHasPasswordFieldResolver }
UserFieldResolvers represents a collection of methods whose products represent the response values of the 'User' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type UserGroupsFieldResolver ¶
type UserGroupsFieldResolver interface { // Groups implements response to request for groups field. Groups(p graphql.ResolveParams) ([]string, error) }
UserGroupsFieldResolver implement to resolve requests for the User's groups field.
type UserHasPasswordFieldResolver ¶
type UserHasPasswordFieldResolver interface { // HasPassword implements response to request for hasPassword field. HasPassword(p graphql.ResolveParams) (bool, error) }
UserHasPasswordFieldResolver implement to resolve requests for the User's hasPassword field.
type UserUsernameFieldResolver ¶
type UserUsernameFieldResolver interface { // Username implements response to request for username field. Username(p graphql.ResolveParams) (string, error) }
UserUsernameFieldResolver implement to resolve requests for the User's username field.
type ViewerAliases ¶
type ViewerAliases struct{}
ViewerAliases implements all methods on ViewerFieldResolvers interface by using reflection to match name of field to a field on the given value. Intent is reduce friction of writing new resolvers by removing all the instances where you would simply have the resolvers method return a field.
== Example SDL
type Dog { name: String! weight: Float! dob: DateTime breed: [Breed] }
== Example generated aliases
type DogAliases struct {} func (_ DogAliases) Name(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Weight(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Dob(p graphql.ResolveParams) (interface{}, error) { // reflect... } func (_ DogAliases) Breed(p graphql.ResolveParams) (interface{}, error) { // reflect... }
== Example Implementation
type DogResolver struct { // Implements DogResolver DogAliases store store.BreedStore } // NOTE: // All other fields are satisified by DogAliases but since this one // requires hitting the store we implement it in our resolver. func (r *DogResolver) Breed(p graphql.ResolveParams) interface{} { dog := v.(*Dog) return r.BreedsById(dog.BreedIDs) }
func (ViewerAliases) Namespaces ¶
func (_ ViewerAliases) Namespaces(p graphql.ResolveParams) (interface{}, error)
Namespaces implements response to request for 'namespaces' field.
func (ViewerAliases) User ¶
func (_ ViewerAliases) User(p graphql.ResolveParams) (interface{}, error)
User implements response to request for 'user' field.
type ViewerFieldResolvers ¶
type ViewerFieldResolvers interface { ViewerNamespacesFieldResolver ViewerUserFieldResolver }
ViewerFieldResolvers represents a collection of methods whose products represent the response values of the 'Viewer' type.
== Example SDL
""" Dog's are not hooman. """ type Dog implements Pet { "name of this fine beast." name: String! "breed of this silly animal; probably shibe." breed: [Breed] }
== Example generated interface
// DogResolver ... type DogFieldResolvers interface { DogNameFieldResolver DogBreedFieldResolver // IsTypeOf is used to determine if a given value is associated with the Dog type IsTypeOf(interface{}, graphql.IsTypeOfParams) bool }
== Example implementation ...
// DogResolver implements DogFieldResolvers interface type DogResolver struct { logger logrus.LogEntry store interface{ store.BreedStore store.DogStore } } // Name implements response to request for name field. func (r *DogResolver) Name(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) return dog.GetName() } // Breed implements response to request for breed field. func (r *DogResolver) Breed(p graphql.ResolveParams) (interface{}, error) { // ... implementation details ... dog := p.Source.(DogGetter) breed := r.store.GetBreed(dog.GetBreedName()) return breed } // IsTypeOf is used to determine if a given value is associated with the Dog type func (r *DogResolver) IsTypeOf(p graphql.IsTypeOfParams) bool { // ... implementation details ... _, ok := p.Value.(DogGetter) return ok }
type ViewerNamespacesFieldResolver ¶
type ViewerNamespacesFieldResolver interface { // Namespaces implements response to request for namespaces field. Namespaces(p graphql.ResolveParams) (interface{}, error) }
ViewerNamespacesFieldResolver implement to resolve requests for the Viewer's namespaces field.
type ViewerUserFieldResolver ¶
type ViewerUserFieldResolver interface { // User implements response to request for user field. User(p graphql.ResolveParams) (interface{}, error) }
ViewerUserFieldResolver implement to resolve requests for the Viewer's user field.
Source Files ¶
- asset.gql.go
- check.gql.go
- entity.gql.go
- errors.gql.go
- event.gql.go
- handler.gql.go
- hook.gql.go
- meta.gql.go
- mutations.gql.go
- mutator.gql.go
- namespace.gql.go
- node.gql.go
- pagination.gql.go
- query.gql.go
- rbac.gql.go
- resource.gql.go
- scalars.gql.go
- schema.gql.go
- silenced.gql.go
- subscriptions.gql.go
- suggest.gql.go
- time_window.gql.go
- user.gql.go
- viewer.gql.go