Documentation
¶
Overview ¶
package config contains configuration information for `sfid` app
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// NameSpace of UUID v5, not used if only Sha256 output is requested.
NameSpace string
//WithMD5 returns MD5 hash back
WithMD5 bool
// WithUUID returns UUIDv5 back using either supplied or default UUID
// NameSpace.
WithUUID bool
// Input is a string that might mean either a string, a file or a directory.
Input string
// Recursive sets recursive directory walking and creating output for each
// file. This setting is ignored if Input is not a directory.
Recursive bool
// JobsNum sets provided concurrency number for running the algorithm
JobsNum int
}
Config keeps configuration data.
type Option ¶
type Option func(c *Config)
func OptJobsNum ¶
func OptNameSpace ¶
func OptRecursive ¶
func OptWithMD5 ¶ added in v0.1.1
func OptWithUUID ¶
Click to show internal directories.
Click to hide internal directories.