Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RCHandler ¶
type RCHandler struct{}
RCHandler dispatches requests directly to rclone's rc/jobs system.
type RCloneAPIHandler ¶
type RCloneAPIHandler struct {
// contains filtered or unexported fields
}
RCloneAPIHandler owns the JWT-protected RClone API.
func NewRCloneAPIHandler ¶
func NewRCloneAPIHandler(pubKeyPEM string, store config.Storage) (*RCloneAPIHandler, error)
NewRCloneAPIHandler prepares the JWT-protected RClone API handler and initializes the global RClone system state.
func (*RCloneAPIHandler) RegisterRoutes ¶
func (h *RCloneAPIHandler) RegisterRoutes(mux *http.ServeMux)
RegisterRoutes mounts the JWT-protected rclone API on the given mux.
Click to show internal directories.
Click to hide internal directories.