report

package
v0.0.0-...-317d7e6 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportRequest

type ReportRequest struct {
	Paste  string `json:"paste"`
	Reason string `json:"reason"`
}

ReportRequest represents a report request sent to the report webhook

type ReportResponse

type ReportResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

ReportResponse represents a report response received from the report webhook

func SendReport

func SendReport(reportRequest *ReportRequest) (*ReportResponse, error)

SendReport sends a report request to the report webhook

Jump to

Keyboard shortcuts

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