commit ce8a3d30783476d4d3bb6a54c0c0116c13d49112
parent 0585167fe50ca9903eabe6bc662b5d2985d43515
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Tue, 19 Jul 2022 16:56:52 +0200
-taldir
Diffstat:
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
@@ -13,9 +13,9 @@ server:
go build ./cmd/mailbox-server
#cli:
-# go build ./cmd/taldir-cli
+# go build ./cmd/mailbox-cli
install: server #cli
- go install ./cmd/mailbox-server #&& go install ./cmd/taldir-cli
+ go install ./cmd/mailbox-server #&& go install ./cmd/mailbox-cli
.PHONY: all gana
diff --git a/configs/mailbox-example.conf b/configs/mailbox-example.conf
@@ -1,6 +1,6 @@
[mailbox]
production = false
-host = "https://taldir.gnunet.org"
+host = "https://taler-mailbox.gnunet.org"
bind_to = "localhost:11000"
message_fee = KUDOS:1
default_doc_filetype = text/html
diff --git a/pkg/rest/mailbox.go b/pkg/rest/mailbox.go
@@ -72,7 +72,7 @@ type VersionResponse struct {
// MailboxRateLimitedResponse is the JSON response when a rate limit is hit
type MailboxRateLimitedResponse struct {
- // Taler error code, TALER_EC_TALDIR_REGISTER_RATE_LIMITED.
+ // Taler error code, TALER_EC_mailbox_REGISTER_RATE_LIMITED.
Code int `json:"code"`
// When the client should retry. Currently: In microseconds
@@ -88,7 +88,7 @@ type message struct {
}
func (m *Mailbox) configResponse(w http.ResponseWriter, r *http.Request) {
- dpStr := m.Cfg.Section("taldir").Key("delivery_period").MustString("1w")
+ dpStr := m.Cfg.Section("mailbox").Key("delivery_period").MustString("1w")
dp, err := time.ParseDuration(dpStr)
if err != nil {
log.Fatal(err)
@@ -97,7 +97,7 @@ func (m *Mailbox) configResponse(w http.ResponseWriter, r *http.Request) {
cfg := VersionResponse{
Version: "0:0:0",
Name: "taler-mailbox",
- MessageFee: m.Cfg.Section("taldir").Key("message_fee").MustString("KUDOS:1"),
+ MessageFee: m.Cfg.Section("mailbox").Key("message_fee").MustString("KUDOS:1"),
DeliveryPeriod: uint64(dp.Microseconds()),
}
w.Header().Set("Content-Type", "application/json")
@@ -106,11 +106,11 @@ func (m *Mailbox) configResponse(w http.ResponseWriter, r *http.Request) {
}
func (m *Mailbox) termsResponse(w http.ResponseWriter, r *http.Request) {
- tos.ServiceTermsResponse(m.Cfg.Section("taldir"), w, r)
+ tos.ServiceTermsResponse(m.Cfg.Section("mailbox"), w, r)
}
func (m *Mailbox) privacyResponse(w http.ResponseWriter, r *http.Request) {
- tos.PrivacyPolicyResponse(m.Cfg.Section("taldir"), w, r)
+ tos.PrivacyPolicyResponse(m.Cfg.Section("mailbox"), w, r)
}
func (m *Mailbox) setupHandlers() {