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
Requestfrom which the gRPC request was instantiated.Declaration
Swift
var vaporRequest: Request { get set } -
dbExtension methodDatabaseassociated with the requests VaporRequest.Declaration
Swift
var db: Database { get } -
eventLoopExtension methodEventLoopon which the VaporRequestruns.Declaration
Swift
var eventLoop: EventLoop { get }
View on GitHub
GRPCRequestType Protocol Reference