GrpcServiceController class
The GrpcServiceController allows defining gRPC services as Serinus Controllers.
It extends the base Controller class and includes a reference to the gRPC Service it represents. This controller can be used to group related gRPC methods together, making it easier to manage and organize your gRPC services within the Serinus framework.
Constructors
- GrpcServiceController({required Service service})
- Creates a gRPC service controller.
Properties
-
exceptionFilters
→ Set<
ExceptionFilter> -
The
exceptionFiltersproperty contains the exception filters of the controller.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- hooks → HooksContainer
-
The
hooksContainerproperty contains the hooks container of the controller.finalinherited -
metadata
→ List<
Metadata> -
The
metadataproperty contains the metadata of the controller.no setterinherited - path → String
-
The
pathproperty contains the path of the controller.finalinherited -
pipes
↔ List<
Pipe> -
The list of pipes to be applied.
getter/setter pairinherited
-
routes
→ Map<
String, RestRouteHandlerSpec> -
The
routesproperty contains the routes of the controller.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- service → Service
-
The service property contains the gRPC service definition that this controller represents.
final
- version → int?
-
The
versionproperty contains the version of the controller.no setterinherited
Methods
-
get(
String routeId) → RestRouteHandlerSpec? -
The
getmethod is used to get a route.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on<
T, B> (Route route, Future< T> handler(RequestContext<B> context), {bool shouldValidateMultipart = false}) → void -
The
onmethod is used to register a route.inherited -
onStatic<
T> (Route route, T handler) → void -
The
onStaticmethod is used to register a static route. It takes aRouteand a Object value.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited