Documentation ¶
Index ¶
- func FindInSlice(slice []string, val string) (int, bool)
- func GenerateSHA1(reader io.Reader) (string, error)
- func ParseConfig(config string) models.Config
- func PathExists(path string) bool
- func ReadContent(reader io.Reader) ([]byte, error)
- func ReadFile(path string) (*os.File, error)
- func ReadFileAndContent(path string) (*os.File, []byte, error)
- func ReadJSONFile(config string) (*json.Decoder, *os.File)
- func Thumbnail(file *os.File, thumbSize uint) (io.Reader, *th.Source)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindInSlice ¶
FindInSlice iterates over the slice and returns the position of the element if found
func GenerateSHA1 ¶
GenerateSHA1 generates a sha1 hash for the specified reader
func ParseConfig ¶
ParseConfig parses the config file into the config object
func PathExists ¶
PathExists checks if a given path is available on the filesystem
func ReadContent ¶
ReadContent reads the content from a reader into a byte array
func ReadFileAndContent ¶
ReadFileAndContent reads a given file and reads its content into a byte array
func ReadJSONFile ¶
ReadJSONFile tries to open a specified config file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.