Documentation ¶
Index ¶
- type JSONDataType
- type JSONToTableType
- func (hdlr *JSONToTableType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *JSONToTableType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *JSONToTableType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONDataType ¶
type JSONDataType int
const ( IsJSONHash JSONDataType = 1 IsJSONArray JSONDataType = 2 IsJSONOther JSONDataType = 3 IsJSONError JSONDataType = 4 IsJSONEmpty JSONDataType = 5 )
func PeekAtJSONData ¶
func PeekAtJSONData(s string, rw *goftlmux.MidBuffer, LineNo int) (jdt JSONDataType)
func (JSONDataType) String ¶
func (jdt JSONDataType) String() string
type JSONToTableType ¶
type JSONToTableType struct { Next http.Handler // Paths []string // Paths that match this ConvertRowTo1LongTable bool // Convert1LongTableToRow bool // LineNo int // }
func NewJSONToTableServer ¶
func NewJSONToTableServer(n http.Handler, p []string, c, d bool) *JSONToTableType
Parameterized for testing? or just change the test
func (*JSONToTableType) InitializeWithConfigData ¶
func (hdlr *JSONToTableType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*JSONToTableType) PreValidate ¶
func (hdlr *JSONToTableType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*JSONToTableType) ServeHTTP ¶
func (hdlr *JSONToTableType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.