Documentation ¶
Index ¶
- Variables
- func CheckHash(password, dbPassword string) bool
- func IsLocalHandle(handle string) bool
- func PageOffset(page uint) uint
- func ParseHost(handle string) (string, error)
- func ParseMentions(text string) [][]string
- func ParseTags(text string) [][]string
- func ParseUsername(handle string) (string, error)
- func ParseWebfingerHandle(handle string) (string, error)
- func Token() (string, error)
- func Uuid() (string, error)
- func UuidFromSalt(salt string) string
- type AppLogWrapper
- type SentryLogHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var UserBlacklist = map[string]int{}/* 521 elements not displayed */
UserBlacklist copyright by Martin Sandström see license https://github.com/marteinn/The-Big-Username-Blacklist/blob/master/LICENSE
Functions ¶
func IsLocalHandle ¶
func PageOffset ¶
func ParseMentions ¶
Will contain following parts
Index Match 0 @{ganggo@localhost; ganggo@localhost} 1 ganggo@localhost 2 ganggo 3 localhost
func ParseUsername ¶
func ParseWebfingerHandle ¶
func UuidFromSalt ¶
Types ¶
type AppLogWrapper ¶
type AppLogWrapper struct {
Name string
}
func (AppLogWrapper) Print ¶
func (wrap AppLogWrapper) Print(v ...interface{})
func (AppLogWrapper) Println ¶
func (wrap AppLogWrapper) Println(v ...interface{})
type SentryLogHandler ¶
type SentryLogHandler struct{}
SentryLogHandler will intercept logging and send all errors with a log level greater then info to the specified DSN
Click to show internal directories.
Click to hide internal directories.