| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Server.Information
Documentation
data ServerInformation Source #
Constructors
| ServerInformation | |
Fields
| |
Instances
| FromJSON ServerInformation Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser ServerInformation parseJSONList :: Value -> Parser [ServerInformation] omittedField :: Maybe ServerInformation | |
| ToJSON ServerInformation Source # | |
Defined in Simplex.Messaging.Server.Information Methods toJSON :: ServerInformation -> Value toEncoding :: ServerInformation -> Encoding toJSONList :: [ServerInformation] -> Value toEncodingList :: [ServerInformation] -> Encoding omitField :: ServerInformation -> Bool | |
| Show ServerInformation Source # | |
Defined in Simplex.Messaging.Server.Information Methods showsPrec :: Int -> ServerInformation -> ShowS show :: ServerInformation -> String showList :: [ServerInformation] -> ShowS | |
data ServerPublicConfig Source #
Constructors
| ServerPublicConfig | |
Fields
| |
Instances
| FromJSON ServerPublicConfig Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser ServerPublicConfig parseJSONList :: Value -> Parser [ServerPublicConfig] omittedField :: Maybe ServerPublicConfig | |
| ToJSON ServerPublicConfig Source # | |
Defined in Simplex.Messaging.Server.Information Methods toJSON :: ServerPublicConfig -> Value toEncoding :: ServerPublicConfig -> Encoding toJSONList :: [ServerPublicConfig] -> Value toEncodingList :: [ServerPublicConfig] -> Encoding omitField :: ServerPublicConfig -> Bool | |
| Show ServerPublicConfig Source # | |
Defined in Simplex.Messaging.Server.Information Methods showsPrec :: Int -> ServerPublicConfig -> ShowS show :: ServerPublicConfig -> String showList :: [ServerPublicConfig] -> ShowS | |
data ServerPublicInfo Source #
Constructors
| ServerPublicInfo | |
Fields
| |
Instances
| FromJSON ServerPublicInfo Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser ServerPublicInfo parseJSONList :: Value -> Parser [ServerPublicInfo] omittedField :: Maybe ServerPublicInfo | |
| ToJSON ServerPublicInfo Source # | |
Defined in Simplex.Messaging.Server.Information Methods toJSON :: ServerPublicInfo -> Value toEncoding :: ServerPublicInfo -> Encoding toJSONList :: [ServerPublicInfo] -> Value toEncodingList :: [ServerPublicInfo] -> Encoding omitField :: ServerPublicInfo -> Bool | |
| Show ServerPublicInfo Source # | |
Defined in Simplex.Messaging.Server.Information Methods showsPrec :: Int -> ServerPublicInfo -> ShowS show :: ServerPublicInfo -> String showList :: [ServerPublicInfo] -> ShowS | |
data ServerPersistenceMode Source #
Constructors
| SPMMemoryOnly | |
| SPMQueues | |
| SPMMessages |
Instances
| FromJSON ServerPersistenceMode Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser ServerPersistenceMode parseJSONList :: Value -> Parser [ServerPersistenceMode] omittedField :: Maybe ServerPersistenceMode | |
| ToJSON ServerPersistenceMode Source # | |
Defined in Simplex.Messaging.Server.Information Methods toJSON :: ServerPersistenceMode -> Value toEncoding :: ServerPersistenceMode -> Encoding toJSONList :: [ServerPersistenceMode] -> Value toEncodingList :: [ServerPersistenceMode] -> Encoding omitField :: ServerPersistenceMode -> Bool | |
| Show ServerPersistenceMode Source # | |
Defined in Simplex.Messaging.Server.Information Methods showsPrec :: Int -> ServerPersistenceMode -> ShowS show :: ServerPersistenceMode -> String showList :: [ServerPersistenceMode] -> ShowS | |
data ServerConditions Source #
Constructors
| ServerConditions | |
Fields
| |
Instances
| FromJSON ServerConditions Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser ServerConditions parseJSONList :: Value -> Parser [ServerConditions] omittedField :: Maybe ServerConditions | |
| ToJSON ServerConditions Source # | |
Defined in Simplex.Messaging.Server.Information Methods toJSON :: ServerConditions -> Value toEncoding :: ServerConditions -> Encoding toJSONList :: [ServerConditions] -> Value toEncodingList :: [ServerConditions] -> Encoding omitField :: ServerConditions -> Bool | |
| Show ServerConditions Source # | |
Defined in Simplex.Messaging.Server.Information Methods showsPrec :: Int -> ServerConditions -> ShowS show :: ServerConditions -> String showList :: [ServerConditions] -> ShowS | |
data HostingType Source #
Constructors
| HTVirtual | |
| HTDedicated | |
| HTColocation | |
| HTOwned |
Instances
| FromJSON HostingType Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser HostingType parseJSONList :: Value -> Parser [HostingType] omittedField :: Maybe HostingType | |
| ToJSON HostingType Source # | |
Defined in Simplex.Messaging.Server.Information Methods toJSON :: HostingType -> Value toEncoding :: HostingType -> Encoding toJSONList :: [HostingType] -> Value toEncodingList :: [HostingType] -> Encoding omitField :: HostingType -> Bool | |
| Show HostingType Source # | |
Defined in Simplex.Messaging.Server.Information Methods showsPrec :: Int -> HostingType -> ShowS show :: HostingType -> String showList :: [HostingType] -> ShowS | |
| StrEncoding HostingType Source # | |
Defined in Simplex.Messaging.Server.Information Methods strEncode :: HostingType -> ByteString Source # strDecode :: ByteString -> Either String HostingType Source # strP :: Parser HostingType Source # | |
Instances
| FromJSON Entity Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser Entity parseJSONList :: Value -> Parser [Entity] omittedField :: Maybe Entity | |
| ToJSON Entity Source # | |
Defined in Simplex.Messaging.Server.Information Methods toEncoding :: Entity -> Encoding toJSONList :: [Entity] -> Value toEncodingList :: [Entity] -> Encoding | |
| Show Entity Source # | |
data ServerContactAddress Source #
Constructors
| ServerContactAddress | |
Instances
| FromJSON ServerContactAddress Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser ServerContactAddress parseJSONList :: Value -> Parser [ServerContactAddress] omittedField :: Maybe ServerContactAddress | |
| ToJSON ServerContactAddress Source # | |
Defined in Simplex.Messaging.Server.Information Methods toJSON :: ServerContactAddress -> Value toEncoding :: ServerContactAddress -> Encoding toJSONList :: [ServerContactAddress] -> Value toEncodingList :: [ServerContactAddress] -> Encoding omitField :: ServerContactAddress -> Bool | |
| Show ServerContactAddress Source # | |
Defined in Simplex.Messaging.Server.Information Methods showsPrec :: Int -> ServerContactAddress -> ShowS show :: ServerContactAddress -> String showList :: [ServerContactAddress] -> ShowS | |
Constructors
| PGPKey | |
Fields
| |
Instances
| FromJSON PGPKey Source # | |
Defined in Simplex.Messaging.Server.Information Methods parseJSON :: Value -> Parser PGPKey parseJSONList :: Value -> Parser [PGPKey] omittedField :: Maybe PGPKey | |
| ToJSON PGPKey Source # | |
Defined in Simplex.Messaging.Server.Information Methods toEncoding :: PGPKey -> Encoding toJSONList :: [PGPKey] -> Value toEncodingList :: [PGPKey] -> Encoding | |
| Show PGPKey Source # | |
emptyServerInfo :: Text -> ServerPublicInfo Source #
hasServerInfo :: ServerPublicInfo -> Bool Source #