request

package
v0.0.0-...-27e8010 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2013 License: BSD-2-Clause Imports: 21 Imported by: ? modules, 0 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, cx *goweb.Context)

func Authenticate

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

func CreateBamIndex

func CreateBamIndex(bamFile string) (err error)

func LoadBamIndex

func LoadBamIndex(bamFile string) (err error)

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(query *Query) (argv []string, err error)

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

func UnLoadBamIndex

func UnLoadBamIndex(bamFile string) (err error)

Types

type Query

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

func Q

func Q(l map[string][]string) *Query

func (*Query) All

func (q *Query) All() map[string][]string

func (*Query) Has

func (q *Query) Has(key string) bool

func (*Query) List

func (q *Query) List(key string) []string

func (*Query) Value

func (q *Query) Value(key string) string

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) 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