Documentation ¶
Index ¶
- type Array
- type Files
- type Json
- func (j *Json) Array(path ...interface{}) Array
- func (j *Json) Bytes() []byte
- func (j *Json) Empty(key string) bool
- func (j *Json) Get(path ...interface{}) Value
- func (j *Json) Has(key string) bool
- func (j *Json) Iter() jsoniter.Any
- func (j *Json) Path(path ...interface{}) jsoniter.Any
- func (j *Json) Reset(data interface{}) jsoniter.Any
- func (j *Json) String() string
- type JsonFormat
- type Protobuf
- type Store
- func (s *Store) Add(key string, value []string)
- func (s *Store) All(key string) Values
- func (s *Store) Empty(key string) bool
- func (s *Store) First(key string) Value
- func (s *Store) Has(key string) bool
- func (s *Store) Index(key string, index int) Value
- func (s *Store) Keys() []string
- func (s *Store) Remove(key string)
- func (s *Store) String() string
- func (s *Store) Struct(input interface{})
- func (s *Store) Values() [][]string
- type Stream
- func (s *Stream) AutoGet(key string) Value
- func (s *Stream) AutoParse()
- func (s *Stream) ClientIP() string
- func (s *Stream) Empty(key string) bool
- func (s *Stream) End(data interface{}) error
- func (s *Stream) EndBytes(data []byte) error
- func (s *Stream) EndFile(fileName string, content interface{}) error
- func (s *Stream) EndJson(data interface{}) error
- func (s *Stream) EndString(data string) error
- func (s *Stream) Forward(fn func(stream *Stream) error) error
- func (s *Stream) Has(key string) bool
- func (s *Stream) Host() string
- func (s *Stream) JsonFormat(status string, code int, msg interface{}) error
- func (s *Stream) ParseFiles() *Files
- func (s *Stream) ParseForm() *Store
- func (s *Stream) ParseJson() *Json
- func (s *Stream) ParseMultipart() *Store
- func (s *Stream) ParseProtobuf() *Protobuf
- func (s *Stream) ParseQuery() *Store
- func (s *Stream) Scheme() string
- func (s *Stream) SetHeader(header string, content string)
- func (s *Stream) SetMaxMemory(maxMemory int64)
- func (s *Stream) String() string
- func (s *Stream) Url() string
- type Value
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonFormat ¶
type Stream ¶
type Stream struct { // Server *Server Response http.ResponseWriter Request *http.Request Query *Store Form *Store Json *Json Protobuf *Protobuf Files *Files Params kitty2.Params Context kitty2.Context Logger kitty2.Logger // contains filtered or unexported fields }
func (*Stream) JsonFormat ¶
func (*Stream) ParseFiles ¶
func (*Stream) ParseMultipart ¶
func (*Stream) ParseProtobuf ¶
func (*Stream) ParseQuery ¶
func (*Stream) SetMaxMemory ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.