MCPcopy Index your code
hub / github.com/dnote/dnote / New

Function New

pkg/server/controllers/controllers.go:34–47  ·  view source on GitHub ↗

New returns a new group of controllers

(app *app.App)

Source from the content-addressed store, hash-verified

32
33// New returns a new group of controllers
34func New(app *app.App) *Controllers {
35 c := Controllers{}
36
37 viewEngine := views.NewDefaultEngine()
38
39 c.Users = NewUsers(app, viewEngine)
40 c.Notes = NewNotes(app)
41 c.Books = NewBooks(app)
42 c.Sync = NewSync(app)
43 c.Static = NewStatic(app, viewEngine)
44 c.Health = NewHealth(app)
45
46 return &c
47}

Callers 2

startCmdFunction · 0.92
NewServerFunction · 0.70

Calls 7

NewDefaultEngineFunction · 0.92
NewUsersFunction · 0.85
NewNotesFunction · 0.85
NewBooksFunction · 0.85
NewSyncFunction · 0.85
NewStaticFunction · 0.85
NewHealthFunction · 0.85

Tested by

no test coverage detected