server

package
v0.0.0-...-a0a84a9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncFileSystemToDisk

func SyncFileSystemToDisk(fs vfs.FileSystem, rootDir string) error

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New() *Server

func (*Server) Client

func (s *Server) Client() *http.Client

func (*Server) Fetch

func (s *Server) Fetch(ctx context.Context, importPath string, includeTests bool) (vfs.FileSystem, error)

func (*Server) Handler

func (s *Server) Handler() http.Handler

func (*Server) List

func (s *Server) List(ctx context.Context) ([]string, error)

func (*Server) SetClient

func (s *Server) SetClient(cl *http.Client)

func (*Server) Watch

func (s *Server) Watch(ctx context.Context, importPath string, includeTests bool) (<-chan struct{}, error)

Jump to

Keyboard shortcuts

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