Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Answer ¶
type Answer struct { Path []string Redirect string Cookie string Data interface{} Exited bool Code int Meta AnswerMeta IsJSON bool CspMap map[string]string }
Answer объект содержащий ответ
type AnswerMeta ¶
AnswerMeta объект содержит заголовок и описание страницы
type Obj ¶
type Obj struct { W http.ResponseWriter R *http.Request TimeStart time.Time Ans Answer AppendFunc func(*Obj, map[string]interface{}) map[string]interface{} Cache map[string]interface{} Debug bool ServerTiming bool }
Obj основной объект запроса
type Param ¶
type Param struct { Port int Route func(*Obj) WsRoute func(*http.Request, *WsConn) WsPath string MaxArgLeg int YateScript string NodeScript string Cookie Cookie CspMap map[string]string Csp string ParseRequest func(http.ResponseWriter, *http.Request) Middlewares []func(next http.Handler) http.Handler PerfomanceLog string AlwaysJSON bool }
Param это переменные для инициализации класса
type WsData ¶
type WsData struct { Action string `json:"action"` Data json.RawMessage `json:"data"` }
WsData - структура данны хдля веб-сокета
Click to show internal directories.
Click to hide internal directories.