mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
dashboard: gofmt -s -w .
This commit is contained in:
parent
ba8fa4d998
commit
5c4c879b1a
3 changed files with 8 additions and 8 deletions
|
|
@ -161,7 +161,7 @@ func AssetNames() []string {
|
||||||
|
|
||||||
// _bindata is a table, holding each asset generator, mapped to its name.
|
// _bindata is a table, holding each asset generator, mapped to its name.
|
||||||
var _bindata = map[string]func() (*asset, error){
|
var _bindata = map[string]func() (*asset, error){
|
||||||
"public/bundle.js": publicBundleJs,
|
"public/bundle.js": publicBundleJs,
|
||||||
"public/dashboard.html": publicDashboardHtml,
|
"public/dashboard.html": publicDashboardHtml,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -204,10 +204,11 @@ type bintree struct {
|
||||||
Func func() (*asset, error)
|
Func func() (*asset, error)
|
||||||
Children map[string]*bintree
|
Children map[string]*bintree
|
||||||
}
|
}
|
||||||
|
|
||||||
var _bintree = &bintree{nil, map[string]*bintree{
|
var _bintree = &bintree{nil, map[string]*bintree{
|
||||||
"public": &bintree{nil, map[string]*bintree{
|
"public": {nil, map[string]*bintree{
|
||||||
"bundle.js": &bintree{publicBundleJs, map[string]*bintree{}},
|
"bundle.js": {publicBundleJs, map[string]*bintree{}},
|
||||||
"dashboard.html": &bintree{publicDashboardHtml, map[string]*bintree{}},
|
"dashboard.html": {publicDashboardHtml, map[string]*bintree{}},
|
||||||
}},
|
}},
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
@ -257,4 +258,3 @@ func _filePath(dir, name string) string {
|
||||||
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
||||||
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
|
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,5 +41,5 @@ type Config struct {
|
||||||
|
|
||||||
// Assets offers a possibility to manually set the dashboard website's location on the server side.
|
// Assets offers a possibility to manually set the dashboard website's location on the server side.
|
||||||
// It is useful for debugging, avoids the repeated generation of the binary.
|
// It is useful for debugging, avoids the repeated generation of the binary.
|
||||||
Assets string `toml:",omitempty"`
|
Assets string `toml:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,8 @@ type message struct {
|
||||||
// client represents active websocket connection with a remote browser.
|
// client represents active websocket connection with a remote browser.
|
||||||
type client struct {
|
type client struct {
|
||||||
conn *websocket.Conn // Particular live websocket connection
|
conn *websocket.Conn // Particular live websocket connection
|
||||||
msg chan message // Message queue for the update messages
|
msg chan message // Message queue for the update messages
|
||||||
logger log.Logger // Logger for the particular live websocket connection
|
logger log.Logger // Logger for the particular live websocket connection
|
||||||
}
|
}
|
||||||
|
|
||||||
// charts contains the collected data samples.
|
// charts contains the collected data samples.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue