Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
m-team
oidc
mytoken
server
Commits
8145bb78
Verified
Commit
8145bb78
authored
1 year ago
by
Gabriel Zachmann
Browse files
Options
Downloads
Patches
Plain Diff
remove unused method receiver
parent
1512b1db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
internal/notifier/client/notifier_client.go
+1
-1
1 addition, 1 deletion
internal/notifier/client/notifier_client.go
internal/notifier/server/mailing/mailing.go
+5
-5
5 additions, 5 deletions
internal/notifier/server/mailing/mailing.go
with
6 additions
and
6 deletions
internal/notifier/client/notifier_client.go
+
1
−
1
View file @
8145bb78
...
...
@@ -71,7 +71,7 @@ func (n standaloneNotifier) SendEmailRequest(req pkg.EmailNotificationRequest) {
}
// SendEmailRequest sends a pkg.EmailNotificationRequest to the integrated notification server
func
(
n
integratedNotifier
)
SendEmailRequest
(
req
pkg
.
EmailNotificationRequest
)
{
func
(
integratedNotifier
)
SendEmailRequest
(
req
pkg
.
EmailNotificationRequest
)
{
server
.
HandleEmailRequest
(
req
)
}
...
...
This diff is collapsed.
Click to expand it.
internal/notifier/server/mailing/mailing.go
+
5
−
5
View file @
8145bb78
...
...
@@ -159,17 +159,17 @@ var HTMLMailSender TemplateMailSender = htmlMailSender{}
var
ICSMailSender
MailSender
=
icsMailSender
{}
// Send implements the MailSender interface
func
(
s
noopSender
)
Send
(
_
,
_
,
_
string
,
_
...
Attachment
)
error
{
func
(
noopSender
)
Send
(
_
,
_
,
_
string
,
_
...
Attachment
)
error
{
return
nil
}
// SendTemplate implements the TemplateMailSender interface
func
(
s
noopSender
)
SendTemplate
(
_
,
_
,
_
string
,
_
any
)
error
{
func
(
noopSender
)
SendTemplate
(
_
,
_
,
_
string
,
_
any
)
error
{
return
nil
}
// Send implements the MailSender interface
func
(
s
plainTextMailSender
)
Send
(
to
,
subject
,
text
string
,
attachments
...
Attachment
)
error
{
func
(
plainTextMailSender
)
Send
(
to
,
subject
,
text
string
,
attachments
...
Attachment
)
error
{
mail
:=
&
email
.
Email
{
From
:
fromAddress
,
To
:
[]
string
{
to
},
...
...
@@ -195,7 +195,7 @@ func (s plainTextMailSender) SendTemplate(to, subject, template string, binding
}
// Send implements the MailSender interface
func
(
s
htmlMailSender
)
Send
(
to
,
subject
,
text
string
,
attachments
...
Attachment
)
error
{
func
(
htmlMailSender
)
Send
(
to
,
subject
,
text
string
,
attachments
...
Attachment
)
error
{
mail
:=
&
email
.
Email
{
From
:
fromAddress
,
To
:
[]
string
{
to
},
...
...
@@ -221,7 +221,7 @@ func (s htmlMailSender) SendTemplate(to, subject, template string, binding any)
}
// Send implements the MailSender interface
func
(
s
icsMailSender
)
Send
(
to
,
subject
,
text
string
,
attachments
...
Attachment
)
error
{
func
(
icsMailSender
)
Send
(
to
,
subject
,
text
string
,
attachments
...
Attachment
)
error
{
mail
:=
&
email
.
Email
{
From
:
fromAddress
,
To
:
[]
string
{
to
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment