Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype RequestId = RequestId {
- unRequestId :: Text
- getRequestId :: MonadIO m => [Header] -> m (RequestId, [Header])
- newtype DbUid = DbUid {}
- newtype DbVersion = DbVersion Text
- newtype PGVersion = PGVersion Int
- pgToDbVersion :: PGVersion -> DbVersion
- newtype MetadataDbId = MetadataDbId {}
- mdDbIdToDbUid :: MetadataDbId -> DbUid
- newtype InstanceId = InstanceId {}
- generateInstanceId :: IO InstanceId
- data ExperimentalFeature
- experimentalFeatureKey :: ExperimentalFeature -> Text
- data MaintenanceMode a
- data ReadOnlyMode
- data EventingMode
- data ApolloFederationStatus
- isApolloFederationEnabled :: ApolloFederationStatus -> Bool
- data GranularPrometheusMetricsState
- data CloseWebsocketsOnMetadataChangeStatus
- isCloseWebsocketsOnMetadataChangeStatusEnabled :: CloseWebsocketsOnMetadataChangeStatus -> Bool
- class Monad m => MonadGetPolicies m where
Documentation
A uuid of a source database.
pgToDbVersion :: PGVersion -> DbVersion Source #
newtype MetadataDbId Source #
A uuid of the postgres metadata db.
Instances
FromJSON MetadataDbId Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser MetadataDbId Source # parseJSONList :: Value -> Parser [MetadataDbId] Source # | |
ToJSON MetadataDbId Source # | |
Defined in Hasura.Server.Types toJSON :: MetadataDbId -> Value Source # toEncoding :: MetadataDbId -> Encoding Source # toJSONList :: [MetadataDbId] -> Value Source # toEncodingList :: [MetadataDbId] -> Encoding Source # | |
Show MetadataDbId Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> MetadataDbId -> ShowS # show :: MetadataDbId -> String # showList :: [MetadataDbId] -> ShowS # | |
Eq MetadataDbId Source # | |
Defined in Hasura.Server.Types (==) :: MetadataDbId -> MetadataDbId -> Bool # (/=) :: MetadataDbId -> MetadataDbId -> Bool # | |
FromCol MetadataDbId Source # | |
Defined in Hasura.Server.Types fromCol :: Maybe ByteString -> Either Text MetadataDbId Source # | |
ToPrepArg MetadataDbId Source # | |
Defined in Hasura.Server.Types toPrepVal :: MetadataDbId -> PrepArg Source # |
mdDbIdToDbUid :: MetadataDbId -> DbUid Source #
newtype InstanceId Source #
A UUID for each running instance of graphql-engine, generated fresh each time graphql-engine starts up
Instances
FromJSON InstanceId Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser InstanceId Source # parseJSONList :: Value -> Parser [InstanceId] Source # | |
ToJSON InstanceId Source # | |
Defined in Hasura.Server.Types toJSON :: InstanceId -> Value Source # toEncoding :: InstanceId -> Encoding Source # toJSONList :: [InstanceId] -> Value Source # toEncodingList :: [InstanceId] -> Encoding Source # | |
Show InstanceId Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> InstanceId -> ShowS # show :: InstanceId -> String # showList :: [InstanceId] -> ShowS # | |
Eq InstanceId Source # | |
Defined in Hasura.Server.Types (==) :: InstanceId -> InstanceId -> Bool # (/=) :: InstanceId -> InstanceId -> Bool # | |
FromCol InstanceId Source # | |
Defined in Hasura.Server.Types fromCol :: Maybe ByteString -> Either Text InstanceId Source # | |
ToPrepArg InstanceId Source # | |
Defined in Hasura.Server.Types toPrepVal :: InstanceId -> PrepArg Source # |
generateInstanceId :: IO InstanceId Source #
Generate an InstanceId
from a UUID
data ExperimentalFeature Source #
Instances
data MaintenanceMode a Source #
Instances
FromJSON (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Types parseJSON :: Value -> Parser (MaintenanceMode ()) Source # parseJSONList :: Value -> Parser [MaintenanceMode ()] Source # | |
ToJSON (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Types toJSON :: MaintenanceMode () -> Value Source # toEncoding :: MaintenanceMode () -> Encoding Source # toJSONList :: [MaintenanceMode ()] -> Value Source # toEncodingList :: [MaintenanceMode ()] -> Encoding Source # | |
Show a => Show (MaintenanceMode a) Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> MaintenanceMode a -> ShowS # show :: MaintenanceMode a -> String # showList :: [MaintenanceMode a] -> ShowS # | |
Eq a => Eq (MaintenanceMode a) Source # | |
Defined in Hasura.Server.Types (==) :: MaintenanceMode a -> MaintenanceMode a -> Bool # (/=) :: MaintenanceMode a -> MaintenanceMode a -> Bool # | |
FromEnv (MaintenanceMode ()) Source # | |
Defined in Hasura.Server.Init.Env |
data ReadOnlyMode Source #
See Note [ReadOnly Mode]
Instances
Show ReadOnlyMode Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> ReadOnlyMode -> ShowS # show :: ReadOnlyMode -> String # showList :: [ReadOnlyMode] -> ShowS # | |
Eq ReadOnlyMode Source # | |
Defined in Hasura.Server.Types (==) :: ReadOnlyMode -> ReadOnlyMode -> Bool # (/=) :: ReadOnlyMode -> ReadOnlyMode -> Bool # |
data EventingMode Source #
EventingMode decides whether the eventing subsystem should be enabled or disabled.
EventDisabled
mode disables Event Triggers, Async Actions, Scheduled Events and source catalaog migrations.
This is an internal feature and will not be exposed to users.
Instances
Show EventingMode Source # | |
Defined in Hasura.Server.Types showsPrec :: Int -> EventingMode -> ShowS # show :: EventingMode -> String # showList :: [EventingMode] -> ShowS # | |
Eq EventingMode Source # | |
Defined in Hasura.Server.Types (==) :: EventingMode -> EventingMode -> Bool # (/=) :: EventingMode -> EventingMode -> Bool # |
data ApolloFederationStatus Source #
Whether or not to enable apollo federation fields.
Instances
data GranularPrometheusMetricsState Source #
Whether or not to enable granular metrics for Prometheus.
GranularMetricsOn
will enable the dynamic labels for the metrics.
GranularMetricsOff
will disable the dynamic labels for the metrics.
- *Warning**: Enabling dynamic labels for Prometheus metrics can cause cardinality issues and can cause memory usage to increase.
Instances
data CloseWebsocketsOnMetadataChangeStatus Source #
Whether or not to close websocket connections on metadata change.
Instances
isCloseWebsocketsOnMetadataChangeStatusEnabled :: CloseWebsocketsOnMetadataChangeStatus -> Bool Source #
class Monad m => MonadGetPolicies m where Source #
runGetApiTimeLimit :: m (Maybe MaxTime) Source #
runGetPrometheusMetricsGranularity :: m (IO GranularPrometheusMetricsState) Source #
Instances
MonadGetPolicies AppM Source # | |
Defined in Hasura.App | |
MonadGetPolicies m => MonadGetPolicies (CacheRWT m) Source # | |
MonadGetPolicies m => MonadGetPolicies (MetadataT m) Source # | |
MonadGetPolicies m => MonadGetPolicies (Handler m) Source # | |
Defined in Hasura.Server.App | |
MonadGetPolicies m => MonadGetPolicies (TraceT m) Source # | |
Defined in Hasura.Tracing.Monad | |
MonadGetPolicies m => MonadGetPolicies (ExceptT e m) Source # | |
Defined in Hasura.Server.Types | |
MonadGetPolicies m => MonadGetPolicies (ReaderT r m) Source # | |
Defined in Hasura.Server.Types | |
MonadGetPolicies m => MonadGetPolicies (StateT w m) Source # | |
Defined in Hasura.Server.Types |