rclone

package
v0.0.0-...-c9a4f57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

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.

func NewRCHandler

func NewRCHandler() *RCHandler

NewRCHandler creates a new direct RC handler.

func (*RCHandler) ServeHTTP

func (h *RCHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler.

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.

Directories

Path Synopsis
configs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL