Documentation
¶
Index ¶
- Constants
- Variables
- func CreateNode() Node
- func FormatSql(value string) string
- func HandleConnection(ws socketer.Ws) http.HandlerFunc
- func HandleRefresh(ws socketer.Ws) http.HandlerFunc
- func HandleRequest(ws socketer.Ws, cache *sync.Map) http.HandlerFunc
- func HandleTool(cache *sync.Map, assetsId string) http.HandlerFunc
- func HandleToolScripts(assetsId string) http.HandlerFunc
- func HandleToolStyles() http.HandlerFunc
- func Push(id string, props Props) error
- func Recover(assets Node, err error) Node
- func Refresh()
- func Serve()
- type Config
- type Plugin
- type Props
Constants ¶
View Source
const ( ConnectorId = "dev-server" RefreshId = "dev-refresh" ToolId = "dev-tool" RequestId = "dev-tool-request" )
View Source
const ( PluginDebug = "debug" PluginDatabase = "database" PluginSession = "session" PluginParam = "param" )
View Source
const (
DefaultPort = "1993"
)
View Source
const (
DynamicStyle = "devtool-dynamic-style"
)
View Source
const (
StateCookieKey = "X-State"
)
Variables ¶
View Source
var ( ToolConfig = &Config{ Port: DefaultPort, Plugin: make(map[string]Plugin), } )
Functions ¶
func CreateNode ¶ added in v0.1.8
func CreateNode() Node
func HandleConnection ¶ added in v0.1.8
func HandleConnection(ws socketer.Ws) http.HandlerFunc
func HandleRefresh ¶ added in v0.1.8
func HandleRefresh(ws socketer.Ws) http.HandlerFunc
func HandleRequest ¶ added in v0.1.8
func HandleTool ¶ added in v0.1.8
func HandleTool(cache *sync.Map, assetsId string) http.HandlerFunc
func HandleToolScripts ¶ added in v0.1.8
func HandleToolScripts(assetsId string) http.HandlerFunc
func HandleToolStyles ¶ added in v0.1.8
func HandleToolStyles() http.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.