{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Agent.LifeCycle.ServiceInfo
  ( ServiceInfo (..),
  )
where

import Hercules.API.Prelude

data ServiceInfo = ServiceInfo
  { ServiceInfo -> (Int, Int)
version :: (Int, Int),
    ServiceInfo -> Text
agentSocketBaseURL :: Text,
    ServiceInfo -> Text
bulkSocketBaseURL :: Text
  }
  deriving ((forall x. ServiceInfo -> Rep ServiceInfo x)
-> (forall x. Rep ServiceInfo x -> ServiceInfo)
-> Generic ServiceInfo
forall x. Rep ServiceInfo x -> ServiceInfo
forall x. ServiceInfo -> Rep ServiceInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ServiceInfo x -> ServiceInfo
$cfrom :: forall x. ServiceInfo -> Rep ServiceInfo x
Generic, Int -> ServiceInfo -> ShowS
[ServiceInfo] -> ShowS
ServiceInfo -> String
(Int -> ServiceInfo -> ShowS)
-> (ServiceInfo -> String)
-> ([ServiceInfo] -> ShowS)
-> Show ServiceInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServiceInfo] -> ShowS
$cshowList :: [ServiceInfo] -> ShowS
show :: ServiceInfo -> String
$cshow :: ServiceInfo -> String
showsPrec :: Int -> ServiceInfo -> ShowS
$cshowsPrec :: Int -> ServiceInfo -> ShowS
Show, ServiceInfo -> ServiceInfo -> Bool
(ServiceInfo -> ServiceInfo -> Bool)
-> (ServiceInfo -> ServiceInfo -> Bool) -> Eq ServiceInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServiceInfo -> ServiceInfo -> Bool
$c/= :: ServiceInfo -> ServiceInfo -> Bool
== :: ServiceInfo -> ServiceInfo -> Bool
$c== :: ServiceInfo -> ServiceInfo -> Bool
Eq, ServiceInfo -> ()
(ServiceInfo -> ()) -> NFData ServiceInfo
forall a. (a -> ()) -> NFData a
rnf :: ServiceInfo -> ()
$crnf :: ServiceInfo -> ()
NFData, [ServiceInfo] -> Encoding
[ServiceInfo] -> Value
ServiceInfo -> Encoding
ServiceInfo -> Value
(ServiceInfo -> Value)
-> (ServiceInfo -> Encoding)
-> ([ServiceInfo] -> Value)
-> ([ServiceInfo] -> Encoding)
-> ToJSON ServiceInfo
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ServiceInfo] -> Encoding
$ctoEncodingList :: [ServiceInfo] -> Encoding
toJSONList :: [ServiceInfo] -> Value
$ctoJSONList :: [ServiceInfo] -> Value
toEncoding :: ServiceInfo -> Encoding
$ctoEncoding :: ServiceInfo -> Encoding
toJSON :: ServiceInfo -> Value
$ctoJSON :: ServiceInfo -> Value
ToJSON, Value -> Parser [ServiceInfo]
Value -> Parser ServiceInfo
(Value -> Parser ServiceInfo)
-> (Value -> Parser [ServiceInfo]) -> FromJSON ServiceInfo
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ServiceInfo]
$cparseJSONList :: Value -> Parser [ServiceInfo]
parseJSON :: Value -> Parser ServiceInfo
$cparseJSON :: Value -> Parser ServiceInfo
FromJSON)