MCPcopy Create free account
hub / github.com/foxcpp/maddy / New

Function New

internal/msgpipeline/msgpipeline.go:88–95  ·  view source on GitHub ↗
(globals map[string]interface{}, cfg []config.Node)

Source from the content-addressed store, hash-verified

86}
87
88func New(globals map[string]interface{}, cfg []config.Node) (*MsgPipeline, error) {
89 parsedCfg, err := parseMsgPipelineRootCfg(globals, cfg)
90 return &MsgPipeline{
91 msgpipelineCfg: parsedCfg,
92 Resolver: dns.DefaultResolver(),
93 Log: log.DefaultLogger.Sublogger("msgpipeline"),
94 }, err
95}
96
97func (d *MsgPipeline) RunEarlyChecks(ctx context.Context, state *module.ConnState) error {
98 eg, checkCtx := errgroup.WithContext(ctx)

Callers 3

setConfigMethod · 0.92
ConfigureMethod · 0.70
parseMsgPipelineRcptCfgFunction · 0.70

Calls 3

DefaultResolverFunction · 0.92
parseMsgPipelineRootCfgFunction · 0.85
SubloggerMethod · 0.80

Tested by

no test coverage detected