Versions in this module Expand all Collapse all v0 v0.1.1 Jul 16, 2022 v0.1.0 Jun 26, 2022 Changes in this version + 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 struct + Id int + Regex string + func GetRegexBlacklist() ([]PostBlacklist, error) + type Signature struct + Algorithm string + Headers []string + KeyId string + Signature string + type Verify struct + Board string + Code string + Created string + Identifier string + Label string + Type string + func GetVerificationByCode(code string) (Verify, error) + func GetVerificationByEmail(email string) (Verify, error) + func GetVerify(access string) (Verify, error) + 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 struct + Code string + Identifier string + Time int + func VerifyCooldownCurrent(auth string) (VerifyCooldown, error)