• TA的每日心情
    开心
    2019-11-8 00:00
  • 签到天数: 10 天

    [LV.3]偶尔看看

    86

    主题

    11

    回帖

    521

    积分

    永久VIP

    积分
    521
    发表于 2019-11-5 22:33:21 1081 浏览 1 回复

    [Golang] 掌握GOWeb服务编程(Mastering_Go_Web_Services)pdf扫描版

    本帖最后由 scourglass22 于 2019-11-5 23:08 编辑

    1.png

    Table of Contents
    Mastering Go Web Services
    Credits
    About the Author
    About the Reviewers
    www.PacktPub.com
    Support files, eBooks, discount offers, and more
    Why subscribe?
    Free access for Packt account holders
    Preface
    What this book covers
    What you need for this book
    Who this book is for
    Conventions
    Reader feedback
    Customer support
    Downloading the color images of this book
    Errata
    Piracy
    Questions
    1. Our First API in Go
    Understanding requirements and dependencies
    Installing Go
    Installing and using MySQL
    Redis
    Couchbase
    Nginx
    Apache JMeter
    Using predefined datasets
    Choosing an IDE
    Eclipse
    Sublime Text
    LiteIDE
    IntelliJ IDEA
    Some client-side tools
    Looking at our application
    Setting up our database
    Introducing the HTTP package
    Quick hitter – saying Hello, World via API
    Building our first route
    Gorilla
    Routes
    Setting data via HTTP
    Connecting to MySQL
    Serving data from the datastore to the client
    Setting headers to add detail for clients
    Summary
    2. RESTful Services in Go
    Designing our application
    Looking at REST
    Making a representation in an API
    Self-description
    The importance of a URI
    HATEOAS
    Other API architectures
    RPC
    Choosing formats
    JSON
    XML
    YAML
    CSV
    Comparing the HTTP actions and methods
    The PATCH method versus the PUT method
    Bringing in CRUD
    Adding more endpoints
    Handling API versions
    Allowing pagination with the link header
    Summary
    3. Routing and Bootstrapping
    Writing custom routers in Go
    Using more advanced routers in Gorilla
    Using Gorilla for JSON-RPC
    Using services for API access
    Using a simple interface for API access
    Returning valuable error information
    Handling binary data
    Summary
    4. Designing APIs in Go
    Designing our social network API
    Handling our API versions
    Concurrent WebSockets
    Separating our API logic
    Expanding our error messages
    Updating our users via the web service
    Summary
    5. Templates and Options in Go
    Sharing our OPTIONS
    Implementing alternative formats
    Rolling our own data representation format
    Introducing security and authentication
    Forcing HTTPS
    Adding TLS support
    Letting users register and authenticate
    A quick hit – generating a salt
    Examining OAuth in Go
    Making requests on behalf of users
    Summary
    6. Accessing and Using Web Services in Go
    Connecting our users to other services
    Saving the state with a web service
    Using data from other OAuth services
    Connecting securely as a client in Go
    Summary
    7. Working with Other Web Technologies
    Serving Go through a reverse proxy
    Using Go with Apache
    Go and NGINX as reverse proxies
    Enabling sessions for the API
    Sessions in a RESTful design
    Using NoSQL in Go
    Memcached
    MongoDB
    Enabling connections using a username and password
    Allowing our users to connect to each other
    Summary
    8. Responsive Go for the Web
    Creating a frontend interface
    Logging in
    Using client-side frameworks with Go
    jQuery
    Consuming APIs with jQuery
    AngularJS
    Consuming APIs with Angular
    Setting up an API-consuming frontend
    Creating a client-side Angular application for a web service
    Viewing other users
    Rendering frameworks on the server side in Go
    Creating a status update
    Summary
    9. Deployment
    Project structures
    Using process control to keep your API running
    Using supervisor
    Using Manners for more graceful servers
    Deploying with Docker
    Deploying in cloud environments
    Amazon Web Services
    Using Go to interface directly with AWS
    Handling binary data and CDNs
    Checking for the existence of a file upload
    Sending e-mails with net/smtp
    RabbitMQ with Go
    Summary
    10. Maximizing Performance
    Using middleware to reduce cruft
    Caching requests
    Simple disk-based caching
    Enabling filtering
    Transforming a disk cache into middleware
    Caching in distributed memory
    Using NoSQL as a cache store
    Implementing a cache as middleware
    Using a frontend caching proxy in front of Go
    Rate limiting in Go
    Implementing rate limiting as middleware
    Implementing SPDY
    Detecting SPDY support
    Summary
    11. Security
    Handling error logging for security
    Preventing brute-force attempts
    Knowing what to log
    Handling basic authentication in Go
    Handling input validation and injection mitigation
    Using best practices for SQL
    Validating output
    Protection against XSS
    Using server-side frameworks in Go
    Tiger Tonic
    Martini
    Goji
    Beego
    Summary
    Index

    下载地址:

    游客,如果您要查看本帖隐藏内容请回复


    回复

    使用道具 举报

  • TA的每日心情
    开心
    2020-3-21 17:13
  • 签到天数: 1 天

    [LV.1]小吧新人

    0

    主题

    2

    回帖

    8

    积分

    Lv1码奴

    积分
    8
    发表于 2020-3-21 17:15:07
    very gooooooooood
    回复

    使用道具 举报

    返回列表
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    登录或注册

    团队

    一匹野马

    官方客服

    陆风-Q:1953128864

    官方QQ群

    825348618(程序员教程吧互助群)

    扫一扫快速加入

    群号652692981

    快速回复 返回顶部 返回列表