MCPcopy
hub / github.com/gophish/gophish / TemplateContext

Interface TemplateContext

models/template_context.go:13–16  ·  view source on GitHub ↗

TemplateContext is an interface that allows both campaigns and email requests to have a PhishingTemplateContext generated for them.

Source from the content-addressed store, hash-verified

11// TemplateContext is an interface that allows both campaigns and email
12// requests to have a PhishingTemplateContext generated for them.
13type TemplateContext interface {
14 getFromAddress() string
15 getBaseURL() string
16}
17
18// PhishingTemplateContext is the context that is sent to any template, such
19// as the email or landing page content.

Callers 2

Implementers 4

Campaignmodels/campaign.go
EmailRequestmodels/email_request.go
mockTemplateContextmodels/template_context_test.go
ValidationContextmodels/template_context.go

Calls

no outgoing calls

Tested by

no test coverage detected