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

Function New

controller/rpc/service.go:22–26  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

20}
21
22func New(cfg *config.Config) *Service {
23 return &Service{
24 Controller: *controller.New(cfg),
25 }
26}
27
28func StartGRPCListener(tlsConfig *tls.Config, addr string, cfg *config.Config) (func(ctx context.Context) error, controller.Service, error) {
29 s := New(cfg)

Callers 1

StartGRPCListenerFunction · 0.70

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected