Documentation
¶
Index ¶
- type ActiveFile
- type ActiveReceiveSession
- type ActiveSendSession
- type ReceiveService
- func (s *ReceiveService) CloseSession()
- func (s *ReceiveService) CreateSession(sender model.DeviceInfo, files map[string]model.FileDto) (*ActiveReceiveSession, error)
- func (s *ReceiveService) GetSession() *ActiveReceiveSession
- func (s *ReceiveService) GetSessionByID(sessionID string) *ActiveReceiveSession
- func (s *ReceiveService) RemoveFileFromSession(sessionID, fileID string)
- type SendService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveFile ¶
ActiveFile represents a file in an active session.
type ActiveReceiveSession ¶
type ActiveReceiveSession struct {
SessionID string
Sender model.DeviceInfo
Files map[string]ActiveFile
}
ActiveReceiveSession represents an active file receiving session.
type ActiveSendSession ¶
ActiveSendSession represents an active file sending session.
type ReceiveService ¶
type ReceiveService struct {
// contains filtered or unexported fields
}
ReceiveService manages file receiving sessions.
func NewReceiveService ¶
func NewReceiveService() *ReceiveService
NewReceiveService creates a new ReceiveService.
func (*ReceiveService) CloseSession ¶
func (s *ReceiveService) CloseSession()
CloseSession closes the current session.
func (*ReceiveService) CreateSession ¶
func (s *ReceiveService) CreateSession(sender model.DeviceInfo, files map[string]model.FileDto) (*ActiveReceiveSession, error)
CreateSession creates a new receive session.
func (*ReceiveService) GetSession ¶
func (s *ReceiveService) GetSession() *ActiveReceiveSession
GetSession returns the current active session.
func (*ReceiveService) GetSessionByID ¶
func (s *ReceiveService) GetSessionByID(sessionID string) *ActiveReceiveSession
GetSessionByID returns the session if the ID matches.
func (*ReceiveService) RemoveFileFromSession ¶
func (s *ReceiveService) RemoveFileFromSession(sessionID, fileID string)
RemoveFileFromSession removes a file from the current session.
type SendService ¶
type SendService struct {
// contains filtered or unexported fields
}
SendService manages file sending sessions.
func (*SendService) CloseSession ¶
func (s *SendService) CloseSession()
CloseSession closes the current session.
func (*SendService) CreateSession ¶
func (s *SendService) CreateSession(files map[string]model.FileDto) (*ActiveSendSession, error)
CreateSession creates a new send session.
func (*SendService) GetSession ¶
func (s *SendService) GetSession() *ActiveSendSession
GetSession returns the current active session.
func (*SendService) GetSessionByID ¶
func (s *SendService) GetSessionByID(sessionID string) *ActiveSendSession
GetSessionByID returns the session if the ID matches.