Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PrivateFileMode is the permission for service file PrivateFileMode = 0600 // PrivateDirMode is the permission for service dir PrivateDirMode = 0700 )
Variables ¶
View Source
var ( // ErrLocked means that fail to get file lock ErrLocked = errors.New("pkg/file: file already locked") )
Functions ¶
This section is empty.
Types ¶
type LockedFile ¶
LockedFile wraps the file into a LockedFile concept simply
func TryLockFile ¶
TryLockFile tries to open the file with the file lock, it's unblock
Click to show internal directories.
Click to hide internal directories.