web

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(s *Server) http.Handler

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr string) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

func (*Server) SetSource

func (s *Server) SetSource(ws WorkspaceSource)

type WorkspaceSource

type WorkspaceSource interface {
	Get(id string) (*workspace.Workspace, error)
	GetByName(name string) (*workspace.Workspace, error)
	List() ([]*workspace.Workspace, error)
	Logs(ctx context.Context, id string, follow bool) (io.ReadCloser, error)
	Diff(id string) (*workspace.DiffInfo, error)
	Sync(ctx context.Context, id string) error
	BatchRecords() ([]*batch.Record, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL