Versions in this module Expand all Collapse all v0 v0.5.1 Jul 30, 2026 v0.5.0 Jul 30, 2026 Changes in this version + const DispatchAuto + const DispatchDone + func MimeByExt(name string) string + func NewID() (string, error) + func Write(path string, items []Item, opts Options) (string, error) + type Blob struct + func Load(path, expectID string) (*Blob, error) + func Open(path string) (*Blob, error) + func (b *Blob) Bytes(it *Item) ([]byte, error) + func (b *Blob) Close() error + func (b *Blob) GetByKey(key string) *Item + func (b *Blob) GetByURL(url string) *Item + func (b *Blob) Handler(base string, mw Middleware) http.Handler + func (b *Blob) Header() Header + func (b *Blob) Items() []Item + func (b *Blob) Manifest() Manifest + func (b *Blob) Reader(it *Item) *io.SectionReader + type FolderOptions struct + Base string + Exclude string + Include string + NoCase bool + Prefix string + Recurse bool + type Header struct + Count uint32 + DataCRC32 uint32 + DataSize int64 + ID string + NoCase bool + Version uint8 + func ReadHeader(path string) (Header, error) + type Item struct + CRC32 uint32 + Filename string + Key string + Offset uint64 + RestType RestType + Size uint64 + Src string + URL string + func (it *Item) UnmarshalJSON(b []byte) error + func (it Item) MarshalJSON() ([]byte, error) + type Manifest struct + Count uint32 + DataCRC32 uint32 + ID string + Items []Item + NoCase bool + Version uint8 + func NewManifest(id string) *Manifest + func (m *Manifest) AddFile(url, src string) *Manifest + func (m *Manifest) AddFolder(dir string, opts FolderOptions) (int, error) + func (m *Manifest) AddItem(it Item) *Manifest + func (m *Manifest) UnmarshalJSON(b []byte) error + func (m *Manifest) Write(path string) (string, error) + func (m Manifest) MarshalJSON() ([]byte, error) + type Middleware func(w http.ResponseWriter, r *http.Request, it *Item) int + type Options struct + ID string + NoCase bool + SkipUnchanged bool + type RestType int32 + const HTMLTemplate + const Nomux + const Parse + const Response + const Static + func (r RestType) Names() string + func (r RestType) String() string