diff --git a/docs/slides/mnGo/auth/auth.go b/docs/slides/mnGo/auth/auth_go similarity index 100% rename from docs/slides/mnGo/auth/auth.go rename to docs/slides/mnGo/auth/auth_go diff --git a/docs/slides/mnGo/caching/dist.go b/docs/slides/mnGo/caching/dist_go similarity index 100% rename from docs/slides/mnGo/caching/dist.go rename to docs/slides/mnGo/caching/dist_go diff --git a/docs/slides/mnGo/go_and_react.slide b/docs/slides/mnGo/go_and_react.slide index 4ee921da85..c18ce37559 100644 --- a/docs/slides/mnGo/go_and_react.slide +++ b/docs/slides/mnGo/go_and_react.slide @@ -25,7 +25,7 @@ chris@influxdb.com * Simplest File Server -.code simple/router.go +.code simple/router_go - However, React routing needs "wildcard" route to return same HTML page. - Client-Side Routing! @@ -36,15 +36,15 @@ chris@influxdb.com * Wildcard routing to default asset -.code net/http/fs.go /func FileServer/,/^}/ +.code net/http/fs_go /func FileServer/,/^}/ Implement `FileSystem` with a default file -.code simple/dir.go /type/,/OMIT END/ +.code simple/dir_go /type/,/OMIT END/ * Minimal React Host Server -.code simple/react.go +.code simple/react_go * Problems with SPA - Slow loads @@ -54,31 +54,31 @@ Implement `FileSystem` with a default file - Cache-Control: [[https://tools.ietf.org/html/rfc7234#section-5.2]] - ETag: [[https://tools.ietf.org/html/rfc7232#section-2.3]] -.code caching/dist.go /w\./,/^}/ +.code caching/dist_go /w\./,/^}/ - Strong ETag validation * Compression - gzip middleware by `github.com/NYTimes/gziphandler` -.code gzip/mux.go +.code gzip/mux_go * Authentication and Authorization - If authenticated able to see assets else redirected to /login - If authorized able to read parts of REST API -.code auth/auth.go /func AuthorizedToken/,/^}/ +.code auth/auth_go /func AuthorizedToken/,/^}/ * Bonus middleware :) * HSTS -.code hsts/hsts.go /HSTS/,/^}/ +.code hsts/hsts_go /HSTS/,/^}/ - informs the client to cache that HTTPS should be used for a length of time. - if client receives HTTP instead reject as a possible man-in-the-middle. - HSTS doesn't redirect HTTP to HTTPS but rather is only used on HTTPS responses. * Version -.code version/version.go /func Version/,/^}/ +.code version/version_go /func Version/,/^}/ - Not necessarily directly useful for React - Nice for debugging @@ -86,7 +86,7 @@ Implement `FileSystem` with a default file - index.html generally comes from / - Operationally, nice to serve from different routes - Better way? Help! -.code prefixer/url_prefixer.go /\*URLPrefixer/,/^}/ +.code prefixer/url_prefixer_go /\*URLPrefixer/,/^}/ * Development Environment - One repository diff --git a/docs/slides/mnGo/gzip/mux.go b/docs/slides/mnGo/gzip/mux_go similarity index 100% rename from docs/slides/mnGo/gzip/mux.go rename to docs/slides/mnGo/gzip/mux_go diff --git a/docs/slides/mnGo/hsts/hsts.go b/docs/slides/mnGo/hsts/hsts_go similarity index 100% rename from docs/slides/mnGo/hsts/hsts.go rename to docs/slides/mnGo/hsts/hsts_go diff --git a/docs/slides/mnGo/mux/mux.go b/docs/slides/mnGo/mux/mux_go similarity index 100% rename from docs/slides/mnGo/mux/mux.go rename to docs/slides/mnGo/mux/mux_go diff --git a/docs/slides/mnGo/net/http/fs.go b/docs/slides/mnGo/net/http/fs_go similarity index 100% rename from docs/slides/mnGo/net/http/fs.go rename to docs/slides/mnGo/net/http/fs_go diff --git a/docs/slides/mnGo/prefixer/url_prefixer.go b/docs/slides/mnGo/prefixer/url_prefixer_go similarity index 100% rename from docs/slides/mnGo/prefixer/url_prefixer.go rename to docs/slides/mnGo/prefixer/url_prefixer_go diff --git a/docs/slides/mnGo/simple/dir.go b/docs/slides/mnGo/simple/dir_go similarity index 100% rename from docs/slides/mnGo/simple/dir.go rename to docs/slides/mnGo/simple/dir_go diff --git a/docs/slides/mnGo/simple/react.go b/docs/slides/mnGo/simple/react_go similarity index 100% rename from docs/slides/mnGo/simple/react.go rename to docs/slides/mnGo/simple/react_go diff --git a/docs/slides/mnGo/simple/router.go b/docs/slides/mnGo/simple/router_go similarity index 100% rename from docs/slides/mnGo/simple/router.go rename to docs/slides/mnGo/simple/router_go diff --git a/docs/slides/mnGo/version/version.go b/docs/slides/mnGo/version/version_go similarity index 100% rename from docs/slides/mnGo/version/version.go rename to docs/slides/mnGo/version/version_go