MCPcopy Index your code
hub / github.com/coder/coder / NewAPI

Function NewAPI

agent/agentgit/api.go:26–32  ·  view source on GitHub ↗

NewAPI creates a new git watch API.

(logger slog.Logger, pathStore *PathStore, opts ...Option)

Source from the content-addressed store, hash-verified

24
25// NewAPI creates a new git watch API.
26func NewAPI(logger slog.Logger, pathStore *PathStore, opts ...Option) *API {
27 return &API{
28 logger: logger,
29 pathStore: pathStore,
30 opts: opts,
31 }
32}
33
34// Routes returns the chi router for mounting at /api/v0/git.
35func (a *API) Routes() http.Handler {

Callers 4

initMethod · 0.92
dialGitWatchFunction · 0.92

Calls

no outgoing calls

Tested by 3

dialGitWatchFunction · 0.74