Documentation ¶
Index ¶
- Constants
- func BytesToGuid(b []byte) *syscall.GUID
- func CheckAlreadyRunning() error
- func ErrorByCode(result uintptr) error
- func ErrorByCodeWithContext(context string, result uintptr) error
- func InstalledFile(relativename string, short bool) string
- func OpenFile(handle windows.Handle, path string) error
- func ToLongPath(localpath string) string
- func ToShortPath(localpath string) string
- type ConnectionState
- type FileSyncState
- type FileSyncStateEnum
- type RemoteStateCache
- type Virtualization
Constants ¶
View Source
const ( POTATOICO = "potato.ico" MUTEXNAME = "7122117b-3a2e-4c5d-bb21-2c9d0d2243bd" )
Variables ¶
This section is empty.
Functions ¶
func BytesToGuid ¶
func CheckAlreadyRunning ¶
func CheckAlreadyRunning() error
func ErrorByCode ¶
func ErrorByCodeWithContext ¶
func InstalledFile ¶
func ToLongPath ¶
func ToShortPath ¶
Types ¶
type ConnectionState ¶
type FileSyncState ¶
type FileSyncState struct { Path string State FileSyncStateEnum LastError error }
type FileSyncStateEnum ¶
type FileSyncStateEnum int
const ( FileSyncStateUnknown FileSyncStateEnum = 0 FileSyncStatePending FileSyncStateEnum = 1 FileSyncStateUploading FileSyncStateEnum = 2 FileSyncStateDownloading FileSyncStateEnum = 3 FileSyncStateDone FileSyncStateEnum = 4 FileSyncStateDeleted FileSyncStateEnum = 5 FileSyncStateDirty FileSyncStateEnum = 6 FileSyncStateError FileSyncStateEnum = 7 )
type RemoteStateCache ¶
type RemoteStateCache interface { UpdateHash(remotepath string, hash []byte) error GetHash(remotepath string) ([]byte, error) }
RemoteStateCache is the contract for keeping track files seen by the client on the remote side.
func HashFilesRemotely ¶
func HashFilesRemotely(fs afero.Fs) RemoteStateCache
type Virtualization ¶
type Virtualization interface { io.Closer PerformSynchronization() error SetFileStateHandler(handler func(state FileSyncState)) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.