Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 :: Maybe Symbol) ('SchemaRef QuickstartSchema "HelloRequest")] ('RetSingle ('SchemaRef QuickstartSchema "HelloResponse")), 'Method "SayHi" '['ArgSingle ('Nothing :: Maybe Symbol) ('SchemaRef QuickstartSchema "HiRequest")] ('RetStream ('SchemaRef QuickstartSchema "HelloResponse")), 'Method "SayManyHellos" '['ArgStream ('Nothing :: Maybe Symbol) ('SchemaRef QuickstartSchema "HelloRequest")] ('RetStream ('SchemaRef QuickstartSchema "HelloResponse"))]] :: Package' Source #
newtype HelloRequest Source #
Instances
newtype HelloResponse Source #
Instances
Instances
Eq HiRequest Source # | |
Show HiRequest Source # | |
Generic HiRequest Source # | |
ToJSON HiRequest Source # | |
Defined in Mu.Rpc.Examples | |
FromJSON HiRequest Source # | |
ToSchema QuickstartSchema "HiRequest" HiRequest Source # | |
Defined in Mu.Rpc.Examples toSchema :: HiRequest -> Term QuickstartSchema (QuickstartSchema :/: "HiRequest") # | |
FromSchema QuickstartSchema "HiRequest" HiRequest Source # | |
Defined in Mu.Rpc.Examples fromSchema :: Term QuickstartSchema (QuickstartSchema :/: "HiRequest") -> HiRequest # | |
type Rep HiRequest Source # | |
Defined in Mu.Rpc.Examples |
quickstartServer :: forall m i. MonadServer m => ServerT '[] i QuickStartService m _ Source #
type ApolloService = 'Package ('Just "apollo") '[Object "Book" '[ObjectField "title" '[] ('RetSingle ('PrimitiveRef String)), ObjectField "author" '[] ('RetSingle ('ObjectRef "Author"))], Object "Paper" '[ObjectField "title" '[] ('RetSingle ('PrimitiveRef String)), ObjectField "author" '[] ('RetSingle ('ObjectRef "Author"))], Union "Writing" ["Book", "Paper"], Object "Author" '[ObjectField "name" '[] ('RetSingle ('PrimitiveRef String)), ObjectField "writings" '[] ('RetSingle ('ListRef ('ObjectRef "Writing")))]] Source #
type ApolloBookAuthor = '["Book" :-> (String, Integer), "Paper" :-> (String, Integer), "Writing" :-> Either (String, Integer) (String, Integer), "Author" :-> Integer] Source #
apolloServer :: forall m i. MonadServer m => ServerT ApolloBookAuthor i ApolloService m _ Source #