Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Handler ¶ added in v1.218.0
type Handler[Req any, Res any] interface { // Handle func for request/response. Handle(ctx context.Context, req *Req) (*Res, error) // Error for this handler. Error(ctx context.Context, err error) *Res // Status code from error. Status(err error) int }
Handler for HTTP.
type Server ¶ added in v1.164.0
type Server struct {
// contains filtered or unexported fields
}
Server for HTTP.
Click to show internal directories.
Click to hide internal directories.