Documentation ¶
Index ¶
- type Input
- func (i *Input) Bind(value interface{}) error
- func (i *Input) BindJSON(value interface{}) error
- func (i *Input) BindJSONByKey(key string, value interface{}) bool
- func (i *Input) BindWith(value interface{}, bind binding.Binding) error
- func (i *Input) BindXML(value interface{}) error
- func (i *Input) BindYAML(value interface{}) error
- func (i *Input) Body() string
- func (i *Input) BodyBytes() []byte
- func (i *Input) ClientIp() string
- func (i *Input) ContentType() string
- func (i *Input) File(name string) (*multipart.FileHeader, error)
- func (i *Input) Get(key string, value ...interface{}) *lib.Data
- func (i *Input) GetRaw() lib.Row
- func (i *Input) Init(request *http.Request)
- func (i *Input) Param(key string, value ...interface{}) *lib.Data
- func (i *Input) ParamRaw() lib.Row
- func (i *Input) Post(key string, value ...interface{}) *lib.Data
- func (i *Input) PostRaw() lib.Row
- func (i *Input) R() *http.Request
- func (i *Input) SaveUploadByFunc(name string, callback UploadFunc) error
- func (i *Input) SaveUploadFile(name, dst string) error
- func (i *Input) SaveUploadFileByDir(name, dir string) (string, error)
- func (i *Input) SetGet(key string, value interface{})
- func (i *Input) SetParam(key string, value interface{})
- func (i *Input) SetPost(key string, value interface{})
- type UploadFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { Method string // contains filtered or unexported fields }
Input
func (*Input) BindJSONByKey ¶ added in v0.0.6
BindJSONByKey
func (*Input) SaveUploadByFunc ¶
func (i *Input) SaveUploadByFunc(name string, callback UploadFunc) error
SaveUploadByFunc
func (*Input) SaveUploadFile ¶
SaveUploadFile
func (*Input) SaveUploadFileByDir ¶
SaveUploadFileByDir
type UploadFunc ¶
type UploadFunc func(*multipart.FileHeader) //上传回调
Click to show internal directories.
Click to hide internal directories.