Documentation
¶
Index ¶
- type File
- func (f *File) All(fileName string) []*multipart.FileHeader
- func (f *File) Empty(fileName string) bool
- func (f *File) Files() map[string][]*multipart.FileHeader
- func (f *File) First(fileName string) *multipart.FileHeader
- func (f *File) Has(fileName string) bool
- func (f *File) Index(fileName string, index int) *multipart.FileHeader
- func (f *File) Name(fileName string) Value
- func (f *File) String() string
- type FileHeader
- type InvalidError
- type Json
- type Node
- func (n *Node) Array() []any
- func (n *Node) Bool() bool
- func (n *Node) Bytes() []byte
- func (n *Node) Exists() bool
- func (n *Node) Float64() float64
- func (n *Node) Get(path ...any) *Node
- func (n *Node) Int64() int64
- func (n *Node) Len() int
- func (n *Node) Object() map[string]any
- func (n *Node) Raw() string
- func (n *Node) 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) Redirect(url string, code int)
- 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
- func (s *Sender) Write(r io.Reader) 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) Remove(key string)
- func (s *Store) String() string
- type Stream
- func (s *Stream[T]) ClientIP() string
- func (s *Stream) Conn() T
- func (s *Stream[T]) Forward(fn func(stream *Stream[T]) error) error
- 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 Type
- type Validator
- type Value
- type Values
- type Xml
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
FileHeader
}
type FileHeader ¶
type FileHeader map[string][]*multipart.FileHeader
type InvalidError ¶
type InvalidError[T any] struct { Key string `json:"key"` Type string `json:"type"` Value T `json:"value"` Contract string `json:"contract"` Op string `json:"op"` }
func (*InvalidError[T]) Builder ¶
func (i *InvalidError[T]) Builder() *bytes.Buffer
func (*InvalidError[T]) Error ¶
func (i *InvalidError[T]) Error() string
func (*InvalidError[T]) MarshalJSON ¶
func (i *InvalidError[T]) MarshalJSON() ([]byte, error)
func (*InvalidError[T]) String ¶
func (i *InvalidError[T]) String() string
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 File *File Json *Json Protobuf *Protobuf Xml *Xml Params socket.Params Context kitty.Context Logger kitty.Logger Sender *Sender Parser *Parser[T] // contains filtered or unexported fields }
type Validator ¶
type Validator[T any] struct { // contains filtered or unexported fields }
func NewValidator ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.