wtfd

package
v0.0.0-...-22e6143 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BRServiceDeskAddress is the address where the Server is recieving service desk mails
	BRServiceDeskAddress = "mail@example.com"
	// BRServiceDeskEnabled sets that service desk support is enabled
	BRServiceDeskEnabled = false
	// BRRateLimitInterval sets the rate limiting interval, defaults to 3m
	BRRateLimitInterval float64 = 180
	// BRRateLimitReports sets the Reports during interval needed before beeing rate limited, defaults to 2
	BRRateLimitReports = 2
	// BRSMTPPort sets the server to server smtp port
	BRSMTPPort = 25
	// BRSMTPUser sets the server to server smtp user
	BRSMTPUser = "sender"
	// BRSMTPPassword sets the server to server smtp password
	BRSMTPPassword = "passwd"
	// BRSMTPHost sets the server to server smtp host
	BRSMTPHost = "example.com"
)

Functions

func AllDepsCompleted

func AllDepsCompleted(u *db.User, c *types.Challenge) bool

AllDepsCompleted checks if User u has completed all Dependent challenges of c

func BRDispatchBugreport

func BRDispatchBugreport(u *db.User, subject string, content string) error

BRDispatchBugreport sends a bugreport

func BRIsUserRateLimited

func BRIsUserRateLimited(u *db.User) bool

BRIsUserRateLimited Checks if user is rate limited

func Server

func Server() error

Server is the main server func, start it with

log.Fatal(wtfd.Server())

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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