Documentation
¶
Index ¶
- Variables
- func HtmlClean(html string) string
- func ParseUdnLogLevel(level string) int
- func UdnDebug(udn_schema map[string]interface{}, input interface{}, button_label string, ...)
- func UdnDebugIncrementChunk(udn_schema map[string]interface{})
- func UdnDebugReset(udn_schema map[string]interface{})
- func UdnDebugUpdate(udn_schema map[string]interface{})
- func UdnDebugWriteHtml(udn_schema map[string]interface{}) string
- func UdnError(udn_schema map[string]interface{}, format string, args ...interface{})
- func UdnLog(udn_schema map[string]interface{}, format string, args ...interface{})
- func UdnLogHtml(udn_schema map[string]interface{}, log_level int, format string, ...)
- func UdnLogLevel(udn_schema map[string]interface{}, log_level int, format string, ...)
- type DynamicResult
- type UdnPart
- type UdnResult
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug_Udn bool
View Source
var Debug_Udn_Api bool
View Source
var Debug_Udn_Log_Level int
View Source
var PartTypeName map[int]string
Functions ¶
func ParseUdnLogLevel ¶
func UdnDebugIncrementChunk ¶
func UdnDebugIncrementChunk(udn_schema map[string]interface{})
func UdnDebugReset ¶
func UdnDebugReset(udn_schema map[string]interface{})
func UdnDebugUpdate ¶
func UdnDebugUpdate(udn_schema map[string]interface{})
func UdnDebugWriteHtml ¶
func UdnLogHtml ¶
func UdnLogLevel ¶
Types ¶
type DynamicResult ¶
type UdnPart ¶
type UdnPart struct { Depth int PartType int Value string // List of UdnPart structs, list is easier to use dynamically //TODO(g): Switch this to an array. Lists suck... Children *list.List Id string // Puts the data here after it's been evaluated ValueFinal interface{} ValueFinalType int // Allows casting the type, not sure about this, but seems useful to cast ints from strings for indexing. We'll see CastValue string ParentUdnPart *UdnPart NextUdnPart *UdnPart // For block functions (ex: Begin: __iterate, End: __end_iterate). For each block begin/end, save them during parsing, so we know which __end_ function ends which block, if there are multiple per UDN statement BlockBegin *UdnPart BlockEnd *UdnPart }
func NewUdnPart ¶
func NewUdnPart() UdnPart
func (*UdnPart) AddFunction ¶
Returns the new Function, added to the previous function chain
func (*UdnPart) FindBeginBlock ¶
Returns a function that starts with the value string, which doesnt have a BlockBegin/BlockEnd set yet
type UdnResult ¶
type UdnResult struct { // This is the result Result interface{} `json:"result"` Type int `json:"type"` // This is the next UdnPart to process. If nil, the executor will just continue from current UdnPart.NextUdnPart NextUdnPart *UdnPart `json:"next_udp_part,omitempty"` // Error messages, we will stop processing if not nil Error string `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.