MCPcopy Index your code
hub / github.com/PasarGuard/node / New

Function New

controller/rest/service.go:17–23  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

15)
16
17func New(cfg *config.Config) *Service {
18 s := &Service{
19 Controller: *controller.New(cfg),
20 }
21 s.setRouter()
22 return s
23}
24
25func (s *Service) setRouter() {
26 router := chi.NewRouter()

Callers 1

StartHttpListenerFunction · 0.70

Calls 2

setRouterMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected