GRPCRequestType

public protocol GRPCRequestType

GRPCRequestType is a protocol that is implemented by all gRPC request classes and requires attributes used by common default implementations.

Currently the only required attribute is a reference to the used Vapor Request which is used to provide shortcuts for using the associated Fluent database and the request’s EventLoop.

  • Vapor Request from which the gRPC request was instantiated.

    Declaration

    Swift

    var vaporRequest: Request { get set }
  • db Extension method

    Database associated with the requests Vapor Request.

    Declaration

    Swift

    var db: Database { get }
  • eventLoop Extension method

    EventLoop on which the Vapor Request runs.

    Declaration

    Swift

    var eventLoop: EventLoop { get }