Safe Haskell | None |
---|---|
Language | GHC2021 |
Network.RabbitMqAdmin
Description
Perhaps this module should be a separate package and published to hackage.
Synopsis
- type RabbitMqBasicAuth = BasicAuth "RabbitMq Management" BasicAuthData
- type VHost = Text
- type QueueName = Text
- data Page a = Page {}
- data AdminAPI (route :: k) = AdminAPI {
- listQueuesByVHost :: route :- ("api" :> ("queues" :> (Capture "vhost" VHost :> (QueryParam' '[Required, Strict] "name" Text :> (QueryParam' '[Required, Strict] "use_regex" Bool :> (QueryParam' '[Required, Strict] "page_size" Int :> (QueryParam' '[Required, Strict] "page" Int :> Get '[JSON] (Page Queue))))))))
- deleteQueue :: route :- ("api" :> ("queues" :> (Capture "vhost" VHost :> (Capture "queue" QueueName :> DeleteNoContent))))
- listConnectionsByVHost :: route :- ("api" :> ("vhosts" :> (Capture "vhost" Text :> ("connections" :> Get '[JSON] [Connection]))))
- deleteConnection :: route :- ("api" :> ("connections" :> (Capture "name" Text :> DeleteNoContent)))
- data AuthenticatedAPI (route :: k) = AuthenticatedAPI {}
- jsonOptions :: Options
- data Queue = Queue {}
- data Connection = Connection {
- userProvidedName :: Maybe Text
- name :: Text
- adminClient :: BasicAuthData -> AdminAPI (AsClientT ClientM)
Documentation
type RabbitMqBasicAuth = BasicAuth "RabbitMq Management" BasicAuthData Source #
Instances
data AdminAPI (route :: k) Source #
Upstream Docs: https://rawcdn.githack.com/rabbitmq/rabbitmq-server/v3.12.0/deps/rabbitmq_management/priv/www/api/index.html
Constructors
AdminAPI | |
Fields
|
Instances
Generic (AdminAPI route) Source # | |||||
Defined in Network.RabbitMqAdmin Associated Types
| |||||
type Rep (AdminAPI route) Source # | |||||
Defined in Network.RabbitMqAdmin type Rep (AdminAPI route) = D1 ('MetaData "AdminAPI" "Network.RabbitMqAdmin" "extended-0.1.0-14c0x4V4AuLDvHggsqKUd8" 'False) (C1 ('MetaCons "AdminAPI" 'PrefixI 'True) ((S1 ('MetaSel ('Just "listQueuesByVHost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- ("api" :> ("queues" :> (Capture "vhost" VHost :> (QueryParam' '[Required, Strict] "name" Text :> (QueryParam' '[Required, Strict] "use_regex" Bool :> (QueryParam' '[Required, Strict] "page_size" Int :> (QueryParam' '[Required, Strict] "page" Int :> Get '[JSON] (Page Queue)))))))))) :*: S1 ('MetaSel ('Just "deleteQueue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- ("api" :> ("queues" :> (Capture "vhost" VHost :> (Capture "queue" QueueName :> DeleteNoContent))))))) :*: (S1 ('MetaSel ('Just "listConnectionsByVHost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- ("api" :> ("vhosts" :> (Capture "vhost" Text :> ("connections" :> Get '[JSON] [Connection])))))) :*: S1 ('MetaSel ('Just "deleteConnection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- ("api" :> ("connections" :> (Capture "name" Text :> DeleteNoContent)))))))) |
data AuthenticatedAPI (route :: k) Source #
Constructors
AuthenticatedAPI | |
Instances
Generic (AuthenticatedAPI route) Source # | |||||
Defined in Network.RabbitMqAdmin Associated Types
Methods from :: AuthenticatedAPI route -> Rep (AuthenticatedAPI route) x # to :: Rep (AuthenticatedAPI route) x -> AuthenticatedAPI route # | |||||
type Rep (AuthenticatedAPI route) Source # | |||||
Defined in Network.RabbitMqAdmin type Rep (AuthenticatedAPI route) = D1 ('MetaData "AuthenticatedAPI" "Network.RabbitMqAdmin" "extended-0.1.0-14c0x4V4AuLDvHggsqKUd8" 'False) (C1 ('MetaCons "AuthenticatedAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "api") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (RabbitMqBasicAuth :> ToServant (AdminAPI :: Type -> Type) AsApi))))) |
Instances
FromJSON Queue Source # | |||||
ToJSON Queue Source # | |||||
Generic Queue Source # | |||||
Defined in Network.RabbitMqAdmin Associated Types
| |||||
Show Queue Source # | |||||
Eq Queue Source # | |||||
type Rep Queue Source # | |||||
Defined in Network.RabbitMqAdmin type Rep Queue = D1 ('MetaData "Queue" "Network.RabbitMqAdmin" "extended-0.1.0-14c0x4V4AuLDvHggsqKUd8" 'False) (C1 ('MetaCons "Queue" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "vhost") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data Connection Source #
Constructors
Connection | |
Fields
|
Instances
FromJSON Connection Source # | |||||
Defined in Network.RabbitMqAdmin Methods parseJSON :: Value -> Parser Connection Source # parseJSONList :: Value -> Parser [Connection] Source # | |||||
ToJSON Connection Source # | |||||
Defined in Network.RabbitMqAdmin Methods toJSON :: Connection -> Value Source # toEncoding :: Connection -> Encoding Source # toJSONList :: [Connection] -> Value Source # toEncodingList :: [Connection] -> Encoding Source # omitField :: Connection -> Bool Source # | |||||
Generic Connection Source # | |||||
Defined in Network.RabbitMqAdmin Associated Types
| |||||
Show Connection Source # | |||||
Defined in Network.RabbitMqAdmin Methods showsPrec :: Int -> Connection -> ShowS # show :: Connection -> String # showList :: [Connection] -> ShowS # | |||||
Eq Connection Source # | |||||
Defined in Network.RabbitMqAdmin | |||||
type Rep Connection Source # | |||||
Defined in Network.RabbitMqAdmin type Rep Connection = D1 ('MetaData "Connection" "Network.RabbitMqAdmin" "extended-0.1.0-14c0x4V4AuLDvHggsqKUd8" 'False) (C1 ('MetaCons "Connection" 'PrefixI 'True) (S1 ('MetaSel ('Just "userProvidedName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
adminClient :: BasicAuthData -> AdminAPI (AsClientT ClientM) Source #