Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶ added in v1.0.0
type File interface {
Store(dst string) error
File() *multipart.FileHeader
}
type FormRequest ¶
type HandlerFunc ¶ added in v1.0.0
type HandlerFunc func(Request)
type Middleware ¶ added in v1.0.0
type Middleware func(Request)
type Request ¶
type Request interface {
Header(key, defaultValue string) string
Headers() http.Header
WithContext(ctx context.Context) Request
Context() context.Context
Method() string
Path() string
Url() string
FullUrl() string
Ip() string
//Input Retrieve an input item from the request: /users/{id}
Input(key string) string
// Query Retrieve a query string item form the request: /users?id=1
Query(key, defaultValue string) string
// Form Retrieve a form string item form the post: /users POST:id=1
Form(key, defaultValue string) string
Bind(obj interface{}) error
File(name string) (File, error)
AbortWithStatus(code int)
Next()
}
type ResponseSuccess ¶ added in v1.0.0
type ResponseSuccess interface {
String(format string, values ...interface{})
Json(obj interface{})
}
Click to show internal directories.
Click to hide internal directories.