Safe Haskell | None |
---|---|
Language | Haskell2010 |
Client for the Compendium schema registry
Synopsis
- data IdlName
- transformation :: Manager -> BaseUrl -> Text -> IdlName -> IO (Either ClientError Text)
- obtainProtoBuf :: Manager -> BaseUrl -> Text -> IO (Either ObtainProtoBufError ProtoBuf)
- data ObtainProtoBufError
Generic query of schemas
Interface Description Languages supported by Compendium.
Instances
Eq IdlName Source # | |
Show IdlName Source # | |
Generic IdlName Source # | |
ToHttpApiData IdlName Source # | |
Defined in Compendium.Client toUrlPiece :: IdlName -> Text # toEncodedUrlPiece :: IdlName -> Builder # toHeader :: IdlName -> ByteString # toQueryParam :: IdlName -> Text # | |
type Rep IdlName Source # | |
Defined in Compendium.Client type Rep IdlName = D1 (MetaData "IdlName" "Compendium.Client" "compendium-client-0.1.0.1-inplace" False) ((C1 (MetaCons "Avro" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Protobuf" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Mu" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "OpenApi" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Scala" PrefixI False) (U1 :: Type -> Type)))) |
:: Manager | Connection details (from 'http-client'). |
-> BaseUrl | URL in which Compendium is running. |
-> Text | Name that identifies the schema. |
-> IdlName | Format of the returned schema. |
-> IO (Either ClientError Text) |
Obtain a schema from the registry.
Query Protocol Buffer schemas
obtainProtoBuf :: Manager -> BaseUrl -> Text -> IO (Either ObtainProtoBufError ProtoBuf) Source #
Obtain a schema from the registry, and parse it as Protocol Buffers.
data ObtainProtoBufError Source #
Errors which may arise during obtainProtoBuf
.
OPEClient ClientError | Error obtaining schema from Compendium |
OPEParse (ParseErrorBundle Text Char) | Obtaining the schema was OK, error parsing it |
Instances
Show ObtainProtoBufError Source # | |
Defined in Compendium.Client showsPrec :: Int -> ObtainProtoBufError -> ShowS # show :: ObtainProtoBufError -> String # showList :: [ObtainProtoBufError] -> ShowS # |