Documentation ¶
Index ¶
- func Delete(url string, handlers ...Handler)
- func Get(url string, handlers ...Handler)
- func Patch(url string, handlers ...Handler)
- func Post(url string, handlers ...Handler)
- func Put(url string, handlers ...Handler)
- func RegCreator(typeName string, creator Creator)
- func Start()
- func Static(prefix, path string)
- type Context
- type Creator
- type FiberContext
- func (o *FiberContext) Bind(target interface{}) error
- func (o *FiberContext) Body() []byte
- func (o *FiberContext) Download(fileName string) error
- func (o *FiberContext) Error(code int, msg string, data ...interface{}) error
- func (o *FiberContext) FormFile(key string) (*multipart.FileHeader, error)
- func (o *FiberContext) FormValue(key string, defaultValue ...string) string
- func (o *FiberContext) Get(key string) interface{}
- func (o *FiberContext) GetHeader(key string) string
- func (o *FiberContext) Next() error
- func (o *FiberContext) Param(key string, defaultVal ...string) string
- func (o *FiberContext) Query(key string, defaultVal ...string) string
- func (o *FiberContext) QueryInt(key string, defaultVal ...int) int
- func (o *FiberContext) Raw() interface{}
- func (o *FiberContext) Redirect(to string) error
- func (o *FiberContext) Reply(data interface{}) error
- func (o *FiberContext) ReplyPage(data interface{}, pageNo int, hasNext bool) error
- func (o *FiberContext) ReplyRaw(httpCode int, data ...[]byte) error
- func (o *FiberContext) ReqHeader(key string) string
- func (o *FiberContext) RequestURL() string
- func (o *FiberContext) SaveFile(key string, path string) error
- func (o *FiberContext) SendFile(fileName string) error
- func (o *FiberContext) Set(key string, val interface{})
- func (o *FiberContext) SetHeader(key, value string)
- func (o *FiberContext) Status(code int)
- type FiberServer
- func (o *FiberServer) Delete(path string, handlers ...Handler)
- func (o *FiberServer) Get(path string, handlers ...Handler)
- func (o *FiberServer) Patch(path string, handlers ...Handler)
- func (o *FiberServer) Post(path string, handlers ...Handler)
- func (o *FiberServer) Put(path string, handlers ...Handler)
- func (o *FiberServer) Raw() interface{}
- func (o *FiberServer) Start()
- func (o *FiberServer) Static(prefix string, path string)
- type Handler
- type ReplyObj
- type ReplyPageObj
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegCreator ¶
Types ¶
type Context ¶
type Context interface { Bind(target interface{}) error Param(key string, defaultVal ...string) string Query(key string, defaultValue ...string) string QueryInt(key string, defaultValue ...int) int Body() []byte FormFile(key string) (*multipart.FileHeader, error) SaveFile(key string, path string) error FormValue(key string, defaultValue ...string) string Status(code int) Next() error ReqHeader(key string) string SetHeader(key, value string) GetHeader(key string) string RequestURL() string Redirect(to string) error Reply(data interface{}) error ReplyPage(data interface{}, pageNo int, hasNext bool) error ReplyRaw(httpCode int, data ...[]byte) error Error(code int, msg string, data ...interface{}) error Download(fileName string) error Set(key string, val interface{}) Get(key string) interface{} Raw() interface{} }
type FiberContext ¶
type FiberContext struct {
// contains filtered or unexported fields
}
func (*FiberContext) Bind ¶
func (o *FiberContext) Bind(target interface{}) error
func (*FiberContext) Body ¶
func (o *FiberContext) Body() []byte
func (*FiberContext) Download ¶
func (o *FiberContext) Download(fileName string) error
func (*FiberContext) Error ¶
func (o *FiberContext) Error(code int, msg string, data ...interface{}) error
func (*FiberContext) FormFile ¶
func (o *FiberContext) FormFile(key string) (*multipart.FileHeader, error)
func (*FiberContext) FormValue ¶
func (o *FiberContext) FormValue(key string, defaultValue ...string) string
func (*FiberContext) Get ¶
func (o *FiberContext) Get(key string) interface{}
func (*FiberContext) GetHeader ¶
func (o *FiberContext) GetHeader(key string) string
func (*FiberContext) Next ¶
func (o *FiberContext) Next() error
func (*FiberContext) Raw ¶
func (o *FiberContext) Raw() interface{}
func (*FiberContext) Redirect ¶
func (o *FiberContext) Redirect(to string) error
func (*FiberContext) Reply ¶
func (o *FiberContext) Reply(data interface{}) error
func (*FiberContext) ReplyPage ¶
func (o *FiberContext) ReplyPage(data interface{}, pageNo int, hasNext bool) error
func (*FiberContext) ReqHeader ¶
func (o *FiberContext) ReqHeader(key string) string
func (*FiberContext) RequestURL ¶
func (o *FiberContext) RequestURL() string
func (*FiberContext) SendFile ¶
func (o *FiberContext) SendFile(fileName string) error
func (*FiberContext) Set ¶
func (o *FiberContext) Set(key string, val interface{})
func (*FiberContext) SetHeader ¶
func (o *FiberContext) SetHeader(key, value string)
func (*FiberContext) Status ¶
func (o *FiberContext) Status(code int)
type FiberServer ¶
type FiberServer struct {
// contains filtered or unexported fields
}
func (*FiberServer) Delete ¶
func (o *FiberServer) Delete(path string, handlers ...Handler)
func (*FiberServer) Get ¶
func (o *FiberServer) Get(path string, handlers ...Handler)
func (*FiberServer) Patch ¶
func (o *FiberServer) Patch(path string, handlers ...Handler)
func (*FiberServer) Post ¶
func (o *FiberServer) Post(path string, handlers ...Handler)
func (*FiberServer) Put ¶
func (o *FiberServer) Put(path string, handlers ...Handler)
func (*FiberServer) Raw ¶
func (o *FiberServer) Raw() interface{}
func (*FiberServer) Start ¶
func (o *FiberServer) Start()
func (*FiberServer) Static ¶
func (o *FiberServer) Static(prefix string, path string)
type ReplyPageObj ¶
Click to show internal directories.
Click to hide internal directories.