A struct wrapping method arguments
A struct wrapping method arguments
For Scala generated code this will be a wrapper around all of the inputs. Roughly:
class Args(input1: Int, input2: String) extends ThriftStruct
The type of this method, as a function.
The type of this method, as a function.
For Scala generated code with Finagle bindings this will be roughly:
Function2[Int, String, Future[Int]]
For Scala generated code without Finagle bindings, this will be Nothing
.
Contains success or thrift application exceptions
The type of this method, as a Finagle Service
from Args
to
SuccessType
.
The type of this method, as a Finagle Service
from Args
to
SuccessType
.
For Scala generated code with Finagle bindings this will be roughly:
Service[Args, SuccessType]
.
For Scala generated code without Finagle bindings, this will be Nothing
.
The type of this method, as a Finagle Service
from Args
to
Result
.
The type of this method, as a Finagle Service
from Args
to
Result
.
For Scala generated code with Finagle bindings this will be roughly:
Service[Args, Result]
.
For Scala generated code without Finagle bindings, this will be Nothing
.
ServiceIfaceServiceType for a more ergonomic API.
The successful return type
The successful return type
For Scala generated code this will be the response's type. Roughly:
type SuccessType = Int
Thrift annotations (user-defined key-value metadata) on the method
Codec for the request args
Convert a function implementation of this method into a
Service
implementation returning Result
.
Convert a function implementation of this method into a
Service
implementation returning Result
.
For Scala generated code without Finagle bindings, this will not implemented.
Thrift method name
True for oneway thrift methods
Codec for the response
Thrift service name.
Thrift service name. A thrift service is a list of methods.
Convert a service implementation of this method into a function implementation
Convert a service implementation of this method into a function implementation
For Scala generated code without Finagle bindings, this will not implemented.
Convert a function implementation of this method into a
ServiceIface Service
implementation returning SuccessType
.
Convert a function implementation of this method into a
ServiceIface Service
implementation returning SuccessType
.
For Scala generated code without Finagle bindings, this will not implemented.
Metadata for a method for a Thrift service.
Comments below will use this example IDL: