Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Desc ¶
type Desc struct {
grpc.ServiceDesc
Handler interface{}
GrpcClientFn interface{}
GrpcGatewayFn interface{}
}
type HandlerFunc ¶
type Middleware ¶
type Middleware func(next HandlerFunc) HandlerFunc
type Request ¶
type Request interface {
// Client server or client
Client() bool
// Kind [http|grpc...]
Kind() string
// Stream Indicates whether it's a stream
Stream() bool
// Service name requested
Service() string
// Operation requested
Operation() string
// Endpoint requested
Endpoint() string
// ContentType Content type provided
ContentType() string
// Header of the request
Header() metadata.MD
// Payload is the decoded value
Payload() interface{}
}
Request is a synchronous request interface
Click to show internal directories.
Click to hide internal directories.