Documentation ¶ Index ¶ func NewFileServer(fs ContextFS) http.Handler type ContextFS func NewFS(bucket *blob.Bucket) ContextFS type FS func (f *FS) Context() context.Context func (f *FS) Open(name string) (fs.File, error) func (f *FS) WithContext(ctx context.Context) ContextFS type File func (f *File) IsDir() bool func (f *File) Mode() fs.FileMode func (f *File) Name() string func (f *File) Stat() (fs.FileInfo, error) func (f *File) Sys() any Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewFileServer ¶ func NewFileServer(fs ContextFS) http.Handler Types ¶ type ContextFS ¶ type ContextFS interface { fs.FS Context() context.Context WithContext(context.Context) ContextFS } func NewFS ¶ func NewFS(bucket *blob.Bucket) ContextFS type FS ¶ type FS struct { *blob.Bucket // contains filtered or unexported fields } func (*FS) Context ¶ func (f *FS) Context() context.Context func (*FS) Open ¶ func (f *FS) Open(name string) (fs.File, error) func (*FS) WithContext ¶ func (f *FS) WithContext(ctx context.Context) ContextFS type File ¶ type File struct { Path string *blob.Reader } func (*File) IsDir ¶ func (f *File) IsDir() bool func (*File) Mode ¶ func (f *File) Mode() fs.FileMode func (*File) Name ¶ func (f *File) Name() string func (*File) Stat ¶ func (f *File) Stat() (fs.FileInfo, error) func (*File) Sys ¶ func (f *File) Sys() any Source Files ¶ View all Source files fi.go file.go file_server.go fs.go Click to show internal directories. Click to hide internal directories.