Documentation ¶
Index ¶
- Variables
- func APIResponse(w web.ResponseWriter, r *web.Request, params interface{})
- func CheckSignature(encryptedMessage, secretText, publicKey string) (bool, error)
- func DeleteImagesWithPrefix(prefix string) error
- func DirectGET(url string) (string, error)
- func DirectPOST(url string, params url.Values) (string, error)
- func EncryptText(encryptionText, publicKey string) (string, error)
- func Fingerprint(publicKey string) string
- func GenerateUuid() string
- func GetFileAbsolutePath(relativePath string) string
- func HumanizeTime(t time.Time, lang string) string
- func HumanizeTimeRU(t time.Time) string
- func InitLogging()
- func PasswordHashV1(username string, passphrase string) string
- func RedirectOrAPIResponse(w web.ResponseWriter, r *web.Request, redirectUrl string, params interface{})
- func RenderTemplate(w web.ResponseWriter, template string, params interface{})
- func ResizeImage(infilename, outfilename string, size string) error
- func Round(f float64) float64
- func RoundPlus(f float64, places int) float64
- func SaveImage(r *web.Request, field string, maxWidth uint, uuid string) error
- func ServeImage(filename, size string, w web.ResponseWriter, r *web.Request) error
- func TorGET(url string) (string, error)
- func TorJSONPOST(url string, data interface{}) (string, error)
- func TorPOST(url string, params url.Values) (string, error)
- func TorRawPOST(url string, params string) (string, error)
- func ValidatePGPPublicKey(key string) error
- type Context
Constants ¶
This section is empty.
Variables ¶
View Source
var (
APPLICATION_SETTINGS = settings.GetSettings()
)
View Source
var (
Log = logging.MustGetLogger("default")
)
Functions ¶
func APIResponse ¶
func APIResponse(w web.ResponseWriter, r *web.Request, params interface{})
func CheckSignature ¶
func DeleteImagesWithPrefix ¶
func EncryptText ¶
func Fingerprint ¶
func GenerateUuid ¶
func GenerateUuid() string
func GetFileAbsolutePath ¶
func HumanizeTimeRU ¶
func InitLogging ¶
func InitLogging()
func PasswordHashV1 ¶
func RedirectOrAPIResponse ¶
func RedirectOrAPIResponse(w web.ResponseWriter, r *web.Request, redirectUrl string, params interface{})
func RenderTemplate ¶
func RenderTemplate(w web.ResponseWriter, template string, params interface{})
func ResizeImage ¶
func ServeImage ¶
func TorJSONPOST ¶
func ValidatePGPPublicKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.