Go Programming Blueprints
Год: 2015
Автор: Mat Ryer
Издательство: Packt Publishing
ISBN: 978-1-78398-803-7
Язык: Английский
Формат: PDF/EPUB
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 274
Описание:
Dive headfirst into solving actual enterprise problems and start cutting code from the word go. You will build complete applications around a variety of subjects using a range of different technologies and techniques, all of which are directly applicable to today's tech start-up world.
Scale, performance, and high availability lie at the heart of the projects, and the lessons learned throughout this book will arm you with everything you need to build world-class solutions. Well-designed applications and sensible architectures can scale horizontally to cope with the demands of up to millions of users, while avoiding the prohibitive up-front investment that can bring a project to its knees.
Preface
Chapter 1: Chat Application with Web Sockets
A simple web server
Modeling a chat room and clients on the server
Building an HTML and JavaScript chat client
Tracing code to get a look under the hood
Chapter 2: Adding Authentication
Handlers all the way down
Making a pretty social sign-in page
Endpoints with dynamic paths
OAuth2
Tell the authentication providers about your app
Implementing external logging in
Chapter 3: Three Ways to Implement Profie Pictures
Avatars from the authentication server
Implementing Gravatar
Uploading an avatar picture
Combining all three implementations
Chapter 4: Command-line Tools to Find Domain Names
Pipe design for command-line tools
Five simple programs
Composing all fie programs
Chapter 5: Building Distributed Systems and Working with Flexible Data
System design
Installing the environment
Votes from Twitter
Counting votes
Running our solution
Chapter 6: Exposing Data and Functionality through a RESTful Data Web Service API
RESTful API design
Sharing data between handlers
Wrapping handler functions
Responding
Understanding the request
A simple main function to serve our API
Handling endpoints
A web client that consumes the API
Running the solution
Chapter 7: Random Recommendations Web Service
Project overview
Representing data in code
Generating random recommendations
Chapter 8: Filesystem Backup
Solution design
Backup package
The user command-line tool
The daemon backup tool
Testing our solution
Appendix: Good Practices for a Stable Go Environment
Installing Go
Confiuring Go
Go tools
Cleaning up, building, and running tests on save
Index
До перезалития, торрент был скачан - 769 раз.
Торрент перезалит. Причина: добавлен Code.