request

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2014 License: BSD-2-Clause Imports: 23 Imported by: 8 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthError

func AuthError(err error, ctx context.Context) error

func Authenticate

func Authenticate(req *http.Request) (u *user.User, err error)

func DataUpload

func DataUpload(r *http.Request) (params map[string]string, files node.FormFiles, err error)

helper function to create a node from an http data post

func Log

func Log(req *http.Request)

func ParseMultipartForm

func ParseMultipartForm(r *http.Request) (params map[string]string, files node.FormFiles, err error)

helper function for create & update

func ParseSamtoolsArgs

func ParseSamtoolsArgs(ctx context.Context) (argv []string, err error)

helper function to translate args in URL query to samtools args manual: http://samtools.sourceforge.net/samtools.shtml

Types

type Streamer

type Streamer struct {
	R           []file.SectionReader
	W           http.ResponseWriter
	ContentType string
	Filename    string
	Size        int64
	Filter      filter.FilterFunc
}

func (*Streamer) Stream

func (s *Streamer) Stream() (err error)

func (*Streamer) StreamRaw

func (s *Streamer) StreamRaw() (err error)

func (*Streamer) StreamSamtools

func (s *Streamer) StreamSamtools(filePath string, region string, args ...string) (err error)

Jump to

Keyboard shortcuts

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