Documentation ¶
Index ¶
- Variables
- func AssetsFolder() string
- func CheckPasswordHash(password, hash string) bool
- func GetEnv(key, fallback string) string
- func GetMD5(data []byte) string
- func GetMimeType(file multipart.File) string
- func GetMimeTypeFromBytes(fileHeader []byte) string
- func GetPublicFolder() string
- func GetSaveMode() string
- func GetTemplateFilePath(name string) string
- func GetTemplateFolder() string
- func HashPassword(password string) (string, error)
- func InArray(val string, array []string) (exists bool, index int)
- func MimeToExtension(mime string) string
- func NewRedis()
- func NewSessions()
- func ResetVersions()
- func RunningMode() string
- func SendImageToService(data []byte, mime string, isGif bool, expressions []string) gs.Packet
- type AssetTools
- type HeaderMetaData
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisManager *rd
View Source
var Render *render
Functions ¶
func AssetsFolder ¶
func AssetsFolder() string
func CheckPasswordHash ¶
func GetMimeType ¶
func GetMimeTypeFromBytes ¶
func GetPublicFolder ¶
func GetPublicFolder() string
TODO: Move this into a "public" type system to let me extend the render for easier loading of assets
func GetSaveMode ¶
func GetSaveMode() string
func GetTemplateFilePath ¶
TODO: Move template stuff into it's own "render" class
func GetTemplateFolder ¶
func GetTemplateFolder() string
func HashPassword ¶
func MimeToExtension ¶
func NewSessions ¶
func NewSessions()
func ResetVersions ¶
func ResetVersions()
func RunningMode ¶
func RunningMode() string
Types ¶
type AssetTools ¶
type AssetTools struct {
// contains filtered or unexported fields
}
var AssetManager *AssetTools
func (*AssetTools) FileContents ¶
func (v *AssetTools) FileContents(fp string) string
func (*AssetTools) GetVersion ¶
func (v *AssetTools) GetVersion(file ...string) string
func (*AssetTools) New ¶
func (v *AssetTools) New()
func (*AssetTools) ReadFileLines ¶
func (v *AssetTools) ReadFileLines(path string) ([]string, error)
is always a comment in all files we read by lines... ¶
type HeaderMetaData ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.