Documentation
¶
Overview ¶
package core
Index ¶
- Variables
- type Server
- func (s *Server) BeginSync(sessions *models.SyncReport)
- func (s *Server) Download(ctx context.Context, in *pb.DownloadRequest) (*pb.DownloadReply, error)
- func (s *Server) HTTPServer()
- func (s *Server) InitDriver() error
- func (s *Server) ReportStatus()
- func (s *Server) RpcServer()
- func (s *Server) Sync(ctx context.Context, in *pb.SyncRequest) (*pb.SyncReply, error)
- func (s *Server) Upload(ctx context.Context, in *pb.UploadRequest) (*pb.UploadReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ReportSchedule = "*/5 * * * * *"
ReportSchedule
View Source
var ReportSyncQueue []models.SyncReport
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pb.UnimplementedStorageServer Config *config.StorageConfig Schedule schedule.ScheduleManage Status string G *gin.Engine Driver vo.Driver }
Server
func (*Server) BeginSync ¶ added in v0.7.5
func (s *Server) BeginSync(sessions *models.SyncReport)
func (*Server) Download ¶
func (s *Server) Download(ctx context.Context, in *pb.DownloadRequest) (*pb.DownloadReply, error)
func (*Server) InitDriver ¶
func (*Server) ReportStatus ¶
func (s *Server) ReportStatus()
func (*Server) Upload ¶
func (s *Server) Upload(ctx context.Context, in *pb.UploadRequest) (*pb.UploadReply, error)
Upload
@receiver s @param ctx @param in @return *pb.UploadReply @return error
Click to show internal directories.
Click to hide internal directories.