v.io: v.io/x/ref/services/internal/multipart Index | Files

package multipart

import "v.io/x/ref/services/internal/multipart"

Package multipart implements an http.File that acts as one logical file backed by several physical files (the 'parts').


Package Files


func NewFile Uses

func NewFile(name string, parts []*os.File) (http.File, error)

NewFile creates the multipart file out of the provided parts. The sizes of the parts are captured at the outset and not updated for the lifetime of the multipart file (any subsequent modifications in the parts will cause Read and Seek to work incorrectly).

Package multipart imports 5 packages (graph) and is imported by 1 packages. Updated 2020-09-08. Refresh now. Tools for package owners.