diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2021-08-02 15:21:12 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2021-08-02 15:21:12 -0600 |
commit | 20b92130106007585cbdde73f6622428d9cf68c8 (patch) | |
tree | 7df4454309df539bacbaf8c60392d07f0faeac95 /srv/mailinglist/mailinglist.go | |
parent | 069ee93de17579230ef749d5804df7a0ac350ac5 (diff) |
add api endpoints for pow and mailinglist, plus some framework improvements
Diffstat (limited to 'srv/mailinglist/mailinglist.go')
-rw-r--r-- | srv/mailinglist/mailinglist.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/srv/mailinglist/mailinglist.go b/srv/mailinglist/mailinglist.go index 03067b2..2ebb952 100644 --- a/srv/mailinglist/mailinglist.go +++ b/srv/mailinglist/mailinglist.go @@ -51,6 +51,11 @@ type Params struct { UnsubURL string } +// New initializes and returns a MailingList instance using the given Params. +func New(params Params) MailingList { + return &mailingList{params: params} +} + type mailingList struct { params Params } |