Documentation
¶
Index ¶
- type ConnectionInfo
- type Model
- func (m *Model) AddConnection(conn connections.Connection, hello protocol.HelloResult)
- func (m *Model) Closed(conn protocol.Connection, err error)
- func (m *Model) ClusterConfig(deviceID protocol.DeviceID, config protocol.ClusterConfig)
- func (m *Model) ConnectedTo(deviceID protocol.DeviceID) bool
- func (m *Model) DownloadProgress(device protocol.DeviceID, folder string, ...)
- func (m *Model) GetChildren(folder string, path string) []protocol.FileInfo
- func (m *Model) GetConnections() []ConnectionInfo
- func (m *Model) GetEntry(folder string, path string) (protocol.FileInfo, bool)
- func (m *Model) GetFileData(folder string, filepath string, readStart int64, readSize int) ([]byte, error)
- func (m *Model) GetFolders() []string
- func (m *Model) GetHello(protocol.DeviceID) protocol.HelloIntf
- func (m *Model) GetPathsMatchingPrefix(folderID string, pathPrefix string) []string
- func (m *Model) GetPinsStatusByFolder() map[string]string
- func (m *Model) HasFolder(folder string) bool
- func (m *Model) Index(deviceID protocol.DeviceID, folder string, files []protocol.FileInfo)
- func (m *Model) IndexUpdate(deviceID protocol.DeviceID, folder string, files []protocol.FileInfo)
- func (m *Model) IsPaused(deviceID protocol.DeviceID) bool
- func (m *Model) OnHello(remoteID protocol.DeviceID, addr net.Addr, hello protocol.HelloResult) error
- func (m *Model) Request(deviceID protocol.DeviceID, folder string, name string, offset int64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionInfo ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) AddConnection ¶
func (m *Model) AddConnection(conn connections.Connection, hello protocol.HelloResult)
func (*Model) Closed ¶
func (m *Model) Closed(conn protocol.Connection, err error)
The peer device closed the connection
func (*Model) ClusterConfig ¶
func (m *Model) ClusterConfig(deviceID protocol.DeviceID, config protocol.ClusterConfig)
A cluster configuration message was received
func (*Model) DownloadProgress ¶
func (*Model) GetChildren ¶
func (*Model) GetConnections ¶
func (m *Model) GetConnections() []ConnectionInfo
func (*Model) GetFileData ¶
func (*Model) GetFolders ¶
func (*Model) GetPathsMatchingPrefix ¶
func (*Model) GetPinsStatusByFolder ¶
func (*Model) IndexUpdate ¶
An index update was received from the peer device
Click to show internal directories.
Click to hide internal directories.