Documentation
¶
Index ¶
- Variables
- func CopyAndClose(to io.WriteCloser, from io.ReadCloser) error
- func GetUniqueMachineId() (string, error)
- func ListFilesRec(basePath string) (ret map[RelPathType]LocalFileMeta, err error)
- func PanicIf(cond bool, msg string)
- func PanicIfErr(err error, msg string)
- func PanicIfFalse(cond bool, msg string)
- type LocalFileMeta
- type RelPathType
Constants ¶
This section is empty.
Variables ¶
View Source
var UniqueMachineId = getUniqueMachineIdOrDie()
Functions ¶
func CopyAndClose ¶
func CopyAndClose(to io.WriteCloser, from io.ReadCloser) error
created this so that we can use defer for the reader, writer in for loops
func GetUniqueMachineId ¶
func ListFilesRec ¶
func ListFilesRec(basePath string) (ret map[RelPathType]LocalFileMeta, err error)
func PanicIfErr ¶
func PanicIfFalse ¶
Types ¶
type LocalFileMeta ¶
type LocalFileMeta struct { BaseDir string RelPath RelPathType ModTime time.Time Md5sum string // hex string of md5 hash }
func GetLocalFileMeta ¶
func GetLocalFileMeta(basePath, relPath string) (*LocalFileMeta, error)
type RelPathType ¶
type RelPathType string
func (RelPathType) String ¶
func (p RelPathType) String() string
Click to show internal directories.
Click to hide internal directories.