Documentation
¶
Index ¶
- func GenerateID() string
- func GetDatabaseFile() string
- func GetHomeFolder() string
- func GetIPAdress(r *http.Request) string
- func JoinStrings(strs ...string) string
- func LogCookieNotFound(r *http.Request, cookie *http.Cookie, ID string)
- func LogCreatedPaste(r *http.Request, generatedID string)
- func LogDBFileTooBig(t time.Time)
- func LogError(err error)
- func LogFailedDelete(r *http.Request, password string, ID string)
- func LogFailedLogin(r *http.Request, password string)
- func LogParsingFileError()
- func LogPasteFolderTooBig(t time.Time)
- func LogPasteNotFound(r *http.Request, ID string)
- func LogPasteNotFoundDelete(r *http.Request, ID string)
- func LogRequestID(r *http.Request, ID string)
- func LogSuccessfulDelete(r *http.Request, ID string)
- func LogSuccessfulLogin(r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabaseFile ¶
func GetDatabaseFile() string
GetDatabaseFile returns string with database file. Doesn't work with cross compiling!
func GetHomeFolder ¶
func GetHomeFolder() string
GetHomeFolder returns string with current user's home folder Doesn't work with cross compiling!
func GetIPAdress ¶
GetIPAdress returns IP after processing it, looking for not private networks and headers from proxies.
func JoinStrings ¶
JoinStrings concants the strings in somewhat efficient way. Appends new line on the end. (or at least better than +=)
func LogCookieNotFound ¶
LogCookieNotFound is exported to be easly changeable.
func LogCreatedPaste ¶
LogCreatedPaste is exported to be easly changeable.
func LogDBFileTooBig ¶
LogDBFileTooBig is exported to be easly changeable.
func LogFailedDelete ¶
LogFailedDelete is exported to be easly changeable.
func LogFailedLogin ¶
LogFailedLogin is exported to be easly changeable.
func LogParsingFileError ¶
func LogParsingFileError()
LogParsingFileError is exported to be easly changeable.
func LogPasteFolderTooBig ¶
LogPasteFolderTooBig is exported to be easly changeable.
func LogPasteNotFound ¶
LogPasteNotFound is exported to be easly changeable.
func LogPasteNotFoundDelete ¶
LogPasteNotFoundDelete is exported to be easly changeable.
func LogRequestID ¶
LogRequestID is exported to be easly changeable.
func LogSuccessfulDelete ¶
LogSuccessfulDelete is exported to be easly changeable.
Types ¶
This section is empty.