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 methodDatabase
associated with the requests VaporRequest
.Declaration
Swift
var db: Database { get }
-
eventLoop
Extension methodEventLoop
on which the VaporRequest
runs.Declaration
Swift
var eventLoop: EventLoop { get }