Versions in this module Expand all Collapse all v1 v1.0.0 Oct 31, 2023 Changes in this version + type Any struct + func (a *Any) Bytes() []byte + func (a *Any) Decode(v any) error + func (a *Any) Float64() float64 + func (a *Any) Int() int + func (a *Any) Int64() int64 + func (a *Any) String() string + type Array []*Any + func (a Array) Float64() []float64 + func (a Array) Int() []int + func (a Array) String() []string + type Files struct + func (f *Files) All(fileName string) []*multipart.FileHeader + func (f *Files) Empty(fileName string) bool + func (f *Files) Files() map[string][]*multipart.FileHeader + func (f *Files) First(fileName string) *multipart.FileHeader + func (f *Files) Has(fileName string) bool + func (f *Files) Index(fileName string, index int) *multipart.FileHeader + func (f *Files) Name(fileName string) Value + func (f *Files) String() string + type Json struct + func (j *Json) Any() *Any + func (j *Json) Array(path ...any) Array + func (j *Json) Bytes() []byte + func (j *Json) Decode(v any) error + func (j *Json) Empty(key string) bool + func (j *Json) Get(path ...any) Value + func (j *Json) Has(key string) bool + func (j *Json) Path(path ...any) *Any + func (j *Json) Reset(data any) *Any + func (j *Json) String() string + type Packer interface + type Parser struct + func (s *Parser[T]) Auto() + func (s *Parser[T]) Error() error + func (s *Parser[T]) Form() + func (s *Parser[T]) HasParse() bool + func (s *Parser[T]) Json() + func (s *Parser[T]) Multipart() + func (s *Parser[T]) Protobuf() + func (s *Parser[T]) Query() + func (s *Parser[T]) SetMaxMemory(maxMemory int64) + type Protobuf struct + func (p *Protobuf) Bytes() []byte + type Sender struct + func NewSender(w http.ResponseWriter, r *http.Request) *Sender + func (s *Sender) Any(data any) error + func (s *Sender) Bytes(data []byte) error + func (s *Sender) File(fileName string, file io.Reader) error + func (s *Sender) Json(data any) error + func (s *Sender) Protobuf(data proto.Message) error + func (s *Sender) Respond(code int, msg any) error + func (s *Sender) RespondWithError(code int, err error) error + func (s *Sender) String(data string) error + type Sse struct + LasTEventID int64 + Stream *Stream[T] + func (s *Sse[T]) Any(data any) error + func (s *Sse[T]) Bytes(data any) error + func (s *Sse[T]) Done() <-chan struct{} + func (s *Sse[T]) Flush() + func (s *Sse[T]) IsClose() bool + func (s *Sse[T]) Json(data any) error + func (s *Sse[T]) String(data string) error + func (s *Sse[T]) Wait() error + type SseConfig struct + Retry time.Duration + type Store struct + 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 any) + func (s *Store) Values() [][]string + type Stream struct + Context kitty.Context + Files *Files + Form *Store + Json *Json + Logger kitty.Logger + Params socket.Params + Parser *Parser[T] + Protobuf *Protobuf + Query *Store + Request *http.Request + Response http.ResponseWriter + Sender *Sender + Time time.Time + func NewStream(conn T, w http.ResponseWriter, r *http.Request) *Stream[T] + func (s *Stream) Conn() T + func (s *Stream[T]) AutoGet(key string) Value + func (s *Stream[T]) ClientIP() string + func (s *Stream[T]) Empty(key string) bool + func (s *Stream[T]) Forward(fn func(stream *Stream[T]) error) error + func (s *Stream[T]) Has(key string) bool + func (s *Stream[T]) Host() string + func (s *Stream[T]) Scheme() string + func (s *Stream[T]) SetHeader(header string, content string) + func (s *Stream[T]) String() string + func (s *Stream[T]) UpgradeSse(config *SseConfig) (*Sse[T], error) + func (s *Stream[T]) Url() string + type Validator interface + type Value struct + func (v Value) Bool() bool + func (v Value) Bytes() []byte + func (v Value) Float64() float64 + func (v Value) Int() int + func (v Value) Int64() int64 + func (v Value) String() string + type Values []string + func (v Values) Bool() []bool + func (v Values) Bytes() [][]byte + func (v Values) Float64() []float64 + func (v Values) Int() []int + func (v Values) Int64() []int64 + func (v Values) String() []string