Documentation ¶
Index ¶
- type LuxContext
- func (l *LuxContext) GetBody() ([]byte, error)
- func (l *LuxContext) GetBodyReader() io.ReadCloser
- func (l *LuxContext) GetCookie(key string) string
- func (l *LuxContext) GetFormData(key string) string
- func (l *LuxContext) GetFormFile(name string) (multipart.File, *multipart.FileHeader, error)
- func (l *LuxContext) GetMultipartFile(name string, maxMemoryBytes int64) ([]*multipart.FileHeader, error)
- func (l *LuxContext) GetPathVariable(key string) string
- func (l *LuxContext) GetRemoteAddress() string
- func (l *LuxContext) GetRemoteIP() string
- func (l *LuxContext) GetRemotePort() string
- func (l *LuxContext) GetURLQuery(key string) string
- func (l *LuxContext) IsOk() bool
- func (l *LuxContext) Reply(contentType string, body []byte) error
- func (l *LuxContext) Reply7Z(data []byte) error
- func (l *LuxContext) ReplyBinary(data []byte) error
- func (l *LuxContext) ReplyCSV(data []byte) error
- func (l *LuxContext) ReplyExcel(data []byte) error
- func (l *LuxContext) ReplyFile(path string) error
- func (l *LuxContext) ReplyGZIP(data []byte) error
- func (l *LuxContext) ReplyHTML(data []byte) error
- func (l *LuxContext) ReplyJPEG(data []byte) error
- func (l *LuxContext) ReplyJSON(data interface{}) error
- func (l *LuxContext) ReplyMP4(data []byte) error
- func (l *LuxContext) ReplyPDF(data []byte) error
- func (l *LuxContext) ReplyPNG(data []byte) error
- func (l *LuxContext) ReplyPlainText(text string) error
- func (l *LuxContext) ReplyPowerpoint(data []byte) error
- func (l *LuxContext) ReplyProtobuf(data protoreflect.ProtoMessage) error
- func (l *LuxContext) ReplyString(text string) error
- func (l *LuxContext) ReplyTar(data []byte) error
- func (l *LuxContext) ReplyWebM(data []byte) error
- func (l *LuxContext) ReplyWebP(data []byte) error
- func (l *LuxContext) ReplyWord(data []byte) error
- func (l *LuxContext) ReplyXML(data []byte) error
- func (l *LuxContext) ReplyZip(data []byte) error
- func (l *LuxContext) SaveFile(file multipart.File, path string) error
- func (l *LuxContext) SaveMultipartFile(headers []*multipart.FileHeader, path string) error
- func (l *LuxContext) SetAccepted()
- func (l *LuxContext) SetBadRequest()
- func (l *LuxContext) SetConflict()
- func (l *LuxContext) SetCookie(name string, value string, maxAge int, path string, domain string, secure bool, ...)
- func (l *LuxContext) SetForbidden()
- func (l *LuxContext) SetFound()
- func (l *LuxContext) SetInternalServerError()
- func (l *LuxContext) SetNoContent()
- func (l *LuxContext) SetNotFound()
- func (l *LuxContext) SetNotImplemented()
- func (l *LuxContext) SetOK()
- func (l *LuxContext) SetResetContent()
- func (l *LuxContext) SetSecureCookie(name string, value string, maxAge int, path string, domain string)
- func (l *LuxContext) SetServiceUnavailable()
- func (l *LuxContext) SetStatus(status int)
- func (l *LuxContext) SetUnauthorized()
- func (l *LuxContext) SetUnsupportedMediaType()
- type Response
- type WSContext
- func (w *WSContext) Close() error
- func (w *WSContext) ReadBinary() ([]byte, error)
- func (w *WSContext) ReadData() ([]byte, ws.OpCode, error)
- func (w *WSContext) ReadText() ([]byte, error)
- func (w *WSContext) WriteBinary(bin []byte) error
- func (w *WSContext) WriteData(data []byte, opCode ws.OpCode) error
- func (w *WSContext) WriteText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LuxContext ¶
type LuxContext struct { Request *http.Request Response *Response RouteParams httprouter.Params }
func (*LuxContext) GetBody ¶
func (l *LuxContext) GetBody() ([]byte, error)
func (*LuxContext) GetBodyReader ¶
func (l *LuxContext) GetBodyReader() io.ReadCloser
func (*LuxContext) GetCookie ¶
func (l *LuxContext) GetCookie(key string) string
func (*LuxContext) GetFormData ¶
func (l *LuxContext) GetFormData(key string) string
func (*LuxContext) GetFormFile ¶
func (l *LuxContext) GetFormFile(name string) (multipart.File, *multipart.FileHeader, error)
func (*LuxContext) GetMultipartFile ¶
func (l *LuxContext) GetMultipartFile(name string, maxMemoryBytes int64) ([]*multipart.FileHeader, error)
func (*LuxContext) GetPathVariable ¶
func (l *LuxContext) GetPathVariable(key string) string
func (*LuxContext) GetRemoteAddress ¶
func (l *LuxContext) GetRemoteAddress() string
func (*LuxContext) GetRemoteIP ¶
func (l *LuxContext) GetRemoteIP() string
func (*LuxContext) GetRemotePort ¶
func (l *LuxContext) GetRemotePort() string
func (*LuxContext) GetURLQuery ¶
func (l *LuxContext) GetURLQuery(key string) string
func (*LuxContext) IsOk ¶
func (l *LuxContext) IsOk() bool
func (*LuxContext) Reply7Z ¶
func (l *LuxContext) Reply7Z(data []byte) error
func (*LuxContext) ReplyBinary ¶
func (l *LuxContext) ReplyBinary(data []byte) error
func (*LuxContext) ReplyCSV ¶
func (l *LuxContext) ReplyCSV(data []byte) error
func (*LuxContext) ReplyExcel ¶
func (l *LuxContext) ReplyExcel(data []byte) error
func (*LuxContext) ReplyFile ¶
func (l *LuxContext) ReplyFile(path string) error
func (*LuxContext) ReplyGZIP ¶
func (l *LuxContext) ReplyGZIP(data []byte) error
func (*LuxContext) ReplyHTML ¶
func (l *LuxContext) ReplyHTML(data []byte) error
func (*LuxContext) ReplyJPEG ¶
func (l *LuxContext) ReplyJPEG(data []byte) error
func (*LuxContext) ReplyJSON ¶
func (l *LuxContext) ReplyJSON(data interface{}) error
func (*LuxContext) ReplyMP4 ¶
func (l *LuxContext) ReplyMP4(data []byte) error
func (*LuxContext) ReplyPDF ¶
func (l *LuxContext) ReplyPDF(data []byte) error
func (*LuxContext) ReplyPNG ¶
func (l *LuxContext) ReplyPNG(data []byte) error
func (*LuxContext) ReplyPlainText ¶
func (l *LuxContext) ReplyPlainText(text string) error
func (*LuxContext) ReplyPowerpoint ¶
func (l *LuxContext) ReplyPowerpoint(data []byte) error
func (*LuxContext) ReplyProtobuf ¶
func (l *LuxContext) ReplyProtobuf(data protoreflect.ProtoMessage) error
func (*LuxContext) ReplyString ¶
func (l *LuxContext) ReplyString(text string) error
func (*LuxContext) ReplyTar ¶
func (l *LuxContext) ReplyTar(data []byte) error
func (*LuxContext) ReplyWebM ¶
func (l *LuxContext) ReplyWebM(data []byte) error
func (*LuxContext) ReplyWebP ¶
func (l *LuxContext) ReplyWebP(data []byte) error
func (*LuxContext) ReplyWord ¶
func (l *LuxContext) ReplyWord(data []byte) error
func (*LuxContext) ReplyXML ¶
func (l *LuxContext) ReplyXML(data []byte) error
func (*LuxContext) ReplyZip ¶
func (l *LuxContext) ReplyZip(data []byte) error
func (*LuxContext) SaveMultipartFile ¶
func (l *LuxContext) SaveMultipartFile(headers []*multipart.FileHeader, path string) error
func (*LuxContext) SetAccepted ¶
func (l *LuxContext) SetAccepted()
func (*LuxContext) SetBadRequest ¶
func (l *LuxContext) SetBadRequest()
func (*LuxContext) SetConflict ¶
func (l *LuxContext) SetConflict()
func (*LuxContext) SetForbidden ¶
func (l *LuxContext) SetForbidden()
func (*LuxContext) SetFound ¶
func (l *LuxContext) SetFound()
func (*LuxContext) SetInternalServerError ¶
func (l *LuxContext) SetInternalServerError()
func (*LuxContext) SetNoContent ¶
func (l *LuxContext) SetNoContent()
func (*LuxContext) SetNotFound ¶
func (l *LuxContext) SetNotFound()
func (*LuxContext) SetNotImplemented ¶
func (l *LuxContext) SetNotImplemented()
func (*LuxContext) SetOK ¶
func (l *LuxContext) SetOK()
func (*LuxContext) SetResetContent ¶
func (l *LuxContext) SetResetContent()
func (*LuxContext) SetSecureCookie ¶
func (*LuxContext) SetServiceUnavailable ¶
func (l *LuxContext) SetServiceUnavailable()
func (*LuxContext) SetStatus ¶
func (l *LuxContext) SetStatus(status int)
func (*LuxContext) SetUnauthorized ¶
func (l *LuxContext) SetUnauthorized()
func (*LuxContext) SetUnsupportedMediaType ¶
func (l *LuxContext) SetUnsupportedMediaType()
Click to show internal directories.
Click to hide internal directories.