rclone: github.com/rclone/rclone/fs/rc/rcserver Index | Files

package rcserver

import "github.com/rclone/rclone/fs/rc/rcserver"

Package rcserver implements the HTTP endpoint to serve the remote control


Package Files


type Server Uses

type Server struct {
    // contains filtered or unexported fields

Server contains everything to run the rc server

func Start Uses

func Start(opt *rc.Options) (*Server, error)

Start the remote control server if configured

If the server wasn't configured the *Server returned may be nil

func (*Server) Serve Uses

func (s *Server) Serve() error

Serve runs the http server in the background.

Use s.Close() and s.Wait() to shutdown server

Package rcserver imports 22 packages (graph) and is imported by 8 packages. Updated 2019-09-04. Refresh now. Tools for package owners.