support

package
v0.0.0-...-0ede13a Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CauseTypes = map[int]string{
	-1: "Select cause...",
	0:  "Illegal content",
	1:  "Malware",
	2:  "Site error",
	3:  "Question",
}

Functions

func RegisterHandler

func RegisterHandler(r *gin.Engine, tm *template.Manager, asc *abuse_store.Client)

Types

type Cause

type Cause int

type Data

type Data struct {
	Form       *Form
	CauseTypes map[int]string
}

type Form

type Form struct {
	Cause       Cause  `form:"cause"`
	Subject     string `form:"subject"`
	Description string `form:"description"`
	Infohash    string `form:"infohash"`
	Filename    string `form:"filename"`
	Email       string `form:"email"`
	Work        string `form:"work"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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