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

package rcserver

import "github.com/ncw/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 30 packages (graph) and is imported by 4 packages. Updated 2020-09-25. Refresh now. Tools for package owners.