examples.basic.server

Classes

Functions

get_server(→ grpc.aio.Server)

serve(→ None)

Module Contents

class examples.basic.server.Greeter[source]

Bases: examples.basic.hello_pb2_grpc.GreeterServicer

async SayHello(request: examples.basic.hello_pb2.HelloRequest, context: grpc.aio.ServicerContext) examples.basic.hello_pb2.HelloReply[source]
Parameters:
  • request (examples.basic.hello_pb2.HelloRequest)

  • context (grpc.aio.ServicerContext)

Return type:

examples.basic.hello_pb2.HelloReply

examples.basic.server.get_server() grpc.aio.Server[source]
Return type:

grpc.aio.Server

async examples.basic.server.serve() None[source]
Return type:

None