Documentation ¶
Index ¶
- type MerkelNode
- type Tools
- func (t *Tools) CreateDirIfNotExists(path string) error
- func (t *Tools) FindChangesInFolder(path string) ([]string, error)
- func (t *Tools) RandomString(n int) string
- func (t *Tools) Slugify(s string) (string, error)
- func (t *Tools) UploadedFiles(r *http.Request, uploadDir string, rename ...bool) ([]*UploadedFile, error)
- type UploadedFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MerkelNode ¶ added in v2.1.0
type MerkelNode struct { HashValue string FileName string Left *MerkelNode Right *MerkelNode }
fields hasto be capital
func (*MerkelNode) IsLeaf ¶ added in v2.1.0
func (m *MerkelNode) IsLeaf() bool
type Tools ¶
type Tools struct { MaxFileSize int AllowedFileTypes []string MAXJSONSize int AllowUnknownFields bool }
func (*Tools) CreateDirIfNotExists ¶
create a dir if not exists and create all the necessary parents
func (*Tools) FindChangesInFolder ¶ added in v2.1.0
gives the list of files that have changed in a folder
func (*Tools) RandomString ¶
generates a random string og length n, using randomSourceString
func (*Tools) UploadedFiles ¶
type UploadedFile ¶
uploaded file is a struct used to save information.
Click to show internal directories.
Click to hide internal directories.