Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcHandler ¶
type GrpcHandler interface {
Init()
Middlewares() []Middleware
ServiceDesc() *grpc.ServiceDesc
TwirpHandler(...interface{}) http.Handler
}
type HttpRouter ¶
type HttpRouter interface {
Init()
BasePrefix() string
Middlewares() []Middleware
Router(app *fiber.App)
}
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() *RequestHeader
// Payload is the decoded value
Payload() interface{}
}
Request is a synchronous request interface
type RequestHeader ¶ added in v0.2.4
type RequestHeader = fasthttp.RequestHeader
type Response ¶
type Response interface {
Header() *ResponseHeader
Payload() interface{}
Stream() bool
}
Response is the response writer for un encoded messages
type ResponseHeader ¶ added in v0.2.4
type ResponseHeader = fasthttp.ResponseHeader
Click to show internal directories.
Click to hide internal directories.