main

command
v0.0.0-...-517d9f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package main Time : 2022/8/15 23:00 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/8/17 21:55 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/8/17 22:00 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/8/17 22:03 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/8/17 22:39 Author : xushiyin contact : yuqingxushiyin@gmail.com

Limits ====== This example demonstrates the use of Timeout, and Throttle middlewares.

Timeout:

cancel a request if processing takes longer than 2.5 seconds,
server will respond with a http.StatusGatewayTimeout.

Throttle:

limit the number of in-flight requests along a particular
routing path and backlog the others.

Package main Time : 2022/8/17 22:43 Author : xushiyin contact : yuqingxushiyin@gmail.com

Custom Structured Logger ======================== This example demonstrates how to use middleware.RequestLogger, middleware.LogFormatter and middleware.LogEntry to build a structured logger using the amazing sirupsen/logrus package as the logging backend.

Also: check out https://github.com/goware/httplog for an improved context logger with support for HTTP request logging, based on the example below.

Package main Time : 2022/8/16 10:37 Author : xushiyin contact : yuqingxushiyin@gmail.com rest interface

Package main Time : 2022/8/17 22:52 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/8/17 21:26 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/9/18 12:17 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/9/18 12:23 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/9/18 12:30 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package main Time : 2022/9/18 12:35 Author : xushiyin contact : yuqingxushiyin@gmail.com

Package basics Time : 2022/8/7 11:46 Author : xushiyin contact : yuqingxushiyin@gmail.com describe: show custom flag type in go 1.19

Package XuAlgoGo Time : 2021/5/6 2:10 下午 Author : xushiyin contact : yuqingxushiyin@gmail.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL