Documentation
¶
Index ¶
- type GinContext
- func (c *GinContext) Bind(obj any) error
- func (c *GinContext) BindQuery(obj any)
- func (c *GinContext) BindQueryNotImplemented() bool
- func (c *GinContext) BodyParser(model any) error
- func (c *GinContext) ClientIP() string
- func (c *GinContext) Cookie(name string) (string, error)
- func (c *GinContext) File(filepath string) error
- func (c *GinContext) FileAttachment(filepath, filename string) error
- func (c *GinContext) Get(key string, defaultValue ...string) string
- func (c *GinContext) Header(key, value string)
- func (c *GinContext) JSON(statusCode int, data any) error
- func (c *GinContext) JSONP(code int, data any) error
- func (c *GinContext) Method() string
- func (c *GinContext) Params(key string, undefined ...string) string
- func (c *GinContext) Path() string
- func (c *GinContext) Query(key string, undefined ...string) string
- func (c *GinContext) Redirect(code int, location string) error
- func (c *GinContext) Render(name string, bind interface{}, layouts ...string) error
- func (c *GinContext) SendStream(stream io.Reader, size ...int) error
- func (c *GinContext) SendString(s string) error
- func (c *GinContext) Set(key string, value any)
- func (c *GinContext) SetCookie(cookie *http.Cookie)
- func (c *GinContext) SetHeader(key, value string)
- func (c *GinContext) ShouldBind(obj any) error
- func (c *GinContext) Status(statusCode int)
- func (c *GinContext) TOML(code int, obj any) error
- func (c *GinContext) Validate(obj any) error
- func (c *GinContext) ValidateNotImplemented() bool
- func (c *GinContext) Write(p []byte) (int, error)
- func (c *GinContext) XML(code int, obj any) error
- func (c *GinContext) YAML(code int, obj any) error
- type GinMux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GinContext ¶
type GinContext struct {
// contains filtered or unexported fields
}
func (*GinContext) Bind ¶
func (c *GinContext) Bind(obj any) error
func (*GinContext) BindQuery ¶
func (c *GinContext) BindQuery(obj any)
func (*GinContext) BindQueryNotImplemented ¶
func (c *GinContext) BindQueryNotImplemented() bool
func (*GinContext) BodyParser ¶
func (c *GinContext) BodyParser(model any) error
func (*GinContext) ClientIP ¶
func (c *GinContext) ClientIP() string
func (*GinContext) File ¶
func (c *GinContext) File(filepath string) error
func (*GinContext) FileAttachment ¶
func (c *GinContext) FileAttachment(filepath, filename string) error
func (*GinContext) Header ¶
func (c *GinContext) Header(key, value string)
func (*GinContext) Method ¶
func (c *GinContext) Method() string
func (*GinContext) Path ¶
func (c *GinContext) Path() string
func (*GinContext) Render ¶
func (c *GinContext) Render(name string, bind interface{}, layouts ...string) error
func (*GinContext) SendStream ¶
func (c *GinContext) SendStream(stream io.Reader, size ...int) error
func (*GinContext) SendString ¶
func (c *GinContext) SendString(s string) error
func (*GinContext) Set ¶
func (c *GinContext) Set(key string, value any)
func (*GinContext) SetCookie ¶
func (c *GinContext) SetCookie(cookie *http.Cookie)
func (*GinContext) SetHeader ¶
func (c *GinContext) SetHeader(key, value string)
func (*GinContext) ShouldBind ¶
func (c *GinContext) ShouldBind(obj any) error
func (*GinContext) Status ¶
func (c *GinContext) Status(statusCode int)
func (*GinContext) Validate ¶
func (c *GinContext) Validate(obj any) error
func (*GinContext) ValidateNotImplemented ¶
func (c *GinContext) ValidateNotImplemented() bool
Click to show internal directories.
Click to hide internal directories.