{"modulePath":"github.com/MG-RAST/SHock","version":"v0.9.29","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package request\n\n## Functions\n\n```go\nfunc AuthError(err error, ctx context.Context) error\n```\n\n```go\nfunc Authenticate(req *http.Request) (u *user.User, err error)\n```\n\n```go\nfunc DataUpload(r *http.Request) (params map[string]string, files file.FormFiles, err error)\n```\nhelper function to create a node from an http data post\n\n```go\nfunc Log(req *http.Request)\n```\n\n```go\nfunc ParseMultipartForm(r *http.Request) (params map[string]string, files file.FormFiles, err error)\n```\nhelper function for create \u0026 update\n\n```go\nfunc ParseSamtoolsArgs(query url.Values) (argv []string, err error)\n```\nhelper function to translate args in URL query to samtools args manual: [http://samtools.sourceforge.net/samtools.shtml](http://samtools.sourceforge.net/samtools.shtml)\n\n## Types\n\n```go\ntype MultiStreamer struct {\n\tFiles       []*file.FileInfo\n\tW           http.ResponseWriter\n\tContentType string\n\tFilename    string\n\tArchive     string\n}\n```\n\n```go\nfunc (m *MultiStreamer) MultiStream() (err error)\n```\n\n```go\ntype Streamer struct {\n\tR           []file.SectionReader\n\tW           http.ResponseWriter\n\tE           error\n\tESection    int\n\tContentType string\n\tFilename    string\n\tSize        int64\n\tFilter      filter.FilterFunc\n\tCompression string\n}\n```\n\n```go\nfunc (s *Streamer) Stream(streamRaw bool) (err error)\n```\n\n```go\nfunc (s *Streamer) StreamSamtools(filePath string, region string, args ...string) (err error)\n```\n\n","path":"github.com/MG-RAST/SHock/shock-server/request","name":"request","synopsis":"","isRedistributable":true}
