Versions in this module Expand all Collapse all v0 v0.0.1 Jun 23, 2026 Changes in this version + var ErrPathNotFound = errors.New("path not found") + func NewRootCommand() *cobra.Command + func NewServer(dataDir string) http.Handler + type Blob struct + Hash string + Time int64 + type BlobStore interface + DataDir func() string + Delete func(path string) error + Get func(path string) (Blob, error) + GetAlias func(alias string) (string, error) + List func() (map[string]Blob, error) + ListAliases func() (map[string]string, error) + Set func(path, hash string) error + SetAlias func(alias, target string) error + SetWithTime func(path, hash string, time int64) error + func NewBlobStore(dataDir string) BlobStore + type BuildJob struct + CreatedAt time.Time + DoneAt *time.Time + Error string + ID string + Resolved string + Result string + Runtime string + Spec string + Status string + type GoWasmBuilder struct + func NewGoWasmBuilder(store BlobStore) *GoWasmBuilder + func (b *GoWasmBuilder) BuildOrWait(importPath, version, remotePath string, reqCtx context.Context) (string, error) + func (b *GoWasmBuilder) TinyBuildOrWait(importPath, version, remotePath string, reqCtx context.Context) (string, error) + type JobStore struct + func NewJobStore() *JobStore + func (s *JobStore) Create(spec, runtime string) *BuildJob + func (s *JobStore) Get(id string) (*BuildJob, bool) + func (s *JobStore) SetBuilding(id string) + func (s *JobStore) SetDone(id, result string) + func (s *JobStore) SetError(id, errMsg string) + func (s *JobStore) SetResolved(id, resolved string) + type Manifest struct + Entries []ManifestEntry + GoVersion string + Module string + Version string + func ParseManifest(data []byte) (*Manifest, error) + type ManifestEntry struct + Output string + Source string + Version string + type ManifestStore struct + func NewManifestStore(dataDir string) *ManifestStore + func (s *ManifestStore) Get(name, version string) ([]byte, error) + func (s *ManifestStore) List() (map[string][]string, error) + func (s *ManifestStore) Set(name, version string, data []byte) error