Safe Haskell | None |
---|---|
Language | Haskell2010 |
Servant.Ekg
Documentation
class HasEndpoint a where Source #
Methods
getEndpoint :: Proxy a -> Request -> Maybe APIEndpoint Source #
enumerateEndpoints :: Proxy a -> [APIEndpoint] Source #
Instances
data APIEndpoint Source #
Constructors
APIEndpoint | |
Fields
|
Instances
Eq APIEndpoint Source # | |
Defined in Servant.Ekg.Internal | |
Show APIEndpoint Source # | |
Defined in Servant.Ekg.Internal Methods showsPrec :: Int -> APIEndpoint -> ShowS # show :: APIEndpoint -> String # showList :: [APIEndpoint] -> ShowS # | |
Generic APIEndpoint Source # | |
Defined in Servant.Ekg.Internal Associated Types type Rep APIEndpoint :: Type -> Type # | |
Hashable APIEndpoint Source # | |
Defined in Servant.Ekg.Internal | |
type Rep APIEndpoint Source # | |
Defined in Servant.Ekg.Internal type Rep APIEndpoint = D1 (MetaData "APIEndpoint" "Servant.Ekg.Internal" "servant-ekg-0.3-6fUPJAIsl2Qi31EQF2Kk" False) (C1 (MetaCons "APIEndpoint" PrefixI True) (S1 (MetaSel (Just "pathSegments") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text]) :*: S1 (MetaSel (Just "method") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Method))) |
monitorEndpoints :: HasEndpoint api => Proxy api -> Store -> IO Middleware Source #