cyno

package module
v0.0.0-...-f7430c4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

README

Cyno - Yet another firewall middleware for Gin

Name: Inspired by Genshin Impact(Cyno is the General Mahamatra and he leads the Matra and strikes fear into the hearts of researchers of the Sumeru Akademiya.)

Features:

  1. Automatic Ban CC Attack
  2. Record User Footstep by Clientid
  3. etc

How to use:

go get -u github.com/chi-net/cyno
package main

import (
	"github.com/chi-net/cyno"
	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()

	r.Use(cyno.Default())

	r.get("/ping", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"status": 200,
			"ping":   "pong",
		})
	})

	r.Run(":8080")
}

License:

Under GPL-3.0 License.

Used by:

Nahida-web

Source:

This is a inner module of nahida-web, so it is updated 2 versions back with Nahida-web.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() gin.HandlerFunc

大风机关赛诺 专打喜欢CC攻击和越权的小朋友

Types

This section is empty.

Jump to

Keyboard shortcuts

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