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

Index

Package Files

rcserver.go

type Server Uses

type Server struct {
    *httplib.Server
    // 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 16 packages (graph) and is imported by 4 packages. Updated 2019-06-20. Refresh now. Tools for package owners.