Documentation ¶
Overview ¶
Wrapper for the Gravatar API.
Index ¶
- Constants
- Variables
- func Available(email string) (ok bool, err error)
- func ConvertStringToUnixTime(tm string) (int64, error)
- func ConvertStringToUnixTimeFormat1(tm string) (int64, error)
- func FilterHtmlTag(filter_tag, html string) string
- func FormUnixTimeToString(t int64) string
- func FormUnixTimeToStringDate(t int64) string
- func FormatStringToUnix(tm, format string) (int64, error)
- func FormatStringToUnixLogDevice(tm string) (int64, error)
- func Hash(email string) string
- func IsDirExists(path string) bool
- func LogDeviceFormatStringToUnixMS(tm string) (int64, error)
- func LogDeviceTimeConv(origin string) (after string)
- func LogDeviceUnixTimeToString(t int64) string
- func LogDeviceUnixTimeToStringNormal(t int64) string
- func MkdirNotExist(path string) error
- func SecureUrl(email string) string
- func SecureUrlDefault(email, defaultURL string) string
- func SecureUrlSize(email string, size int) string
- func SecureUrlSizeDefault(email string, size int, defaultURL string) string
- func Time1972TimeStamp() int64
- func TimeConv(origin string) (after string)
- func TimeConvertBenewServer(origin string) (after string, ms int)
- func UnxiToFormatString(t int64, format string) string
- func Url(email string) string
- func UrlDefault(email, defaultURL string) string
- func UrlSize(email string, size int) string
- func UrlSizeDefault(email string, size int, defaultURL string) string
- type Mongo
- type TM
Constants ¶
View Source
const ( HTTP404 = "404" // do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response MysteryMan = "mm" // (mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash) IdentIcon = "identicon" // a geometric pattern based on an email hash MonsterID = "monsterid" // a generated 'monster' with different colors, faces, etc Wavatar = "wavatar" // generated faces with differing features and backgrounds Retro = "retro" // awesome generated, 8-bit arcade-style pixelated faces )
Default images (used as defaultURL)
View Source
const ( JKFormatString = "2006-01-02-15:04:05" JKFormatNormalNoSec = "2006-01-02 15:04" )
Variables ¶
View Source
var Month = map[string]string{
"Jan": "01",
"Feb": "02",
"Mar": "03",
"Apr": "04",
"May": "05",
"Jun": "06",
"Jul": "07",
"Aug": "08",
"Sep": "09",
"Oct": "10",
"Nov": "11",
"Dec": "12",
}
Functions ¶
func ConvertStringToUnixTime ¶
func FilterHtmlTag ¶
func FormUnixTimeToString ¶
func FormatStringToUnix ¶
func IsDirExists ¶
func LogDeviceFormatStringToUnixMS ¶
xxxx.ms
func LogDeviceTimeConv ¶
func LogDeviceUnixTimeToString ¶
t contains ms (3 numbers)
func MkdirNotExist ¶
func SecureUrlDefault ¶
func SecureUrlSize ¶
func SecureUrlSizeDefault ¶
func Time1972TimeStamp ¶
func Time1972TimeStamp() int64
func TimeConvertBenewServer ¶
2019-09-11T20:06:07.717Z
func UnxiToFormatString ¶
func UrlDefault ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.