| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Prometheus.Servant.Internal
Synopsis
- data Endpoint = Endpoint {
- ePathSegments :: [Text]
- eMethod :: Method
- class HasEndpoint api where
- getEndpoint :: Proxy api -> Request -> Maybe Endpoint
- enumerateEndpoints :: Proxy api -> [Endpoint]
Documentation
Servant Endpoint.
Constructors
| Endpoint | |
Fields
| |
Instances
| Generic Endpoint Source # | |
| Show Endpoint Source # | |
| Eq Endpoint Source # | |
| Hashable Endpoint Source # | |
Defined in Prometheus.Servant.Internal | |
| type Rep Endpoint Source # | |
Defined in Prometheus.Servant.Internal type Rep Endpoint = D1 ('MetaData "Endpoint" "Prometheus.Servant.Internal" "servant-prometheus-1.1.0-Lna1PeaIUoNnxoJPkwr0q" 'False) (C1 ('MetaCons "Endpoint" 'PrefixI 'True) (S1 ('MetaSel ('Just "ePathSegments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]) :*: S1 ('MetaSel ('Just "eMethod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Method))) | |
class HasEndpoint api where Source #
Specifies that api has servant Endpoint.
Methods
getEndpoint :: Proxy api -> Request -> Maybe Endpoint Source #
enumerateEndpoints :: Proxy api -> [Endpoint] Source #
Enumerates api to get list of Endpoints.