github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/pkg/assets/server.go (about) 1 package assets 2 3 import ( 4 "context" 5 "net/http" 6 ) 7 8 // The directory where the package.json where our JS source code lives. 9 type PackageDir string 10 11 func (d PackageDir) String() string { 12 return string(d) 13 } 14 15 type Server interface { 16 http.Handler 17 Serve(ctx context.Context) error 18 TearDown(ctx context.Context) 19 }