Documentation
¶
Index ¶
- type Any
- type Array
- type Files
- 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
- 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
- type Parser
- type Protobuf
- type 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
- type SseConfig
- 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 any)
- func (s *Store) Values() [][]string
- type Stream
- func (s *Stream[T]) AutoGet(key string) Value
- func (s *Stream[T]) ClientIP() string
- func (s *Stream) Conn() T
- 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
- type Value
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser[T Packer] struct { // contains filtered or unexported fields }
func (*Parser[T]) SetMaxMemory ¶
type Sse ¶
type Stream ¶
type Stream[T Packer] struct { Time time.Time Response http.ResponseWriter Request *http.Request Query *Store Form *Store Files *Files Json *Json Protobuf *Protobuf Params socket.Params Context kitty.Context Logger kitty.Logger Sender *Sender Parser *Parser[T] // contains filtered or unexported fields }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.