售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Go Web Development Cookbook
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Creating Your First Server in Go
Introduction
Creating a simple HTTP server
How to do it…
How it works…
Implementing basic authentication on a simple HTTP server
Getting ready
How to do it…
How it works…
Optimizing HTTP server responses with GZIP compression
How to do it…
How it works…
Creating a simple TCP server
How to do it…
How it works…
Reading data from a TCP connection
Getting ready…
How to do it…
How it works…
Writing data to a TCP connection
Getting ready…
How to do it…
How it works…
Implementing HTTP request routing
How to do it…
How it works…
Implementing HTTP request routing using Gorilla Mux
How to do it…
How it works…
Logging HTTP requests
Getting Ready…
How to do it…
How it works…
Working with Templates, Static Files, and HTML Forms
Introduction
Creating your first template
How to do it…
How it works…
Serving static files over HTTP
Getting ready…
How to do it…
How it works…
Serving static files over HTTP using Gorilla Mux
Getting ready…
How to do it…
How it works…
Creating your first HTML form
How to do it…
How it works…
Reading your first HTML form
Getting ready…
How to do it…
How it works…
Validating your first HTML form
Getting ready…
How to do it…
How it works…
Uploading your first file
How to do it…
How it works…
Working with Sessions, Error Handling, and Caching in Go
Introduction
Creating your first HTTP session
How to do it…
How it works…
Managing your HTTP session using Redis
Getting ready…
How to do it…
How it works…
Creating your first HTTP cookie
How to do it…
How it works…
Implementing caching in Go
How to do it…
How it works…
Implementing HTTP error handling in Go
How to do it…
How it works…
Implementing login and logout in web application
Getting ready…
How to do it…
How it works…
Writing and Consuming RESTful Web Services in Go
Introduction
Creating your first HTTP GET method
How to do it…
How it works…
Creating your first HTTP POST method
How to do it…
How it works…
Creating your first HTTP PUT method
How to do it…
How it works…
Creating your first HTTP DELETE method
How to do it…
How it works…
Versioning your REST API
How to do it…
How it works…
Creating your first REST client
Getting ready…
How to do it…
How it works…
Creating your first AngularJS Client
Getting ready…
How to do it…
How it works…
Creating your first ReactJS client
Getting ready…
How to do it…
How it works…
Creating your first VueJS client
Getting ready…
How to do it…
How it works…
Working with SQL and NoSQL Databases
Introduction
Integrating MySQL and Go
Getting ready…
How to do it…
How it works…
Creating your first record in MySQL
Getting ready…
How to do it…
How it works…
Reading records from MySQL
How to do it…
How it works…
Updating your first record in MySQL
How to do it…
How it works…
Deleting your first record from MySQL
How to do it…
How it works…
Integrating MongoDB and Go
Getting ready…
How to do it…
How it works…
Creating your first document in MongoDB
How to do it…
How it works…
Reading documents from MongoDB
How to do it…
How it works…
Updating your first document in MongoDB
How to do it…
How it works…
Deleting your first document from MongoDB
How to do it…
How it works…
Writing Microservices in Go Using Micro – a Microservice Toolkit
Introduction
Creating your first protocol buffer
Getting ready…
How to do it…
How it works…
Spinning up a microservice discovery client
Getting ready…
How to do it…
How it works…
Creating your first microservice
Getting ready…
How to do it…
How it works…
Creating your second microservice
How to do it…
How it works…
Creating your Micro API
Getting ready…
How to do it…
How it works…
Interacting with microservices using a command-line interface and web UI
How to do it…
How it works…
Working with WebSocket in Go
Introduction
Creating your first WebSocket server
How to do it…
How it works…
Creating your first WebSocket client
How to do it…
How it works…
Debugging your first local WebSocket server
Getting ready…
How to do it…
How it works…
Debugging your first remote WebSocket server
How to do it…
How it works…
Unit testing your first WebSocket server
How to do it…
How it works…
Working with the Go Web Application Framework – Beego
Introduction
Creating your first project using Beego
How to do it…
How it works…
Creating your first controller and router
How to do it…
How it works…
Creating your first view
How to do it…
How it works…
Creating your first session variable
Getting ready…
How to do it…
How it works…
Creating your first filter
How to do it…
How it works…
Handling HTTP errors in Beego
How to do it…
How it works…
Implementing caching in Beego
How to do it…
How it works…
Monitoring the Beego application
How to do it…
How it works…
Deploying the Beego application on a local machine
How to do it…
How it works…
Deploying the Beego application with Nginx
Getting ready…
How to do it…
How it works…
Working with Go and Docker
Introduction
Building your first Go Docker image
Getting ready…
How to do it…
How it works…
Running your first Go Docker container
How to do it…
How it works…
Pushing your Docker image to the Docker Registry
How to do it…
How it works…
Creating your first user-defined bridge network
How to do it…
How it works…
Running a MySQL Docker image on a user-defined bridge network
How to do it…
How it works…
Building a Go web application Docker image
How to do it…
How it works…
Running a web application Docker container linked with a MySQL Docker container on a user-defined bridge network
How to do it…
How it works…
Securing a Go Web Application
Introduction
Creating a private key and SSL certificate using OpenSSL
Getting ready…
How to do it…
How it works…
Moving an HTTP server to HTTPS
How to do it…
How it works…
Defining REST APIs and routes
How to do it…
How it works…
Creating a JSON web token
How to do it…
How it works…
Securing a RESTful service using a JSON web token
How to do it…
How it works…
Preventing cross-site request forgery in Go web applications
How to do it…
How it works…
Deploying a Go Web App and Docker Containers to AWS
Introduction
Creating your first EC2 instance to run a Go web application
Getting ready…
How to do it…
How it works…
Interacting with your first EC2 instance
How to do it…
How it works…
Creating, copying, and running a Go web application on your first EC2 instance
How to do it…
How it works…
Setting up an EC2 instance to run a Docker container
How to do it…
How it works…
Pulling a Docker image on an AWS EC2 instance from Docker Hub
How to do it…
How it works…
Running your Go Docker container on an EC2 instance
How to do it…
How it works…
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜