MCPcopy Create free account
hub / github.com/dnote/dnote / Validate

Method Validate

pkg/server/app/app.go:53–71  ·  view source on GitHub ↗

Validate validates the app configuration

()

Source from the content-addressed store, hash-verified

51
52// Validate validates the app configuration
53func (a *App) Validate() error {
54 if a.BaseURL == "" {
55 return ErrEmptyBaseURL
56 }
57 if a.Clock == nil {
58 return ErrEmptyClock
59 }
60 if a.EmailBackend == nil {
61 return ErrEmptyEmailBackend
62 }
63 if a.DB == nil {
64 return ErrEmptyDB
65 }
66 if a.HTTP500Page == nil {
67 return ErrEmptyHTTP500Page
68 }
69
70 return nil
71}

Callers 1

NewRouterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected