canteven-listen-http-1.0.0.3: data types to describe HTTP services

Safe HaskellNone
LanguageHaskell2010

Canteven.Listen.HTTP

Description

Types for the canteven-serve-with-ekg library.

Synopsis

Documentation

data ListenerConfig Source #

A type representing a single "listener".

An application can listen to many of these

Constructors

ListenerConfig 

newtype ListenHTTPConfig Source #

Toplevel type to parse listeners out of a config file.

Constructors

ListenHTTPConfig 

Instances

Generic ListenHTTPConfig Source # 
FromJSON ListenHTTPConfig Source # 
type Rep ListenHTTPConfig Source # 
type Rep ListenHTTPConfig = D1 (MetaData "ListenHTTPConfig" "Canteven.Listen.HTTP" "canteven-listen-http-1.0.0.3-5M81nZWGxjA3ftGfN8kDtz" True) (C1 (MetaCons "ListenHTTPConfig" PrefixI True) (S1 (MetaSel (Just Symbol "listeners") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [ListenerConfig])))

data Scheme Source #

Constructors

HTTP 
HTTPS 

Instances

Eq Scheme Source # 

Methods

(==) :: Scheme -> Scheme -> Bool #

(/=) :: Scheme -> Scheme -> Bool #

Show Scheme Source # 
Generic Scheme Source # 

Associated Types

type Rep Scheme :: * -> * #

Methods

from :: Scheme -> Rep Scheme x #

to :: Rep Scheme x -> Scheme #

FromJSON Scheme Source # 
type Rep Scheme Source # 
type Rep Scheme = D1 (MetaData "Scheme" "Canteven.Listen.HTTP" "canteven-listen-http-1.0.0.3-5M81nZWGxjA3ftGfN8kDtz" False) ((:+:) (C1 (MetaCons "HTTP" PrefixI False) U1) (C1 (MetaCons "HTTPS" PrefixI False) U1))

data WithListenHTTPConfig userConfig Source #

A type that adds a ListenHTTPConfig to any other config.

Constructors

WithListenHTTPConfig 

Fields

Instances

Generic (WithListenHTTPConfig userConfig) Source # 

Associated Types

type Rep (WithListenHTTPConfig userConfig) :: * -> * #

Methods

from :: WithListenHTTPConfig userConfig -> Rep (WithListenHTTPConfig userConfig) x #

to :: Rep (WithListenHTTPConfig userConfig) x -> WithListenHTTPConfig userConfig #

FromJSON c => FromJSON (WithListenHTTPConfig c) Source # 
type Rep (WithListenHTTPConfig userConfig) Source # 
type Rep (WithListenHTTPConfig userConfig) = D1 (MetaData "WithListenHTTPConfig" "Canteven.Listen.HTTP" "canteven-listen-http-1.0.0.3-5M81nZWGxjA3ftGfN8kDtz" False) (C1 (MetaCons "WithListenHTTPConfig" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "listenConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ListenHTTPConfig)) (S1 (MetaSel (Just Symbol "userConfig") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 userConfig))))