Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
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 = 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 = 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
FromJSON a => FromJSON (Page a) Source # | |
ToJSON a => ToJSON (Page a) Source # | |
Generic (Page a) Source # | |
Show a => Show (Page a) Source # | |
Eq a => Eq (Page a) Source # | |
type Rep (Page a) Source # | |
Defined in Network.RabbitMqAdmin type Rep (Page a) = D1 ('MetaData "Page" "Network.RabbitMqAdmin" "extended-0.1.0-4cEsC3fBuRj3mX06ExESZr" 'False) (C1 ('MetaCons "Page" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a]) :*: (S1 ('MetaSel ('Just "page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "pageCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |
Upstream Docs: https://rawcdn.githack.com/rabbitmq/rabbitmq-server/v3.12.0/deps/rabbitmq_management/priv/www/api/index.html
AdminAPI | |
|
Instances
data AuthenticatedAPI route Source #
Instances
Generic (AuthenticatedAPI route) Source # | |
Defined in Network.RabbitMqAdmin type Rep (AuthenticatedAPI route) :: Type -> Type # 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-4cEsC3fBuRj3mX06ExESZr" '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 # | |
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-4cEsC3fBuRj3mX06ExESZr" '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 #
Connection | |
|
Instances
adminClient :: BasicAuthData -> AdminAPI (AsClientT ClientM) Source #