Versions in this module Expand all Collapse all v0 v0.4.13 Nov 3, 2024 Changes in this version + var Cache *cache.Cache + var FileQueue sync.Map + var OpStrArr []string + var SocketRun bool + var WebSocketConns []*websocket.Conn + func CheckFileStatus() + func ExecOpFile() + func FileOperate(k string) + func GetCPUThermalZone() string + func GetDeviceAllIP() []string + func GetIP(request *http.Request) string + func GetPeerId(request *http.Request, id string) string + func IsMounted(path string) bool + func NewReader(ctx context.Context, r io.Reader) io.Reader + func NewWriter(ctx context.Context, w io.Writer) io.Writer + func SendMeg() + type CasaService interface + GetCasaosVersion func() model.Version + func NewCasaService() CasaService + type ConnectionsService interface + CreateConnection func(connection *model2.ConnectionsDBModel) + DeleteConnection func(id string) + GetConnectionByHost func(host string) (connections []model2.ConnectionsDBModel) + GetConnectionByID func(id string) (connections model2.ConnectionsDBModel) + GetConnectionsList func() (connections []model2.ConnectionsDBModel) + MountSmaba func(username, host, directory, port, mountPoint, password string) error + UnmountSmaba func(mountPoint string) error + UpdateConnection func(connection *model2.ConnectionsDBModel) + func NewConnectionsService(db *gorm.DB) ConnectionsService + type FileInfo struct + type FileUploadService struct + func NewFileUploadService() *FileUploadService + func (s *FileUploadService) TestChunk(c echo.Context, identifier string, chunkNumber int64) error + func (s *FileUploadService) UploadFile(c echo.Context, path string, chunkNumber int64, chunkSize int64, ...) error + type HealthService interface + Ports func() ([]int, []int, error) + Services func() (map[bool]*[]string, error) + func NewHealthService() HealthService + type Name struct + Browser string + DeviceName string + DisplayName string + Model string + OS string + func GetName(request *http.Request) Name + func GetNameByDB(m model2.PeerDriveDBModel) Name + type NotifyServer interface + AddLog func(log model.AppNotify) + DelLog func(id string) + GetList func(c int) (list []model.AppNotify) + GetLog func(id string) model.AppNotify + GetSystemTempMap func() syncmap.Map + MarkRead func(id string, state int) + SendFileOperateNotify func(nowSend bool) + SendNotify func(name string, message map[string]interface{}) + SettingSystemTempData func(message map[string]interface{}) + UpdateLog func(log model.AppNotify) + UpdateLogByCustomID func(log model.AppNotify) + func NewNotifyService(db *gorm.DB) NotifyServer + type OtherService interface + AgentSearch func(url string) ([]byte, error) + Search func(key string) ([]model.SearchEngine, error) + func NewOtherService() OtherService + type PeerService interface + CreatePeer func(m *model2.PeerDriveDBModel) + DeletePeer func(id string) + GetPeerByID func(id string) (m model2.PeerDriveDBModel) + GetPeerByName func(name string) (m model2.PeerDriveDBModel) + GetPeerByUserAgent func(ua string) (m model2.PeerDriveDBModel) + GetPeers func() (peers []model2.PeerDriveDBModel) + func NewPeerService(db *gorm.DB) PeerService + type RelyService interface + Create func(rely model2.RelyDBModel) + Delete func(id string) + GetInfo func(id string) model2.RelyDBModel + func NewRelyService(db *gorm.DB) RelyService + type Repository interface + Casa func() CasaService + Connections func() ConnectionsService + Gateway func() external.ManagementService + Health func() HealthService + MessageBus func() *message_bus.ClientWithResponses + Notify func() NotifyServer + Other func() OtherService + Peer func() PeerService + Rely func() RelyService + Shares func() SharesService + Storage func() StorageService + System func() SystemService + var MyService Repository + func NewService(db *gorm.DB, RuntimePath string) Repository + type SharesService interface + CreateShare func(share model2.SharesDBModel) + DeleteShare func(id string) + DeleteShareByPath func(path string) + GetSharesByName func(name string) (shares []model2.SharesDBModel) + GetSharesByPath func(path string) (shares []model2.SharesDBModel) + GetSharesList func() (shares []model2.SharesDBModel) + InitSambaConfig func() + UpdateConfigFile func() + func NewSharesService(db *gorm.DB) SharesService + type StorageService interface + CheckAndMountAll func() error + CheckAndMountByName func(name string) error + CreateConfig func(data map[string]string, name string, t string) error + DeleteConfigByName func(name string) error + GetConfig func() (httper.RemotesResult, error) + GetConfigByName func(name string) (map[string]string, error) + GetStorages func() (httper.MountList, error) + MountStorage func(mountPoint, fs string) error + UnmountStorage func(mountPoint string) error + func NewStorageService() StorageService + type SystemService interface + CreateFile func(path string) (int, error) + GenreateSystemEntry func() + GetAppOrderFile func(id string) []byte + GetCPUPower func() map[string]string + GetCPUTemperature func() int + GetCpuCoreNum func() int + GetCpuInfo func() []cpu.InfoStat + GetCpuPercent func() float64 + GetCpuPercents func() []float64 + GetDappsterOSLogs func(lineNumber int) string + GetDeviceInfo func() model.DeviceInfo + GetDeviceTree func() string + GetDirPath func(path string) ([]model.Path, error) + GetDirPathOne func(path string) (m model.Path) + GetDiskInfo func() *disk.UsageStat + GetMacAddress func() (string, error) + GetMemInfo func() map[string]interface{} + GetNet func(physics bool) []string + GetNetInfo func() []net.IOCountersStat + GetNetState func(name string) string + GetSysInfo func() host.InfoStat + GetSystemConfigDebug func() []string + GetSystemEntry func() string + GetTimeZone func() string + MkdirAll func(path string) (int, error) + RenameFile func(oldF, newF string) (int, error) + SystemReboot func() error + SystemShutdown func() error + UpAppOrderFile func(str, id string) + UpSystemPort func(port string) + UpdateAssist func() + UpdateSystemVersion func(version string) + func NewSystemService() SystemService