Documentation ¶
Index ¶
- type Option
- type Server
- func (s *Server) DownloadRecoveryPoint(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListBackup(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListRecoveryPoints(w http.ResponseWriter, r *http.Request)
- func (s *Server) RequestBackup(w http.ResponseWriter, r *http.Request)
- func (s *Server) RequestRestore(w http.ResponseWriter, r *http.Request)
- func (s *Server) Run() error
- func (s *Server) SyncConfig(w http.ResponseWriter, r *http.Request)
- func (s *Server) UpgradeAgent(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithBackupClient ¶
WithBackupClient returns an Option which set the backup client for Server.
func WithBroker ¶
WithBroker returns an Option which set the server broker for async messaging.
func WithPublishTopic ¶
WithPublishTopic returns an Option which set the server topic that server broker will publish message.
func WithSubscribeTopics ¶
WithSubscribeTopics returns an Option which set the subscribeTopics that server broker will subscribe to.
type Server ¶
type Server struct { Addr string // contains filtered or unexported fields }
Server defines parameters for running BizFly Backup HTTP server.
func (*Server) DownloadRecoveryPoint ¶
func (s *Server) DownloadRecoveryPoint(w http.ResponseWriter, r *http.Request)
func (*Server) ListBackup ¶
func (s *Server) ListBackup(w http.ResponseWriter, r *http.Request)
func (*Server) ListRecoveryPoints ¶
func (s *Server) ListRecoveryPoints(w http.ResponseWriter, r *http.Request)
func (*Server) RequestBackup ¶
func (s *Server) RequestBackup(w http.ResponseWriter, r *http.Request)
func (*Server) RequestRestore ¶
func (s *Server) RequestRestore(w http.ResponseWriter, r *http.Request)
func (*Server) SyncConfig ¶
func (s *Server) SyncConfig(w http.ResponseWriter, r *http.Request)
func (*Server) UpgradeAgent ¶
func (s *Server) UpgradeAgent(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.