request

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2014 License: BSD-2-Clause Imports: 23 Imported by: 10

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