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

Method Configure

internal/msgpipeline/module.go:42–60  ·  view source on GitHub ↗
(inlineArgs []string, cfg *config.Map)

Source from the content-addressed store, hash-verified

40}
41
42func (m *Module) Configure(inlineArgs []string, cfg *config.Map) error {
43 var hostname string
44 cfg.String("hostname", true, true, "", &hostname)
45 cfg.Bool("debug", true, false, &m.log.Debug)
46 cfg.AllowUnknown()
47 other, err := cfg.Process()
48 if err != nil {
49 return err
50 }
51
52 p, err := New(cfg.Globals, other)
53 if err != nil {
54 return err
55 }
56 m.MsgPipeline = p
57 m.Log = m.log
58
59 return nil
60}
61
62func (m *Module) Name() string {
63 return "msgpipeline"

Callers

nothing calls this directly

Implementers 15

Dummyframework/module/modules/dummy.go
Authinternal/auth/pass_table/table.go
Authinternal/auth/plain_separate/plain_sep
Authinternal/auth/shadow/module.go
Authinternal/auth/netauth/netauth.go
Authinternal/auth/dovecot_sasl/dovecot_sas
ExternalAuthinternal/auth/external/externalauth.go
Authinternal/auth/ldap/ldap.go
Authinternal/auth/pam/module.go
Targetinternal/testutils/target.go
Modifierinternal/testutils/modifier.go
Checkinternal/testutils/check.go

Calls 5

BoolMethod · 0.80
AllowUnknownMethod · 0.80
ProcessMethod · 0.80
NewFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected