Versions in this module Expand all Collapse all v0 v0.0.2 Oct 21, 2026 Changes in this version + const Schema + var ErrSnapshot = errors.New("invalid or oversized development build") + func Run(ctx context.Context, server *Server, options RunOptions) error + type Generation struct + BaseURL string + ID string + Levels []Level + Revision uint64 + RuntimeIdentity string + UI UIResource + type Level struct + Artifact string + ContentSHA256 string + EnvelopeVersion uint16 + Kind string + Name string + Size uint64 + type RunOptions struct + Build func(context.Context, func(string)) error + Debounce time.Duration + Directory string + Log func(string) + PollInterval time.Duration + WatchRoots func(context.Context) (map[string]string, error) + type Server struct + func New() (*Server, error) + func NewServer() (*Server, error) + func (server *Server) Close() + func (server *Server) Publish(snapshot *Snapshot) + func (server *Server) ServeHTTP(output http.ResponseWriter, request *http.Request) + func (server *Server) SetStatus(state, message string) + type Snapshot struct + Generation Generation + func Capture(ctx context.Context, directory string, revision uint64) (*Snapshot, error) + type Status struct + Generation *Generation + Message string + Schema string + Session string + State string + type UIResource struct + Artifact string + ContentSHA256 string + Size uint64 + type Watcher struct + func NewWatcher(directory string) (*Watcher, error) + func (watcher *Watcher) Close() error + func (watcher *Watcher) Scan(ctx context.Context) (string, error)