request

package
v0.9.29 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: BSD-2-Clause Imports: 28 Imported by: 6

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 file.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 file.FormFiles, err error)

helper function for create & update

func ParseSamtoolsArgs

func ParseSamtoolsArgs(query url.Values) (argv []string, err error)

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

Types

type MultiStreamer added in v0.9.21

type MultiStreamer struct {
	Files       []*file.FileInfo
	W           http.ResponseWriter
	ContentType string
	Filename    string
	Archive     string
}

func (*MultiStreamer) MultiStream added in v0.9.21

func (m *MultiStreamer) MultiStream() (err error)

type Streamer

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

func (*Streamer) Stream

func (s *Streamer) Stream(streamRaw bool) (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