| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Mu.Rpc.Examples
Description
Look at the source code of this module.
Documentation
type QuickstartSchema = '['DRecord "HelloRequest" '['FieldDef "name" ('TPrimitive Text)], 'DRecord "HelloResponse" '['FieldDef "message" ('TPrimitive Text)], 'DRecord "HiRequest" '['FieldDef "number" ('TPrimitive Int)]] Source #
type QuickStartService = 'Package ('Just "helloworld") '['Service "Greeter" '[] '['Method "SayHello" '[] '['ArgSingle 'Nothing '[] ('SchemaRef QuickstartSchema "HelloRequest")] ('RetSingle ('SchemaRef QuickstartSchema "HelloResponse")), 'Method "SayHi" '[] '['ArgSingle 'Nothing '[] ('SchemaRef QuickstartSchema "HiRequest")] ('RetStream ('SchemaRef QuickstartSchema "HelloResponse")), 'Method "SayManyHellos" '[] '['ArgStream 'Nothing '[] ('SchemaRef QuickstartSchema "HelloRequest")] ('RetStream ('SchemaRef QuickstartSchema "HelloResponse"))]] Source #
newtype HelloRequest Source #
Constructors
| HelloRequest | |
Instances
newtype HelloResponse Source #
Constructors
| HelloResponse | |
Instances
Instances
| Eq HiRequest Source # | |
| Show HiRequest Source # | |
| Generic HiRequest Source # | |
| FromSchema QuickstartSchema "HiRequest" HiRequest Source # | |
Defined in Mu.Rpc.Examples Methods fromSchema :: Term QuickstartSchema (QuickstartSchema :/: "HiRequest") -> HiRequest | |
| ToSchema QuickstartSchema "HiRequest" HiRequest Source # | |
Defined in Mu.Rpc.Examples Methods toSchema :: HiRequest -> Term QuickstartSchema (QuickstartSchema :/: "HiRequest") | |
| type Rep HiRequest Source # | |
Defined in Mu.Rpc.Examples | |
quickstartServer :: forall m. MonadServer m => ServerT '[] QuickStartService m _ Source #
type ApolloService = 'Package ('Just "apollo") '[Object "Book" '[] '[ObjectField "title" '[] '[] ('RetSingle ('PrimitiveRef String)), ObjectField "author" '[] '[] ('RetSingle ('ObjectRef "Author"))], Object "Author" '[] '[ObjectField "name" '[] '[] ('RetSingle ('PrimitiveRef String)), ObjectField "books" '[] '[] ('RetSingle ('ListRef ('ObjectRef "Book")))]] Source #
apolloServer :: forall m. MonadServer m => ServerT ApolloBookAuthor ApolloService m _ Source #