docserver

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2015 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocServer

type DocServer struct {
	*http.Transport
	DocRoot string
	// contains filtered or unexported fields
}

func New

func New(docRoot string) (self *DocServer)

func (*DocServer) Client

func (self *DocServer) Client() *http.Client

func (*DocServer) Get

func (self *DocServer) Get(uri, path string) (content []byte, err error)

Get(uri, path) downloads the document at uri, if path is non-empty it is interpreted as a filepath to which the contents are saved

func (*DocServer) GetAuthContent

func (self *DocServer) GetAuthContent(uri string, hash common.Hash) (content []byte, err error)

func (*DocServer) HasScheme

func (self *DocServer) HasScheme(scheme string) bool

func (*DocServer) RegisterScheme

func (self *DocServer) RegisterScheme(scheme string, rt http.RoundTripper)

Jump to

Keyboard shortcuts

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