12 2021 档案
摘要:With the general overview of the application behind us, it’s time to start building the application. Instead of going straight to the full-blown versi
阅读全文
摘要:The Kubernetes in Action Demo Application is a web-based application that shows quotes from this book, asks you Kubernetes-related questions to help y
阅读全文
摘要:If you are considering introducing Kubernetes in your organization, the most important question you need to answer is whether you’ll manage Kubernetes
阅读全文
摘要:If you want to run your applications on Kubernetes, you have to decide whether you want to run them locally, in your organization’s own infrastructure
阅读全文
摘要:Part 1: FIRST TIME ON A BOAT: INTRODUCTION TO KUBERNETES 第一部分:首次上船:kubernetes概述 1 Introducing Kubernete kubernetes介绍 2 Understanding containers 理解容器 3
阅读全文
摘要:What is Iris Iris是什么 Please navigate to GitHub Wiki for the complete documentation of the Iris latest stable release. This page is currently under con
阅读全文
摘要:API Versioning 版本控制 The versioning subpackage provides semver versioning for your APIs. All best practice conventions are implemented, including the s
阅读全文
摘要:Middleware 中间件 When we refer to the concept of Middleware within Iris, we're talking about running code before or after our main handler within an HTT
阅读全文
摘要:Blank Iris without middleware by default 无中间件的空白 Iris Use 使用 app := iris.New() instead of 代替 // Default with "debug" Logger Level. // Localization ena
阅读全文
摘要:Grouping routes 分组路由 func main() { app := iris.Default() // Simple group: v1 v1 := app.Party("/v1") { v1.Post("/login", loginEndpoint) v1.Post("/submi
阅读全文
摘要:Upload files 上传文件 Single file 单个文件 const maxSize = 8 * iris.MB func main() { app := iris.Default() app.Post("/upload", func(ctx iris.Context) { // Set
阅读全文
摘要:Query and post form parameters Query和post 表单参数 POST /post?id=a&id=b&id=c&name=john&name=doe&name=kataras Content-Type: application/x-www-form-urlencod
阅读全文
摘要:Another example: query + post form 另一个示例:query+post 表单 POST /post?id=1234&page=1 HTTP/1.1 Content-Type: application/x-www-form-urlencoded name=kataras
阅读全文
摘要:Multipart/Urlencoded Form Multipart/Urlencoded 表单 func main() { app := iris.Default() app.Post("/form_post", func(ctx iris.Context) { message := ctx.P
阅读全文
摘要:Querystring parameters 查询字符串参数 func main() { app := iris.Default() // Query string parameters are parsed using the existing underlying request object.
阅读全文
摘要:Parameters in path 路径参数 func main() { app := iris.Default() // This handler will match /user/john but will not match /user/ or /user app.Get("/user/{n
阅读全文
摘要:Using GET, POST, PUT, PATCH, DELETE and OPTIONS 使用 GET, POST, PUT, PATCH, DELETE and OPTIONS func main() { // Creates an iris application with default
阅读全文
摘要:API Examples API示例 You can find a number of ready-to-run examples at Iris examples repository. 你可以在Iris示例仓库中找到许多准备就绪的示例。 使用 GET, POST, PUT, PATCH, DEL
阅读全文
摘要:Benchmarks 基准测试 Iris uses a custom version of muxie. Iris使用muxie的自定义版本。 See all benchmarks 查看所有基准测试 📖 Fires 200000 requests with a dynamic parameter
阅读全文
摘要:Quick start 快速开始 Create an empty file, let's assume its name is example.go, then open it and copy-paste the below code. 创建一个空文件,假设它的名字为example.go,然后打开
阅读全文
摘要:Installation 安装 Iris is a cross-platform software. Iris是一个跨平台软件。 The only requirement is the Go Programming Language, version 1.15 and above. 唯一的要求是Go
阅读全文

浙公网安备 33010602011771号