Documentation ¶
Index ¶
- func BoardHasAuthType(board string, auth string) (bool, error)
- func Captcha() string
- func ConvertSize(size int64) string
- func CreateKey(len int) (string, error)
- func CreateNewCaptcha() error
- func CreateTripCode(input string) string
- func CreateUniqueID(actor string) (string, error)
- func CreatedNeededDirectories() error
- func DeleteCaptchaCode(verify string) error
- func DeleteRegexBlacklist(id int) error
- func EscapeString(text string) string
- func GetBoardAuth(board string) ([]string, error)
- func GetCaptchaCode(verify string) (string, error)
- func GetCaptchaTotal() (int, error)
- func GetContentType(location string) string
- func GetCookieKey() (string, error)
- func GetFileContentType(out multipart.File) (string, error)
- func GetPasswordFromSession(ctx *fiber.Ctx) (string, string)
- func GetPathProxyType(path string) string
- func GetRandomCaptcha() (string, error)
- func GetUniqueFilename(ext string) string
- func HasAuth(code string, board string) (bool, string)
- func HasAuthCooldown(auth string) (bool, error)
- func HashBytes(media []byte) string
- func HashMedia(media string) string
- func IsEmailSetup() bool
- func IsInStringArray(haystack []string, needle string) bool
- func IsOnion(url string) bool
- func IsPostBlacklist(comment string) (bool, error)
- func LoadThemes() error
- func LocalShort(url string) string
- func MakeCaptchas(total int) error
- func MakeError(err error, msg string) error
- func MediaProxy(url string) string
- func RandomID(size int) string
- func RemoteShort(url string) string
- func RouteProxy(req *http.Request) (*http.Response, error)
- func ShortImg(url string) string
- func ShortURL(actorName string, url string) string
- func StripTransferProtocol(value string) string
- func VerficationCooldown() error
- func VerficationCooldownRemove() error
- func WriteRegexBlacklist(regex string) error
- type PostBlacklist
- type Signature
- type Verify
- func (verify Verify) Create() error
- func (verify Verify) CreateBoardAccess() error
- func (verify Verify) CreateBoardMod() error
- func (verify Verify) DeleteBoardMod() error
- func (verify Verify) GetBoardMod() (Verify, error)
- func (verify Verify) GetCode() (Verify, error)
- func (verify Verify) HasBoardAccess() (bool, string)
- func (verify Verify) SendVerification() error
- func (verify Verify) VerifyCooldownAdd() error
- type VerifyCooldown
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertSize ¶
func CreateNewCaptcha ¶
func CreateNewCaptcha() error
func CreateTripCode ¶
func CreateUniqueID ¶
func CreatedNeededDirectories ¶
func CreatedNeededDirectories() error
func DeleteCaptchaCode ¶
func DeleteRegexBlacklist ¶
func EscapeString ¶
func GetBoardAuth ¶
func GetCaptchaCode ¶
func GetCaptchaTotal ¶
func GetContentType ¶
func GetCookieKey ¶
func GetPasswordFromSession ¶
func GetPathProxyType ¶
func GetRandomCaptcha ¶
func GetUniqueFilename ¶
GetUniqueFilename will look for an available random filename in the /public/ directory.
func HasAuthCooldown ¶
func IsEmailSetup ¶
func IsEmailSetup() bool
func IsInStringArray ¶
IsInStringArray looks for a string in a string array and returns true if it is found.
func IsPostBlacklist ¶
func LoadThemes ¶
func LoadThemes() error
func LocalShort ¶
func MakeCaptchas ¶
func MediaProxy ¶
func RemoteShort ¶
func StripTransferProtocol ¶
func VerficationCooldown ¶
func VerficationCooldown() error
func VerficationCooldownRemove ¶
func VerficationCooldownRemove() error
func WriteRegexBlacklist ¶
Types ¶
type PostBlacklist ¶
func GetRegexBlacklist ¶
func GetRegexBlacklist() ([]PostBlacklist, error)
type Verify ¶
type Verify struct { Type string Identifier string Code string Created string Board string Label string }
func GetVerificationByCode ¶
func GetVerificationByEmail ¶
func (Verify) CreateBoardAccess ¶
func (Verify) CreateBoardMod ¶
func (Verify) DeleteBoardMod ¶
func (Verify) GetBoardMod ¶
func (Verify) HasBoardAccess ¶
func (Verify) SendVerification ¶
func (Verify) VerifyCooldownAdd ¶
type VerifyCooldown ¶
func VerifyCooldownCurrent ¶
func VerifyCooldownCurrent(auth string) (VerifyCooldown, error)
Click to show internal directories.
Click to hide internal directories.