Documentation
¶
Index ¶
- func NewFiberContext(ctx *fiber.Ctx) http.Context
- func NewFiberRequest(instance *fiber.Ctx) contracthttp.Request
- func NewFiberResponse(instance *fiber.Ctx) httpcontract.Response
- func NewFiberSuccess(instance *fiber.Ctx) httpcontract.ResponseSuccess
- func NewGinContext(ctx *gin.Context) http.Context
- func NewGinRequest(instance *gin.Context) contracthttp.Request
- func NewGinResponse(instance *gin.Context) httpcontract.Response
- func NewGinSuccess(instance *gin.Context) httpcontract.ResponseSuccess
- type Application
- type FiberContext
- func (c *FiberContext) Deadline() (deadline time.Time, ok bool)
- func (c *FiberContext) Done() <-chan struct{}
- func (c *FiberContext) Err() error
- func (c *FiberContext) Request() http.Request
- func (c *FiberContext) Response() http.Response
- func (c *FiberContext) Value(key interface{}) interface{}
- func (c *FiberContext) WithValue(key string, value interface{})
- type FiberFile
- type FiberRequest
- func (r *FiberRequest) AbortWithStatus(code int)
- func (r *FiberRequest) Bind(obj interface{}) error
- func (r *FiberRequest) File(name string) (contracthttp.File, error)
- func (r *FiberRequest) Form(key, defaultValue string) string
- func (r *FiberRequest) FullUrl() string
- func (r *FiberRequest) Header(key, defaultValue string) string
- func (r *FiberRequest) Headers() http.Header
- func (r *FiberRequest) Ip() string
- func (r *FiberRequest) Method() string
- func (r *FiberRequest) Next() error
- func (r *FiberRequest) Origin() *http.Request
- func (r *FiberRequest) Params(key string) string
- func (r *FiberRequest) Path() string
- func (r *FiberRequest) Query(key, defaultValue string) string
- func (r *FiberRequest) Response() contracthttp.Response
- func (r *FiberRequest) Url() string
- type FiberResponse
- func (r *FiberResponse) Download(filepath, filename string) error
- func (r *FiberResponse) File(filepath string, compress ...bool) error
- func (r *FiberResponse) Header(key, value string) httpcontract.Response
- func (r *FiberResponse) Json(code int, obj interface{}) error
- func (r *FiberResponse) String(code int, format string, values ...interface{}) error
- func (r *FiberResponse) Success() httpcontract.ResponseSuccess
- type FiberSuccess
- type GinContext
- func (c *GinContext) Deadline() (deadline time.Time, ok bool)
- func (c *GinContext) Done() <-chan struct{}
- func (c *GinContext) Err() error
- func (c *GinContext) Request() http.Request
- func (c *GinContext) Response() http.Response
- func (c *GinContext) Value(key interface{}) interface{}
- func (c *GinContext) WithValue(key string, value interface{})
- type GinFile
- type GinRequest
- func (r *GinRequest) AbortWithStatus(code int)
- func (r *GinRequest) Bind(obj interface{}) error
- func (r *GinRequest) File(name string) (contracthttp.File, error)
- func (r *GinRequest) Form(key, defaultValue string) string
- func (r *GinRequest) FullUrl() string
- func (r *GinRequest) Header(key, defaultValue string) string
- func (r *GinRequest) Headers() http.Header
- func (r *GinRequest) Ip() string
- func (r *GinRequest) Method() string
- func (r *GinRequest) Next() error
- func (r *GinRequest) Origin() *http.Request
- func (r *GinRequest) Params(key string) string
- func (r *GinRequest) Path() string
- func (r *GinRequest) Query(key, defaultValue string) string
- func (r *GinRequest) Response() contracthttp.Response
- func (r *GinRequest) Url() string
- type GinResponse
- func (r *GinResponse) Download(filepath, filename string) error
- func (r *GinResponse) File(filepath string, compress ...bool) error
- func (r *GinResponse) Header(key, value string) httpcontract.Response
- func (r *GinResponse) Json(code int, obj interface{}) error
- func (r *GinResponse) String(code int, format string, values ...interface{}) error
- func (r *GinResponse) Success() httpcontract.ResponseSuccess
- type GinSuccess
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFiberRequest ¶ added in v1.0.1
func NewFiberRequest(instance *fiber.Ctx) contracthttp.Request
func NewFiberResponse ¶ added in v1.0.1
func NewFiberResponse(instance *fiber.Ctx) httpcontract.Response
func NewFiberSuccess ¶ added in v1.0.1
func NewFiberSuccess(instance *fiber.Ctx) httpcontract.ResponseSuccess
func NewGinRequest ¶
func NewGinRequest(instance *gin.Context) contracthttp.Request
func NewGinResponse ¶
func NewGinResponse(instance *gin.Context) httpcontract.Response
func NewGinSuccess ¶
func NewGinSuccess(instance *gin.Context) httpcontract.ResponseSuccess
Types ¶
type Application ¶
type Application struct {
}
func (*Application) Init ¶
func (app *Application) Init()
type FiberContext ¶ added in v1.0.1
type FiberContext struct {
// contains filtered or unexported fields
}
func (*FiberContext) Deadline ¶ added in v1.0.1
func (c *FiberContext) Deadline() (deadline time.Time, ok bool)
func (*FiberContext) Done ¶ added in v1.0.1
func (c *FiberContext) Done() <-chan struct{}
func (*FiberContext) Err ¶ added in v1.0.1
func (c *FiberContext) Err() error
func (*FiberContext) Request ¶ added in v1.0.1
func (c *FiberContext) Request() http.Request
func (*FiberContext) Response ¶ added in v1.0.1
func (c *FiberContext) Response() http.Response
func (*FiberContext) Value ¶ added in v1.0.1
func (c *FiberContext) Value(key interface{}) interface{}
func (*FiberContext) WithValue ¶ added in v1.0.1
func (c *FiberContext) WithValue(key string, value interface{})
type FiberFile ¶ added in v1.0.1
type FiberFile struct {
// contains filtered or unexported fields
}
func (*FiberFile) File ¶ added in v1.0.1
func (f *FiberFile) File() *multipart.FileHeader
type FiberRequest ¶ added in v1.0.1
type FiberRequest struct {
// contains filtered or unexported fields
}
func (*FiberRequest) AbortWithStatus ¶ added in v1.0.1
func (r *FiberRequest) AbortWithStatus(code int)
func (*FiberRequest) Bind ¶ added in v1.0.1
func (r *FiberRequest) Bind(obj interface{}) error
func (*FiberRequest) File ¶ added in v1.0.1
func (r *FiberRequest) File(name string) (contracthttp.File, error)
func (*FiberRequest) Form ¶ added in v1.0.1
func (r *FiberRequest) Form(key, defaultValue string) string
func (*FiberRequest) FullUrl ¶ added in v1.0.1
func (r *FiberRequest) FullUrl() string
func (*FiberRequest) Header ¶ added in v1.0.1
func (r *FiberRequest) Header(key, defaultValue string) string
func (*FiberRequest) Headers ¶ added in v1.0.1
func (r *FiberRequest) Headers() http.Header
func (*FiberRequest) Ip ¶ added in v1.0.1
func (r *FiberRequest) Ip() string
func (*FiberRequest) Method ¶ added in v1.0.1
func (r *FiberRequest) Method() string
func (*FiberRequest) Next ¶ added in v1.0.1
func (r *FiberRequest) Next() error
func (*FiberRequest) Origin ¶ added in v1.0.1
func (r *FiberRequest) Origin() *http.Request
func (*FiberRequest) Params ¶ added in v1.0.1
func (r *FiberRequest) Params(key string) string
func (*FiberRequest) Path ¶ added in v1.0.1
func (r *FiberRequest) Path() string
func (*FiberRequest) Query ¶ added in v1.0.1
func (r *FiberRequest) Query(key, defaultValue string) string
func (*FiberRequest) Response ¶ added in v1.0.1
func (r *FiberRequest) Response() contracthttp.Response
func (*FiberRequest) Url ¶ added in v1.0.1
func (r *FiberRequest) Url() string
type FiberResponse ¶ added in v1.0.1
type FiberResponse struct {
// contains filtered or unexported fields
}
func (*FiberResponse) Download ¶ added in v1.0.1
func (r *FiberResponse) Download(filepath, filename string) error
func (*FiberResponse) File ¶ added in v1.0.1
func (r *FiberResponse) File(filepath string, compress ...bool) error
func (*FiberResponse) Header ¶ added in v1.0.1
func (r *FiberResponse) Header(key, value string) httpcontract.Response
func (*FiberResponse) Json ¶ added in v1.0.1
func (r *FiberResponse) Json(code int, obj interface{}) error
func (*FiberResponse) String ¶ added in v1.0.1
func (r *FiberResponse) String(code int, format string, values ...interface{}) error
func (*FiberResponse) Success ¶ added in v1.0.1
func (r *FiberResponse) Success() httpcontract.ResponseSuccess
type FiberSuccess ¶ added in v1.0.1
type FiberSuccess struct {
// contains filtered or unexported fields
}
func (*FiberSuccess) Json ¶ added in v1.0.1
func (r *FiberSuccess) Json(obj interface{}) error
func (*FiberSuccess) String ¶ added in v1.0.1
func (r *FiberSuccess) String(format string, values ...interface{}) error
type GinContext ¶
type GinContext struct {
// contains filtered or unexported fields
}
func (*GinContext) Done ¶
func (c *GinContext) Done() <-chan struct{}
func (*GinContext) Err ¶
func (c *GinContext) Err() error
func (*GinContext) Request ¶
func (c *GinContext) Request() http.Request
func (*GinContext) Response ¶
func (c *GinContext) Response() http.Response
func (*GinContext) Value ¶
func (c *GinContext) Value(key interface{}) interface{}
func (*GinContext) WithValue ¶
func (c *GinContext) WithValue(key string, value interface{})
type GinFile ¶
type GinFile struct {
// contains filtered or unexported fields
}
func (*GinFile) File ¶
func (f *GinFile) File() *multipart.FileHeader
type GinRequest ¶
type GinRequest struct {
// contains filtered or unexported fields
}
func (*GinRequest) AbortWithStatus ¶
func (r *GinRequest) AbortWithStatus(code int)
func (*GinRequest) Bind ¶
func (r *GinRequest) Bind(obj interface{}) error
func (*GinRequest) File ¶
func (r *GinRequest) File(name string) (contracthttp.File, error)
func (*GinRequest) Form ¶
func (r *GinRequest) Form(key, defaultValue string) string
func (*GinRequest) FullUrl ¶
func (r *GinRequest) FullUrl() string
func (*GinRequest) Header ¶
func (r *GinRequest) Header(key, defaultValue string) string
func (*GinRequest) Headers ¶
func (r *GinRequest) Headers() http.Header
func (*GinRequest) Ip ¶
func (r *GinRequest) Ip() string
func (*GinRequest) Method ¶
func (r *GinRequest) Method() string
func (*GinRequest) Next ¶
func (r *GinRequest) Next() error
func (*GinRequest) Origin ¶
func (r *GinRequest) Origin() *http.Request
func (*GinRequest) Params ¶ added in v1.0.1
func (r *GinRequest) Params(key string) string
func (*GinRequest) Path ¶
func (r *GinRequest) Path() string
func (*GinRequest) Query ¶
func (r *GinRequest) Query(key, defaultValue string) string
func (*GinRequest) Response ¶
func (r *GinRequest) Response() contracthttp.Response
func (*GinRequest) Url ¶
func (r *GinRequest) Url() string
type GinResponse ¶
type GinResponse struct {
// contains filtered or unexported fields
}
func (*GinResponse) Download ¶
func (r *GinResponse) Download(filepath, filename string) error
func (*GinResponse) Header ¶
func (r *GinResponse) Header(key, value string) httpcontract.Response
func (*GinResponse) Json ¶
func (r *GinResponse) Json(code int, obj interface{}) error
func (*GinResponse) String ¶
func (r *GinResponse) String(code int, format string, values ...interface{}) error
func (*GinResponse) Success ¶
func (r *GinResponse) Success() httpcontract.ResponseSuccess
type GinSuccess ¶
type GinSuccess struct {
// contains filtered or unexported fields
}
func (*GinSuccess) Json ¶
func (r *GinSuccess) Json(obj interface{}) error
func (*GinSuccess) String ¶
func (r *GinSuccess) String(format string, values ...interface{}) error
type ServiceProvider ¶
type ServiceProvider struct {
}
func (*ServiceProvider) Boot ¶
func (database *ServiceProvider) Boot()
func (*ServiceProvider) Register ¶
func (database *ServiceProvider) Register()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.